Skip to content

angular-cli 1.0.0-beta.14 developing my package #2214

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
jjlgjkkl opened this issue Sep 19, 2016 · 3 comments
Closed

angular-cli 1.0.0-beta.14 developing my package #2214

jjlgjkkl opened this issue Sep 19, 2016 · 3 comments

Comments

@jjlgjkkl
Copy link

jjlgjkkl commented Sep 19, 2016

i'm developing my angular2 package and will publish to our private npm warehouse
in angular-cli 1.0.0-beta.14 , when building my source code,there are three problems:

1)how to copy files to dist dir? that can be done in angular-cli 1.0.0-beta.10
2)how to keep the js and .d.ts files in the dist dir? that also can be done in angular-cli 1.0.0-beta.10
3) webpack does not build the not used files


Thanks! We'll be in touch soon.

@jbeckton
Copy link

We are building reusable angular 2 libraries that have modules that wrap common functionality, I could be wrong but most likely the CLI Webpack is not going to be the right tool for the job. You would not want to bundle all your scripts inside your library package, Webpack is going to do that anyways when your library is a dependency of your web app.

I use Gulp to manage my build tasks for my library packages. The CLI Webpack is appropriate for web application code.

@filipesilva
Copy link
Contributor

Dupe of #1692

For now the CLI is mostly focused on apps instead of libs, but we want to do libs in the feature.

@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 6, 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

3 participants