question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Use CLI to provide JSPM-like functionality?

See original GitHub issue

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?

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:1
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
hanslcommented, Mar 17, 2016

@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: https://github.com/angular/angular-cli/pull/255

Closing this as a duplicate.

0reactions
angular-automatic-lock-bot[bot]commented, Sep 5, 2019

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Command Line Interface - AWS CLI
The AWS Command Line Interface (AWS CLI) is a unified tool to manage your AWS services. With just one tool to download and...
Read more >
What is a command-line interface (CLI)? - TechTarget
A command-line interface (CLI) is a text-based user interface (UI) used to run programs, manage computer files and interact with the computer.
Read more >
Command-line interface - Wikipedia
A command-line interpreter or command-line processor uses a command-line interface (CLI) to receive commands from a user in the form of lines of...
Read more >
Quickstart: Create a C# function in Azure from the command line
Learn how to create a C# function from the command line, then publish the local project to serverless hosting in Azure Functions.
Read more >
Command Line Interface (CLI) - Oracle Help Center
... you can use on its own or with the Console to complete Oracle Cloud Infrastructure tasks. The CLI provides the same core...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found