Use CLI to provide JSPM-like functionality?
See original GitHub issueOne 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:
- Created 8 years ago
- Reactions:1
- Comments:6 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@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.
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.