-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
98 lines (98 loc) · 4.64 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
{
"name": "cypress-template",
"version": "1.0.0",
"description": "cypress template to create cypress libraries with typescript / jest / code coverage",
"main": "index.js",
"repository": "[email protected]:mmisty/cypress-template.git",
"homepage": "https://github.com/mmisty/cypress-template#readme",
"publishConfig": {
"registry": "https://registry.npmjs.org/"
},
"keywords": [
"cypress",
"e2e",
"tests",
"typescript",
"template"
],
"author": "Taisia Pitko (mmisty) <[email protected]>",
"scripts": {
"husky:install": "husky install",
"lint": "eslint --fix '**/*.{ts,tsx,js}'",
"test": "jest --reporters=default --reporters=jest-junit",
"test:cov": "jest --coverage --coverageDirectory reports/coverage-jest --reporters=default --reporters=jest-junit",
"cy": "cypress",
"cy:open": "npm run cy -- open",
"cy:run": "npm run cy -- run --browser chrome --headless",
"cy:run:cov": "COVERAGE_REPORT_DIR=reports/coverage-cypress COVERAGE=true npm run cy -- run",
"cy:open:cov": "COVERAGE_REPORT_DIR=reports/coverage-cypress COVERAGE=true npm run cy -- open",
"build": "tsc --project tsconfig.build.json",
"build:tests": "tsc && cd tests && tsc",
"build:cy": "cd integration && tsc",
"build:all": "npm run build && npm run build:cy && npm run build:tests",
"test:all": "npm run test:cov && npm run cy:run:cov",
"cov:merge": "node ./.scripts/merge.js --cypress reports/coverage-cypress --jest reports/coverage-jest --out reports/coverage-temp --report reports/coverage-full",
"cov:fin": "echo 'this applies nyc config to report' && npx nyc report -t reports/coverage-full --report-dir reports/coverage-full-total",
"cov": "http-server reports/coverage-full/lcov-report",
"cov:jest": "http-server reports/coverage-jest/lcov-report",
"cov:cy": "http-server reports/coverage-cypress/lcov-report",
"cov:check": "COVERAGE_TEMP=reports/coverage-temp nyc check-coverage",
"all": "npm run pre && npm run cov:check && npm run cov",
"pre": "rm -rf ./node_modules/.cache lib reports coverage-nyc .nyc_output && npm run lint && npm run build:all && npm run test:all && npm run cov:merge",
"prepublishOnly": "{ echo \"Run script 'npm run publish:pack', 'npm run publish:minor', etc from package.json\n\"; exit 1; }",
"postpublish": "git tag v$ver",
"pack": "npm run build && cp package.json ./lib/package.json && cp README.pack.md ./lib/README.md && cp CHANGELOG.md ./lib/CHANGELOG.md && sh .scripts/remove.sh && cd lib && npm version $ver --no-git-tag-version ",
"prepublish": "npm run lint",
"publishPack": "npm run pack && cd lib && npm publish",
"publish:alpha": "export ver=$(semver $(npm show . version) --increment -i prerelease --preid 'alpha') && npm run publishPack && npm run postpublish",
"publish:patch": "export ver=$(semver $(npm show . version) --increment -i patch) && npm run publishPack && npm run postpublish",
"publish:minor": "export ver=$(semver $(npm show . version) --increment -i minor) && npm run publishPack && npm run postpublish",
"publish:major": "export ver=$(semver $(npm show . version) --increment -i major) && npm run publishPack && npm run postpublish",
"publish:pack": "export ver=\"0.0.2-alpha-2\" && npm run publishPack && npm run postpublish"
},
"jest-junit": {
"suiteName": "jest tests",
"outputDirectory": "./reports/jest",
"outputName": "junit.xml",
"uniqueOutputName": "false",
"classNameTemplate": "{classname}-{title}",
"titleTemplate": "{classname}-{title}",
"ancestorSeparator": " › ",
"usePathForSuiteName": "true"
},
"devDependencies": {
"@cypress/code-coverage": "^3.10.0",
"@ephesoft/webpack.istanbul.loader": "^2.2.0",
"@istanbuljs/nyc-config-typescript": "^1.0.2",
"@types/jest": "^29.2.3",
"@types/node": "^18.11.9",
"@typescript-eslint/eslint-plugin": "^5.44.0",
"@typescript-eslint/parser": "^5.44.0",
"cypress": "^13.0.0",
"eslint": "^8.28.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-cypress": "^2.12.1",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jest": "^27.1.6",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-promise": "^6.1.1",
"husky": "^8.0.2",
"istanbul-lib-coverage": "^3.2.0",
"jest": "^29.3.1",
"jest-environment-jsdom": "^29.3.1",
"jest-junit": "^16.0.0",
"jest-test-each": "^0.9.1",
"nyc": "^15.1.0",
"semver": "^7.5.4",
"ts-jest": "^29.0.3",
"ts-loader": "^9.4.1",
"ts-node": "^10.9.1",
"tsconfig-paths-webpack-plugin": "^4.0.0",
"typescript": "^4.9.3",
"webpack": "^5.88.2"
},
"volta": {
"node": "16.16.0",
"npm": "8.11.0"
}
}