English | 简体中文 (link only available in the GitHub repo page)
This is a template repository that is set up to build scripts that can run in Synthesizer V Pro. This boilerplate configures TypeScript, Webpack, ESLint, Jest, and uses core-js to polyfill. Original scaffolding found at this ts-loader example.
- Click
Use this template
to generate your own repository with this template. - Modify
package.json
,LICENSE
(there is author name in it). - Start coding in the
src
folder! (But make suresrc/index.ts
exports aSVScriptFactory
)
start
: Runs Webpack in watch mode, and continuously build the project and outputs to thedist
folder.doc
: Runstypedoc
to regenerate the API documentation.prebuild
: Deletes all the files indist
folder.build
: Runs Webpack with minification turned on to build a production build.test
: Runsjest
to test this project.test:watch
: Runsjest
while watching for file changes that could impact test output.lint
: Lints this project.lint-rule-timings
: Runseslint
but only outputs the timing of each linting rule.