4 ms·
If more major libraries drop support for bower, it might (hopefully) die soon. What does bower do better than NPM?
by hyperhopper 11y ago
If more major libraries drop support for bower, it might (hopefully) die soon. What does bower do better than NPM?
- javajosh 11y agoWell, I haven't used npm for css packages yet, but presumably it's okay with webpack/brunch etc.
- cnp 11y agoIts great with everything. Frontend / backend, etc. When I removed bower from our app last year, adopted Webpack and migrated everything over to NPM it dramatically simplified things.
- RobertKerans 11y agoFor Brunch, looks like [initial, probably v buggy] NPM stuff went into master about 10 days ago.
- javajosh 11y agoI've been using npm support in Brunch and so far so good.
- RobertKerans 11y agoAh, that's good to know; I'd been sticking to Bower for Phoenix' front end stuff, might start looking at migrating them to NPM if Brunch support is stable now.
- EvanPlaice 11y agoJSPM! It works a lot like NPM but is specifically intended for use with front-end modules. Features: - uses System.js (a polyfill for the future ES6-module-loader spec - supports CommonJS, AMD, and UMD formats - has plugins for importing other types (ex css) - support Typescript/Traceur/Babel out of the box - uses a flat dependency structure (ie like NPM v3) - can generate bundles and self-executing bundles (incl tree shaking and minify) - tracks specific versions of dependencies Unlike NPM, module installation doesn't depend on packages published to a central registry. It can install versioned modules directly from GitHub and NPM. The registry it uses is nothing but GitHub repo with module-to-repo mappings and compatibility shims. Here's the link: http://jspm.io/ http://jspm.io/ Lodash is already included in the registry: http://kasperlewau.github.io/registry/#/?q=lodash http://kasperlewau.github.io/registry/#/?q=lodash
- seanp2k2 11y agoPersonally I'll stick with RPM for all my JS packaging needs.
- pekk 11y agoWhat do you use to polyfill the browser to support RPM? :)
- hnbro 11y agoyum makes rpm easymode!
- EvanPlaice 11y agoWhy? It doesn't cover any of the functionality that JSPM provides and publishing modules as RPM only makes them available to (at most) 1%-2% of users. JSPM is written in Node and available via NPM. So... it works on pretty much anything out of the box.
- simplify 11y agonpm can install directly from GitHub: npm install visionmedia/express Or any git repo: npm install git+https://git@github.com/visionmedia/express.git npm install git+ssh://git@github.com/visionmedia/express.git
- EvanPlaice 11y agoOh... Awesome. TIL, I guess. Thanks for the tip. I wish my comment wasn't locked in already so I could correct the misinformation.