Comments (2)
Thanks!
A watch mode is an interesting idea. Can you say more about how you'd expect to use it in practice? Are you in "rapid dev" mode and adding/removing packages and not wanting to re-run the generate command?
If it were added, I'd definitely prefer it be an explicit option like manage.py importmap_generate --watch
. I think it could throw people off it the lock file were refreshed "magically" — just like with package.json/yarn.lock, if you simply ask for "react" without a version range (not saying that is a great practice) then a lockfile update could easily bump you to a new major version and break some stuff.
Depending on what you have in mind, I would guess that a manage.py importmap_add react
command is probably related (and maybe importmap_remove
)? Would function just like yarn add
where you don't have to edit the importmap.toml
by hand (error prone, have to look up the available versions manually, etc.) and it would update the lockfile automatically all in one command. Does that relate to what you're thinking?
from django-importmap.
Realized a little bit ago that I was the one who suggested "Automatically rebuild importmap.lock during runserver / on config modification" and I'm assuming that's what you were referring to! Sorry!
After having been away from it for a little bit (obviously!), I would definitely push for add/remove commands instead and think of it more along the lines of package.json/yarn.lock etc. Can't think of any package managers that have a "watch" mode and like I mentioned in the other comment, I'm not actually sure I want one here...
Anyway, I updated the list on the README (83ce7a6) and would definitely help with a PR for importmap_add
!
from django-importmap.
Related Issues (5)
- Local/app JS module files in importmap HOT 5
- Specify a different `provider` HOT 1
- 👍 cool project ⭐️ HOT 2
- alter PackageSchema HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-importmap.