Skip to content

Building an application automatically watch for libraries changes #18985

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
2 tasks done
azephiris opened this issue Oct 6, 2020 · 2 comments
Closed
2 tasks done

Building an application automatically watch for libraries changes #18985

azephiris opened this issue Oct 6, 2020 · 2 comments

Comments

@azephiris
Copy link

🚀 Feature request

Command (mark with an x)

  • build
  • serve

Description

Whe working in an Angular workspace,
you have to run ng build [lib] --watch on all libraries and then ng build [app] --watch
to detect the changes and rebuild the application with the latest libraries changes.

Describe the solution you'd like

• A flag (--watchLibraries=opts?) to automatically build & watch libraries when running ng build [app] --watch
or
• An option in angular.json to make it dependent on the configuration.

opts=true|false|noFirstBuild:
true/false: activate / deactivate the functionnality.
noFirstBuild: to prevent having to compile lots of libraries each time you run the command, you can choose to only build them if they changed after the application has been built.

How to detect the libraries:
Using angular.json#projects.[project].projectType (= library)

Describe alternatives you've considered

npm scripts, but each time you add a library you need to add it in the scripts.

@alan-agius4
Copy link
Collaborator

Duplicate of #11002

@alan-agius4 alan-agius4 marked this as a duplicate of #11002 Oct 7, 2020
@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 Nov 7, 2020
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