scripts: add test

This commit is contained in:
Yoshua Wuyts
2016-07-12 17:27:50 +02:00
parent 50daf1f481
commit 5357ca2614
3 changed files with 91 additions and 16 deletions
+6 -6
View File
@@ -4,12 +4,12 @@
"description": "A 5kb framework for creating sturdy frontend applications",
"main": "index.js",
"scripts": {
"deps": "dependency-check . && dependency-check . --extra --no-dev -i xhr",
"test:electron": "browserify tests/**/*.js -t es2020 -p proxyquire-universal | tape-run",
"test:cov": "browserify tests/**/*.js -t es2020 -p proxyquire-universal -p tape-istanbul/plugin | tape-run | tape-istanbul && istanbul report",
"test:server": "standard && npm run deps && NODE_ENV=test node tests/server/*",
"test:browser": "standard && npm run deps && NODE_ENV=test zuul tests/browser/*",
"test:browser:local": "standard && npm run deps && NODE_ENV=test zuul --local 8080 -- tests/browser/*",
"deps": "./scripts/test deps",
"test:electron": "./scripts/test electron",
"test:cov": "./scripts/test cov",
"test:server": "./scripts/test server",
"test:browser": "./scripts/test browser",
"test:browser-local": "./scripts/test browser-local",
"preversion": "if [ ! -z $SKIP_TEST ]; then npm run test:browser; fi",
"test": "npm run test:electron",
"build:dev": "./scripts/build dev",