Skip to content

Use CLI to provide JSPM-like functionality? #182

Closed

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?

Activity

  1. hansl commented on Feb 12, 2016

    @hansl
    Contributor

    I'm working on a design doc for ng install that will cover this. We will get a simpler System.config for the user (and he can still customize it).

    The magic bits will be moved to a file that we control, and the user just need to include/import that file.

  2. timkindberg commented on Feb 29, 2016

    @timkindberg

    Yes I'd say this issue is strongly related (if not a duplicate of) #124 and I also highly agree this needs to be a thing. +1

  3. khanhhua commented on Mar 15, 2016

    @khanhhua

    +1 This is super urgent. It's likely we abandon that CLI if I have to manually config for SystemJS for every node_module package.

  4. zackarychapple commented on Mar 15, 2016

    @zackarychapple
    Contributor

    Giant +1 here too.

  5. hansl commented on Mar 17, 2016

    @hansl
    Contributor

    @khanhhua: the tool is not even in Alpha and you shouldn't use this for any serious projects (yet).

    The proposal is under way and we'll configure SystemJS properly once we're done with it.

    See the design doc here: #255

    Closing this as a duplicate.

  6. angular-automatic-lock-bot commented on Sep 5, 2019

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  7. locked and limited conversation to collaborators on Sep 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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