When changing code and running tests i forgot to re-run the build process causing a lot of friction trying to debug why the new tests are failing while the code tested is the previous version of the /src files.
Suggested Solution
Added Watch modes for the build and test scripts to support running the tests each time a file is changed.
The test:watch script will run tests each time they are changed. ( or the /src / /lib directory files are changed).
The build:watch script will run the build each time the /src files are changed - this will also help the developer receive real feedback for the changes he made to the /src files and not mistake the tests passing / failing when they run against the previous (and now stale) build.
Updated the README.md to include these changes and recommend using the watch modes added.
Also did some minor markdown changes to the README.md file:
-- Changed the Lint / Build / Test subtitles in the Development section to sub-headings.
-- Changed the markdown type for the default options JSON snippet to be json5 and not javascript.
Problem description
/src
files.Suggested Solution
Added Watch modes for the
build
andtest
scripts to support running the tests each time a file is changed.test:watch
script will run tests each time they are changed. ( or the/src
//lib
directory files are changed).build:watch
script will run the build each time the/src
files are changed - this will also help the developer receive real feedback for the changes he made to the/src
files and not mistake the tests passing / failing when they run against the previous (and now stale) build.README.md
to include these changes and recommend using the watch modes added.README.md
file: -- Changed the Lint / Build / Test subtitles in the Development section to sub-headings. -- Changed the markdown type for the default options JSON snippet to bejson5
and notjavascript
.