mirror of
https://github.com/zadam/trilium.git
synced 2025-02-21 21:43:55 +08:00
add running tests into the build process
This commit is contained in:
parent
c2789bf355
commit
b815e10ff3
2 changed files with 6 additions and 1 deletions
|
@ -1,5 +1,9 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
echo "Running tests"
|
||||||
|
|
||||||
|
npm run test-all || { echo 'unit tests failed' ; exit 1; }
|
||||||
|
|
||||||
echo "Deleting existing builds"
|
echo "Deleting existing builds"
|
||||||
|
|
||||||
rm -rf dist/*
|
rm -rf dist/*
|
||||||
|
|
|
@ -20,7 +20,8 @@
|
||||||
"build-docs": "npm run build-backend-docs && npm run build-frontend-docs",
|
"build-docs": "npm run build-backend-docs && npm run build-frontend-docs",
|
||||||
"webpack": "npx webpack -c webpack-desktop.config.js && npx webpack -c webpack-mobile.config.js && npx webpack -c webpack-setup.config.js",
|
"webpack": "npx webpack -c webpack-desktop.config.js && npx webpack -c webpack-mobile.config.js && npx webpack -c webpack-setup.config.js",
|
||||||
"test": "jasmine",
|
"test": "jasmine",
|
||||||
"test-es6": "node -r esm spec-es6/attribute_parser.spec.js "
|
"test-es6": "node -r esm spec-es6/attribute_parser.spec.js ",
|
||||||
|
"test-all": "npm run test && npm run test-es6"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"async-mutex": "0.2.4",
|
"async-mutex": "0.2.4",
|
||||||
|
|
Loading…
Reference in a new issue