|
10 | 10 | ],
|
11 | 11 | "devDependencies": {
|
12 | 12 | "@babel/core": "^7.9.6",
|
| 13 | + "@babel/preset-env": "^7.16.11", |
13 | 14 | "@commitlint/cli": "^12.1.1",
|
14 | 15 | "@commitlint/config-conventional": "^12.1.1",
|
| 16 | + "@cypress/code-coverage": "^3.9.12", |
| 17 | + "@istanbuljs/nyc-config-typescript": "^1.0.2", |
| 18 | + "@rollup/plugin-babel": "^5.3.1", |
15 | 19 | "@rollup/plugin-commonjs": "^11.1.0",
|
16 | 20 | "@rollup/plugin-node-resolve": "^7.1.3",
|
17 | 21 | "@rollup/plugin-strip": "^1.3.2",
|
|
35 | 39 | "@typescript-eslint/eslint-plugin": "^2.24.0",
|
36 | 40 | "@typescript-eslint/parser": "^2.24.0",
|
37 | 41 | "babel-loader": "^8.1.0",
|
| 42 | + "babel-plugin-istanbul": "^6.1.1", |
38 | 43 | "css-loader": "^3.5.3",
|
39 | 44 | "csstype": "^2.6.10",
|
40 | 45 | "cypress": "^9.5.1",
|
|
61 | 66 | "rollup-plugin-terser": "^5.3.0",
|
62 | 67 | "rollup-plugin-typescript2": "^0.27.0",
|
63 | 68 | "semantic-release": "^17.4.2",
|
| 69 | + "source-map-support": "^0.5.21", |
64 | 70 | "style-loader": "^1.2.1",
|
65 | 71 | "ts-jest": "^26.0.0",
|
66 | 72 | "ts-loader": "^7.0.4",
|
| 73 | + "ts-node": "^10.7.0", |
67 | 74 | "typescript": "^3.5.3",
|
68 | 75 | "typings-for-css-modules-loader": "^1.7.0",
|
69 | 76 | "webpack": "^4.43.0"
|
|
80 | 87 | "build-with-coverage": "CODE_COVERAGE=true rollup -c",
|
81 | 88 | "prepublishOnly": "yarn build",
|
82 | 89 | "build-tests": "yarn run build-with-coverage && cp ./dist/lottie-react.js ./cypress/react-testing-pages/src/components/",
|
83 |
| - "run-tests": "while ! nc -z localhost 8080 ; do sleep 1 ; done && yarn run start-cypress", |
| 90 | + "run-tests": "while ! nc -z localhost 8080 ; do sleep 1 ; done && yarn run start-cypress && npx nyc report --reporter=text-summary", |
84 | 91 | "postrun-tests": "kill $(lsof -t -i:8080)",
|
85 |
| - "start-and-run-tests": "yarn run build-tests && yarn run serve-app && yarn run-tests;", |
| 92 | + "start-and-run-tests": "yarn run build-tests && yarn run serve-app && yarn run-tests", |
86 | 93 | "serve-app": "cd ./cypress/react-testing-pages && yarn && yarn run start &",
|
87 | 94 | "start-cypress": "yarn run cypress run",
|
88 | 95 | "lint": "tsc --noEmit && eslint . --ext .ts,.tsx,.js",
|
|
122 | 129 | "src/**/*.{js,jsx,ts,tsx,json}": [
|
123 | 130 | "eslint . --ext .ts,.tsx,.js --fix"
|
124 | 131 | ]
|
| 132 | + }, |
| 133 | + "nyc": { |
| 134 | + "extends": "@istanbuljs/nyc-config-typescript", |
| 135 | + "all": true |
125 | 136 | }
|
126 | 137 | }
|
0 commit comments