jspm or npm to install packages? -
i'm new jspm, transitioning npm-only. have 1 fundamental question. have dependencies in package.json, , runned jspm init, created nice jspm config.js file. question is, point of installing these packages jspm (via jspm install ...
)? why not install them through npm?
more specifically, in package.json, what's difference between putting these packages inside dependencies: {} vs inside jspm.dependencies: {}
assuming building webapp jspm more suitable managing frontend dependencies npm. think webapp npm makes sense when used browserify. 1 key benefit of jspm can load dependencies using systemjs & es6 module loader polyfill. enables load dependencies in browser using es6 module syntax. e.g.:
import 'jquery';
keep in mind jspm ment used frontend dependencies. dependencies used build process should keep using npm.
Comments
Post a Comment