29 lines
407 B
Makefile
29 lines
407 B
Makefile
export PATH := "./node_modules/.bin:" + env_var('PATH')
|
|
|
|
install-dependencies:
|
|
yarn --ignore-engines
|
|
|
|
build:
|
|
rm -rf lib
|
|
node build.js
|
|
|
|
test:
|
|
jest
|
|
|
|
test-only file:
|
|
jest {{file}}
|
|
|
|
emit-types:
|
|
tsc # see tsconfig.json
|
|
|
|
publish: build emit-types
|
|
npm publish
|
|
|
|
format:
|
|
eslint --ext .ts --fix *.ts
|
|
prettier --write *.ts
|
|
|
|
lint:
|
|
eslint --ext .ts *.ts
|
|
prettier --check *.ts
|