Skip to content
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

ng build --watch: Do not fail when output directory cannot be removed #6434

Closed
robelcik opened this issue May 24, 2017 · 3 comments
Closed
Assignees
Labels
feature Issue that requests a new feature P5 The team acknowledges the request but does not plan to address it, it remains open for discussion severity2: inconvenient

Comments

@robelcik
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.10.0
os: win32 x64
@angular/common: 4.0.3
@angular/compiler: 4.0.3
@angular/core: 4.0.3
@angular/forms: 4.0.3
@angular/http: 4.0.3
@angular/platform-browser: 4.0.3
@angular/platform-browser-dynamic: 4.0.3
@angular/router: 4.0.3
@angular/cli: 1.0.4
@angular/compiler-cli: 4.0.3

Repro steps.

The log given by the failure.

Desired functionality.

I would like build --watch to write directly to my JEE application server so I don't need to redeploy the whole application after small changes in its Angular part.

Currently, build --watch tries to remove the output directory before compilation starts. The removal fails because output directory contains non-Angular files which are opened by application server. Responsible code is in tasks/build.js, a line like rimraf.sync(path.resolve(project.root, outputPath));

A workaround I use now is to have output directory within my project and use other tool to synchronize it with application server. But of course, it would be nice to have this issue handled in angular/cli.

An example solution could be to add an option for not removing/cleaning the output directory.

Mention any other details that might be useful.

@Brocco Brocco added P5 The team acknowledges the request but does not plan to address it, it remains open for discussion severity2: inconvenient feature Issue that requests a new feature labels May 25, 2017
@filipesilva
Copy link
Contributor

#6186 added a flag to not delete the output directory, you can use this functionality by installing @angular/cli@minor.

@robelcik
Copy link
Author

Thanks a lot guys! It works fine for me!

@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
feature Issue that requests a new feature P5 The team acknowledges the request but does not plan to address it, it remains open for discussion severity2: inconvenient
Projects
None yet
Development

No branches or pull requests

3 participants