zemse / create-solidity-project

Sets up a raw dependency Solidity project with one npx command.
8 stars 9 forks source link

Add functionality to compile only if contracts folder contents have been changed #1

Closed zemse closed 4 years ago

zemse commented 4 years ago

When we do node compile.js && npm run test, first contracts are compiled then tests are run.

While development either we change contract code or change tests code. If we change contract code file both the commands should run, but if we change tests code, then only npm run test should be run. Compiling contracts again with no change in source code is a waste of time. So this can be improved.

zemse commented 4 years ago

this feature is added in commit 49df24d75f35a9ea1c8829edefdb87af5e164b22. You can copy paste the new compile script to your SST based project's compile script.