Skip to content

angular cli need a option for building npm modules #6416

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
turnerguo opened this issue May 23, 2017 · 3 comments
Closed

angular cli need a option for building npm modules #6416

turnerguo opened this issue May 23, 2017 · 3 comments

Comments

@turnerguo
Copy link

Bug Report or Feature Request (mark with an x)

- [ ] bug report -> please search issues before submitting
- [x] feature request

Versions.

@angular/cli: 1.0.4
node: 6.9.5
os: darwin x64
@angular/common: 4.1.3
@angular/compiler: 4.1.3
@angular/core: 4.1.3
@angular/forms: 4.1.3
@angular/http: 4.1.3
@angular/platform-browser: 4.1.3
@angular/platform-browser-dynamic: 4.1.3
@angular/router: 4.1.3
@angular/cli: 1.0.4
@angular/compiler-cli: 4.1.3

macOS El Capitan (10.11.6)

Repro steps.

When I want to build a npm module I got no options from angular-cli.

Desired functionality.

Simply, it is better if there is a option for 'ng build' like:

ng build --npm-module
# or
ng build --npm --output-path=../node-packages/

Mention any other details that might be useful.

It would be very easy for product contains both app and related customised module when using ng cli.

@Brocco
Copy link
Contributor

Brocco commented May 23, 2017

There is an issue open for creating libraries via the CLI, you can track the progress here: #1692

Closing as a duplicate.

@Brocco Brocco closed this as completed May 23, 2017
@turnerguo
Copy link
Author

@Brocco Thanks for reply, I'll track on it.

@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants