Closed
Description
One of the reasons SystemJS has a lot of boilerplate is that it's really designed for a case where the jspm
CLI is managing your config.js
file automatically for you. When somebody uses regular NPM, they don't get this automatic config and thus there's a lot of manual mapping that has to be done, eg:
System.config({
map: {
'angular2': 'node_modules/angular2',
'my-super-awesome-lib' : 'node_modules/my-super-awesome-lib'
},
packages: {
'my-super-awesome-lib': {
'main': 'index.js'
}
}
})
This gets unwieldy fast and is super complicated if you don't know the System config API very well. It seems like this could be handled with our CLI, especially given the stuff you're doing with adding providers and stuff.
Thoughts?
Metadata
Metadata
Assignees
Labels
No labels