## ## Tokenizr -- String Tokenization Library ## Copyright (c) 2015-2025 Dr. Ralf S. Engelschall ## Licensed under MIT license ## # all-in-one development dev nodemon --exec "npm start lint build test" --watch src --ext ts # static code analysis (linting) lint tsc --project etc/tsc.json --noEmit && \ oxlint --config etc/oxlint.jsonc src/*.ts && \ biome lint --diagnostic-level=warn --config-path=etc/biome.jsonc src/*.ts && \ eslint --config etc/eslint.mts src/*.ts # static code analysis (linting) [watching] lint-watch nodemon --exec "npm start lint" --watch src --ext ts # code compilation/transpiling (building) build VITE_BUILD_FORMATS=esm,cjs vite --config etc/vite.mts build --mode production VITE_BUILD_FORMATS=umd vite --config etc/vite.mts build --mode production # code compilation/transpiling (building) [watching] build-watch nodemon --exec "npm start build" --watch src --ext ts # run test suite and sample test NODE_OPTIONS="--import=tsx" mocha tst/tokenizr.spec.ts tsx smp/sample.ts # cleanup (built artifacts) clean shx rm -rf dst # cleanup (bootstrap artifacts) distclean: clean shx rm -rf node_modules