lint
eslint --cache --max-warnings 0 .
test
npm run lint && npm run check && npm run testonly && npm run prettier:check && npm run check:spelling
check
tsc
serve
ts-node ./scripts/serve-directory.ts -p 9090 demo-dist
start
npm run build:worker && webpack serve --config=webpack-demo.config.ts --mode=development
stats
NODE_ENV=production webpack --json --config=webpack.config.ts --mode=production > stats.json
bundle
rm -rf dist && npm run bundle:lib && npm run bundle:standalone
prettier
prettier --cache --cache-strategy metadata --write --list-different . **/*.svg
testonly
npm run build:demo && docker-compose up --abort-on-container-exit --build test
build:demo
npm run build:worker && NODE_ENV=production webpack --config=webpack-demo.config.ts --mode=production
bundle:lib
webpack --config=webpack.config.ts --mode=production --env lib
preversion
npm ci --ignore-scripts && npm test
build:worker
npm run clean:worker && docker-compose up --abort-on-container-exit --build build-worker
clean:worker
rm -rf worker-dist
declarations
tsc --emitDeclarationOnly -p tsconfig.lib.json
build:release
npm run build:worker && npm run bundle && npm run compile:middleware && npm run declarations
clean:release
rm -rf middleware
check:spelling
cspell --cache --no-progress '**/*'
prettier:check
prettier --cache --cache-strategy metadata --check . **/*.svg
bundle:standalone
webpack --config=webpack.config.ts --mode=production
compile:middleware
tsc -d src/middleware/index.ts --outDir middleware --lib ES6,DOM,esnext.asynciterable