This project uses npm to automate common development tasks.
Compile TypeScript and make alterations so it runs plain JavaScript on Node.js without extra tooling.
Run all checks (not tests), such as formatters and linters. Checks do not make any changes to source code.
Remove emitted JavaScript code from the TypeScript compiler.
Runs cucumber.
Runs cucumber in a mode suitable for Continuous Integration (e.g. it produces a test report and
avoids ANSI escape sequences).
Run all Cucumber scenarios.
Pass custom options to cucumber.js:
npm run test -- --format usageCucumber scenarios can be tagged as follows, to change where data is sourced:
@FileMidiSource: Read MIDI data from an actual file@StaticMidiSource: Build MIDI data inside the test
See MidiSourceHooks.ts for details.
Run scenarios tagged with @focus.
CI-ready script that runs tests and writes a test report to output/.
CI-ready script that checks for linting errors.
Automatically fix linting errors, where possible.
CI-ready script that checks for improperly formatted files.
Re-format files in place.
Compile TypeScript code to dist/.
CI-ready script that checks for type safety issues.
Watch known source files, reporting any type issues live.
Convert path aliases in require statements into relative paths that can run on Node.js without
additional tooling.