|
13 | 13 | "lint": "eslint .", |
14 | 14 | "smoke": "lighthouse-cli/scripts/run-smoke-tests.sh", |
15 | 15 | "coverage": "istanbul cover -x \"**/third_party/**\" _mocha -- $(find */test -name '*.js') --timeout 60000", |
| 16 | + "coverage:harmony": "node --harmony node_modules/istanbul/lib/cli.js cover -x \"**/third_party/**\" _mocha -- $(find */test -name '*.js') --timeout 60000", |
16 | 17 | "coveralls": "npm run coverage && cat ./coverage/lcov.info | coveralls", |
| 18 | + "coveralls:harmony": "npm run coverage:harmony && cat ./coverage/lcov.info | coveralls", |
17 | 19 | "start": "node ./lighthouse-cli/index.js", |
18 | | - "test": "npm run lint --silent && npm run unit && npm run closure", |
| 20 | + "test": "if [[ $(node -v) =~ ^v4.* ]]; then npm run test:harmony; else npm run test:sans-harmony; fi", |
| 21 | + "test:sans-harmony": "npm run lint --silent && npm run unit && npm run closure", |
| 22 | + "test:harmony": "npm run lint --silent && npm run unit:harmony && npm run closure", |
19 | 23 | "cli-unit": "mocha $(find lighthouse-cli/test -name '*.js') --timeout 60000", |
| 24 | + "cli-unit:harmony": "mocha --harmony $(find lighthouse-cli/test -name '*.js') --timeout 60000", |
20 | 25 | "unit": "npm run cli-unit && npm --prefix ./lighthouse-core run unit", |
| 26 | + "unit:harmony": "npm run cli-unit:harmony && npm --prefix ./lighthouse-core run unit:harmony", |
| 27 | + "//": |
| 28 | + "// passing through tasks to core", |
21 | 29 | "closure": "npm --prefix ./lighthouse-core run closure", |
22 | 30 | "watch": "npm --prefix ./lighthouse-core run watch", |
23 | 31 | "chrome": "npm --prefix ./lighthouse-core run chrome" |
|
0 commit comments