Skip to content

Feat: add support for library development #2669

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
msterba opened this issue Oct 12, 2016 · 5 comments
Closed

Feat: add support for library development #2669

msterba opened this issue Oct 12, 2016 · 5 comments

Comments

@msterba
Copy link

msterba commented Oct 12, 2016

It would be nice to have support for developing component libraries.

Scaffolding could be done similar as for an app, having the app as playground for the library during development. ng build would then create tree-shakeable es6(es5) modules and an umd bundle. Of course without the app.

@loicsalou
Copy link

it's quite difficult to find a standard way how to create an Angular2 library. I've been struggling for a while to be able to do this and so far I still can't create a component library which uses all Angular2 concepts (separated files for typescript, html templates, scss style files), and it's also quite hard to include in such a library images or stuff like that.
This would really be great for all developpers in order to increase usage of Angular !

@BernhardRode
Copy link

I think a basic peace would be to have a away to generate a "valid" npm package to be used in other projects.

@vinaysoni
Copy link

vinaysoni commented Oct 13, 2016

cli could allow generation of projects that are not root projects. Like Maven it would be great to have a concept of Archetype so that:

"ng new myStockPicker --architype reusableComponentUI"
could generate a non root reusable UI component.

"ng new stockPricesPI --architype reusableComponentAPI"
could generate an API that provides service capabilities.

"ng new stockApp "
could generate the root module for the UI app, the way it does now.

@filipesilva
Copy link
Contributor

Dupe of #1692

@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

5 participants