|
6 | 6 | "scripts": {
|
7 | 7 | "release": "semantic-release",
|
8 | 8 | "build": "vue-cli-service build --target lib --name @lottiefiles/vue-lottie-player ./src/index.js && rm ./dist/demo.html",
|
9 |
| - "start-cypress": "yarn run cypress run", |
| 9 | + "build-with-coverage": "CODE_COVERAGE=true vue-cli-service build --target lib --name @lottiefiles/vue-lottie-player ./src/index.js && rm ./dist/demo.html", |
| 10 | + "start-cypress": "yarn run cypress run && npx nyc report --reporter=text-summary", |
10 | 11 | "serve-app": "cd example && yarn run serve &",
|
11 |
| - "run-tests": "yarn run build && yarn run serve-app && BACK_PID=$! && wait $BACK_PID && yarn run start-cypress", |
| 12 | + "run-tests": "yarn run build-with-coverage && yarn run serve-app && BACK_PID=$! && wait $BACK_PID && yarn run start-cypress", |
12 | 13 | "postrun-tests": "kill $(lsof -t -i:8080)"
|
13 |
| - |
14 | 14 | },
|
15 | 15 | "main": "dist/@lottiefiles/vue-lottie-player.common.js",
|
16 | 16 | "files": [
|
|
38 | 38 | "devDependencies": {
|
39 | 39 | "@commitlint/cli": "^12.1.1",
|
40 | 40 | "@commitlint/config-conventional": "^12.1.1",
|
| 41 | + "@cypress/code-coverage": "^3.9.12", |
41 | 42 | "@rollup/plugin-buble": "^0.21.3",
|
42 | 43 | "@rollup/plugin-commonjs": "^19.0.0",
|
43 | 44 | "@semantic-release/changelog": "^5.0.1",
|
|
48 | 49 | "@semantic-release/release-notes-generator": "^9.0.2",
|
49 | 50 | "@vue/cli-service": "^4.5.13",
|
50 | 51 | "@vue/compiler-sfc": "^3.0.11",
|
51 |
| - "cypress": "^9.5.1", |
| 52 | + "babel-plugin-istanbul": "^6.1.1", |
52 | 53 | "husky": ">=4",
|
53 | 54 | "lint-staged": ">=10",
|
54 | 55 | "rollup": "^2.50.1",
|
|
0 commit comments