You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
package.js can point to arbitrary git urls.
Platforms like Heroku, OpenShift, Travis already run npm install on deploy.
Mentally, 1 way to manage dependencies is easier than 2.
For Heroku specifically, getting rid of submodules will unlock all kinds of features like auto-deploy, review apps (created for every PR), Heroku button, etc.
Github Pages would no longer work. GH Pages do materialize submodules but not any build steps (OK, Jekyll but it can't fetch stuff).
rawgit.com doesn't yet support submodules. But it doesn't support npm install either.
Running locally would be about the same. npm install; npm start would be "one less tool", but "one more tool" for devs who have git but not Node and directly open file:/.../index.html. It's not obvious I'll be able to keep index.html on par with npm start anyway (cf. [semi] protect system pages (about, help) #101).
Modifying a dependency during development is harder (npm link?).
This doesn't mention the idea I might want some magic way to use package.json without running "npm install".
For that, the sanest idea is probably: build an npm-installing, caching (that's the hard part), rawgit clone.
[P.S. the "Deferred" label is here for a reason. As much as all this is tempting to experiment & bikeshed, it's an entirely separate project from Mathdown.]
package.js can point to arbitrary git urls.
Platforms like Heroku, OpenShift, Travis already run
npm install
on deploy.npm install
either.npm install; npm start
would be "one less tool", but "one more tool" for devs who have git but not Node and directly openfile:/.../index.html
. It's not obvious I'll be able to keepindex.html
on par withnpm start
anyway (cf. [semi] protect system pages (about, help) #101).Crazier ideas:
node_modules
or eachnode_modules/foo
could be a submodule pointing to some auto-generated repo./CodeMirror/
, they just have to load.handy reference: https://github.com/wilmoore/frontend-packagers
The text was updated successfully, but these errors were encountered: