aboutsummaryrefslogtreecommitdiffstats
path: root/package.json
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2017-09-14 08:17:09 +0800
committerkumavis <aaron@kumavis.me>2017-09-14 08:17:09 +0800
commit610f09262d8686cf975b25ffb6e2b5371e3d55c0 (patch)
tree85b21eb5741fa49dbf2953576c5ba6950975246c /package.json
parentcbff5fd450ac0a55a9ef7b48b0ce540b66dfca6b (diff)
downloadtangerine-wallet-browser-610f09262d8686cf975b25ffb6e2b5371e3d55c0.tar
tangerine-wallet-browser-610f09262d8686cf975b25ffb6e2b5371e3d55c0.tar.gz
tangerine-wallet-browser-610f09262d8686cf975b25ffb6e2b5371e3d55c0.tar.bz2
tangerine-wallet-browser-610f09262d8686cf975b25ffb6e2b5371e3d55c0.tar.lz
tangerine-wallet-browser-610f09262d8686cf975b25ffb6e2b5371e3d55c0.tar.xz
tangerine-wallet-browser-610f09262d8686cf975b25ffb6e2b5371e3d55c0.tar.zst
tangerine-wallet-browser-610f09262d8686cf975b25ffb6e2b5371e3d55c0.zip
tests - refactor and rename npm scripts
Diffstat (limited to 'package.json')
-rw-r--r--package.json47
1 files changed, 24 insertions, 23 deletions
diff --git a/package.json b/package.json
index c4a19a52c..7a022d47a 100644
--- a/package.json
+++ b/package.json
@@ -6,32 +6,33 @@
"scripts": {
"start": "npm run dev",
"dev": "gulp dev --debug",
- "disc": "gulp disc --debug",
- "clear": "rm -rf node_modules/eth-contract-metadata && rm -rf node_modules/eth-phishing-detect",
- "dist": "npm run clear && npm install && gulp dist",
- "test": "npm run lint && npm run test-unit && npm run test-integration",
- "test-unit": "METAMASK_ENV=test mocha --require test/helper.js --recursive \"test/unit/**/*.js\"",
- "single-test": "METAMASK_ENV=test mocha --require test/helper.js",
- "test-integration": "npm run buildMock && npm run buildCiUnits && karma start test/together.conf.js",
- "test-coverage": "nyc npm run test-unit && npm run coveralls-upload",
- "coveralls-upload": "if [ $COVERALLS_REPO_TOKEN ]; then nyc report --reporter=text-lcov | coveralls; fi",
- "ci": "npm run lint && npm run test-coverage && npm run test-integration",
- "lint": "gulp lint",
- "buildCiUnits": "node test/integration/index.js",
- "watch": "mocha watch --recursive \"test/unit/**/*.js\"",
- "genStates": "node development/genStates.js",
- "ui": "npm run genStates && beefy ui-dev.js:bundle.js --live --open --index=./development/index.html --cwd ./",
+ "ui": "npm run test:flat:build:states && beefy ui-dev.js:bundle.js --live --open --index=./development/index.html --cwd ./",
"mock": "beefy mock-dev.js:bundle.js --live --open --index=./development/index.html --cwd ./",
- "buildMock": "npm run genStates && browserify ./mock-dev.js -o ./development/bundle.js",
+ "watch": "mocha watch --recursive \"test/unit/**/*.js\"",
+ "mascara": "node ./mascara/example/server",
+ "dist": "npm run dist:clear && npm install && gulp dist",
+ "dist:clear": "rm -rf node_modules/eth-contract-metadata && rm -rf node_modules/eth-phishing-detect",
+ "test": "npm run lint && npm run test:coverage && npm run test:integration",
+ "test:unit": "METAMASK_ENV=test mocha --require test/helper.js --recursive \"test/unit/**/*.js\"",
+ "test:single": "METAMASK_ENV=test mocha --require test/helper.js",
+ "test:integration": "npm run test:flat",
+ "test:coverage": "nyc npm run test:unit && npm run test:coveralls-upload",
+ "test:coveralls-upload": "if [ $COVERALLS_REPO_TOKEN ]; then nyc report --reporter=text-lcov | coveralls; fi",
+ "test:flat": "npm run test:flat:build && karma start test/flat.conf.js",
+ "test:flat:build": "npm run test:flat:build:ui && npm run test:flat:build:tests",
+ "test:flat:build:tests": "node test/integration/index.js",
+ "test:flat:build:states": "node development/genStates.js",
+ "test:flat:build:ui": "npm run test:flat:build:states && browserify ./mock-dev.js -o ./development/bundle.js",
+ "test:mascara": "npm run test:mascara:build && karma start test/mascara.conf.js",
+ "test:mascara:build": "mkdir -p dist/mascara && npm run test:mascara:build:ui && npm run test:mascara:build:background && npm run test:mascara:build:tests",
+ "test:mascara:build:ui": "browserify mascara/test/test-ui.js -o dist/mascara/ui.js",
+ "test:mascara:build:background": "browserify mascara/src/background.js -o dist/mascara/background.js",
+ "test:mascara:build:tests": "browserify test/integration/lib/first-time.js -o dist/mascara/tests.js",
+ "lint": "gulp lint",
+ "disc": "gulp disc --debug",
"announce": "node development/announcer.js",
"generateNotice": "node notices/notice-generator.js",
- "deleteNotice": "node notices/notice-delete.js",
- "mascara": "node ./mascara/example/server",
- "testMascara": "npm run buildMascara && karma start test/mascara.conf.js",
- "buildMascara": "mkdir -p dist/mascara && npm run buildMascaraUi && npm run buildMascaraBackground && npm run buildMascaraTests",
- "buildMascaraUi": "browserify mascara/test/test-ui.js -o dist/mascara/ui.js",
- "buildMascaraBackground": "browserify mascara/src/background.js -o dist/mascara/background.js",
- "buildMascaraTests": "browserify test/integration/lib/first-time.js -o dist/mascara/tests.js"
+ "deleteNotice": "node notices/notice-delete.js"
},
"browserify": {
"transform": [