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

Skip rebuilds if nothing has changed #39

Open
davewasmer opened this issue Oct 17, 2017 · 1 comment
Open

Skip rebuilds if nothing has changed #39

davewasmer opened this issue Oct 17, 2017 · 1 comment

Comments

@davewasmer
Copy link
Contributor

There might be many instances where the developer runs denali server with nothing changed from the last build. It would be ideal if we could simply skip the build step and re-use the already compiled dist.

We could hash the source directories (do we include node_modules and/or addons?) at build time, and write that hash to dist/.build (filename TBD). Then when we go to rebuild, we rehash the source directories and compare to dist/.build. If they are the same, we are okay to re-use the built output.

This might also be helpful when we get around to implementing a denali server --production that works on prebuilt files

@seawatts
Copy link
Contributor

This sounds amazing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants