typesafe-actions
v5.1.0 typescript typesafe actions action-creator redux flux redux-actions static-typing
ci-check
npm run prettier && npm run lint && npm run tsc && npm run test
reinstall
rm -rf node_modules/ dist/ && npm install
prettier
prettier --list-different 'src/**/*.ts' || (echo '
Please fix code formatting by running:
npm run prettier:fix
'; exit 1)
prettier:fix
prettier --write 'src/**/*.ts'
lint
tslint --project './tsconfig.json'
tsc
tsc -p ./tsconfig.build.json --noEmit
tsc:watch
tsc -p ./tsconfig.build.json --noEmit -w
test
jest --config jest.config.json && dts-jest-remap ./src/*.spec.ts --rename {{basename}}.snap.{{extname}} --check
test:update
jest --config jest.config.json --no-cache -u && dts-jest-remap ./src/*.spec.ts --rename {{basename}}.snap.{{extname}}
test:watch
jest --config jest.config.json --watch
doctoc
doctoc --maxlevel=4 README.md
prebuild
rm -rf dist/ .size-snapshot.json && tsc -p ./tsconfig.declaration.json
build
tsc -p ./tsconfig.build.json && rollup -c
postbuild
rm -rf out
prepublishOnly
npm run reinstall && npm run ci-check && npm run build
benchmark:10
node --max-old-space-size=8000 ./node_modules/.bin/tsc --diagnostics --outDir out benchmarks/10-actions.ts && rm -rf out
benchmark:150
node --max-old-space-size=8000 ./node_modules/.bin/tsc --diagnostics --outDir out benchmarks/150-actions.ts && rm -rf out