Whenever I build my project to be served, I have to execute three scripts:
npm run build:local //calls tsc to compile ts into js files
npm run build:webpack //invokes webpack to bundle js files into one minified file
npm run serve //runs my lite-server to preview files
I wanted to run these commands sequentially as:
npm run build:local && npm run build:webpack && npm run serve
However, due to needing to have some JQuery in my ts files, I get an error during npm run build:local
that throws Cannot find name '$'.
However, my code compiles it anyways, and that line is critical to my project, so it needs to be there (for now). That error stops the sequential execution of the script. Is there a way to ignore errors and keep executing down the chain?
npm-run-all
, which is indeed cross-platform.