Skip to content

Use CLI to provide JSPM-like functionality? #182

Closed
@robwormald

Description

@robwormald

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions