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

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -