Skip to content

Feature suggestion: Fast recompile when no changes are made #7812

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
HarelM opened this issue Sep 24, 2017 · 5 comments
Closed

Feature suggestion: Fast recompile when no changes are made #7812

HarelM opened this issue Sep 24, 2017 · 5 comments

Comments

@HarelM
Copy link

HarelM commented Sep 24, 2017

Bug Report or Feature Request (mark with an x)

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

Versions.

Latest

Desired functionality.

I'm using angular-cli from visual studio - and I added the compilation using angular-cli to my compilation flow (which also compiles my C# code).
Which means every time I change anything thing in the code I would like the compilation to work.
This happens automatically for all the code written in C# - no changes = fast compilation.
I was hoping this could be done as well for angular-cli - meaning: If i didn't change any of my ts code, didn't add any package, or anything like that - the compilation will be supper fast or there will not be any compilation at all.

Mention any other details that might be useful.

The reason for this request is that every time I load my server this compilation happens (which is good since I want to make sure I'm running on my latest code) but it takes time even if I didn't change a line of code since the last compilation.

I have briefly looked for a feature like this but couldn't find one here, I'll be surprised if this is not a dup...

@clydin
Copy link
Member

clydin commented Sep 24, 2017

For typical development workflows, either ng serve or ng build --watch are the recommended approaches. ng build is designed and intended to perform a complete build.
More in-depth integration with the IDE would provide for this type of functionality as well as much more. However, i'm not currently aware of any work in regards to a visual studio plugin of this nature.

@filipesilva
Copy link
Contributor

I think what @HarelM is requesting is that subsequent ng build would be fast if nothing changed, this is thus a duplicate of #7467. There is some discussion and reasoning for not adding it there.

@HarelM
Copy link
Author

HarelM commented Sep 25, 2017

Thanks! sounds like the same issue.

@clydin
Copy link
Member

clydin commented Sep 25, 2017

For the special case of no files changed, there is an alternate option that wouldn't require changes to the CLI. The IDE could check timestamps of the app files and compare to the built files. If any are older than the built files, it would run the build command. If not, do nothing.
Checking all the files within the app's directory is obviously a naive implementation. But for the IDE to receive the list of only relevant files would require a library/programmatic version ng build and a VS plugin to tie everything together.

@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

3 participants