This is a skeleton for node scripts using typescript
Current skeleton was created with:
- Node 18.2.0
- npm 8.9.0
The "test" script option is most useful with VS Code. Possible the npm script won't work from a non-windows machine, haven't tested...
N.B. strongly advised to use a node version manager (such as NVM for windows)
To setup the project, navigate to the same directory as this README and run npm install.
"npm run build": transpiles the typescript files, output to the./distdirectory"npm run execute": runs the current transpiled script with node, through entry./dist/main.js"npm run clean": deletes the./distdirectory and all contents"npm run start": cleans, builds, and executes"npm run test": cleans, builds, and runs all tests (spec.ts files)"npm run debug": cleans, builds, and runs with the--inspectflag. Automatically hooks up the debugger and breakpoints if run from a VSCODE terminal at the base directory