tokenizr
Version:
String Tokenization Library for JavaScript
44 lines (34 loc) • 1.26 kB
Plain Text
##
## Tokenizr -- String Tokenization Library
## Copyright (c) 2015-2025 Dr. Ralf S. Engelschall <rse@engelschall.com>
## Licensed under MIT license <https://spdx.org/licenses/MIT>
##
# 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