-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
146 lines (146 loc) · 5.04 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
{
"name": "cumulocity-cypress",
"version": "0.5.2",
"description": "Cypress commands for Cumulocity IoT",
"scripts": {
"start-server": "cross-env NODE_NO_WARNINGS=1 npx tsx test/backend/test-server.ts",
"test": "npm run jest:run && npm run cypress",
"cypress": "cross-env TZ=Europe/Berlin start-server-and-test start-server http://localhost:8080 cypress:run",
"cypress:run": "cross-env TZ=Europe/Berlin cypress run --project test --browser chrome --config video=false",
"cypress:open": "cross-env TZ=Europe/Berlin start-server-and-test start-server http://localhost:8080 cypress:debug",
"cypress:debug": "cross-env CYPRESS_REMOTE_DEBUGGING_PORT=9222 cypress open --project test",
"jest": "npm run jest:run",
"jest:run": "jest --config jest.config.js",
"clean": "rimraf dist/ && rimraf packages/pactrunner/dist/ && rimraf packages/pactrunner/.yalc && rimraf packages/pactrunner/yalc.lock",
"copy-files": "copyfiles --up 1 -V './src/**/*.js' './src/**/*.d.ts' dist/ && copyfiles '*.md' package.json dist/",
"build": "npm run clean && npm run screenshot:schema && npm run copy-files && tsc -b -v src/ && npm run build:plugin",
"build:plugin": "rollup -c rollup.config.mjs",
"package": "npm run build && npm run clean:package:folder && cd dist/ && npm run clean:package:json",
"yalc:runner": "npm run yalc:publish && cd packages/pactrunner && yalc add cumulocity-cypress",
"yalc:publish": "npm run clean && npm run build && cd dist/ && yalc publish && cd ..",
"clean:package:folder": "rimraf -v -g './dist/**/*.map' && rimraf -v -g './dist/**/*.tsbuildinfo'",
"clean:package:json": "npm pkg delete 'devDependencies' && npm pkg delete 'scripts'",
"lint": "eslint ./",
"release": "semantic-release",
"release:test": "semantic-release --debug --dry-run --no-ci --repositoryUrl git@github.com:SoftwareAG/cumulocity-cypress.git",
"screenshot:schema": "npx typescript-json-schema --required --noExtraProps --excludePrivate -o src/screenshot/schema.json src/tsconfig.schematypes.json ScreenshotSetup"
},
"repository": {
"type": "git",
"url": "git+https://github.com/SoftwareAG/cumulocity-cypress.git"
},
"keywords": [
"Cypress",
"Cumulocity",
"IoT",
"Test"
],
"author": "twi@softwareag.com",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/SoftwareAG/cumulocity-cypress/issues"
},
"workspaces": [
"packages/*"
],
"bin": {
"c8yscrn": "./screenshot/startup.js"
},
"exports": {
".": {
"types": "./index.d.ts",
"default": "./index.js"
},
"./plugin": {
"types": "./plugin/index.d.ts",
"default": "./plugin/index.js"
},
"./commands": {
"types": "./lib/commands/index.d.ts",
"default": "./lib/commands/index.js"
},
"./c8ypact": {
"types": "./lib/commands/c8ypact.d.ts",
"default": "./lib/commands/c8ypact.js"
},
"./commands/*": "./lib/commands/*",
"./c8ypact/*": "./lib/pact/*",
"./*": "./*"
},
"typesVersions": {
"*": {
"c8ypact": [
"./lib/commands/c8ypact.d.ts"
],
"commands": [
"./lib/commands/index.d.ts"
],
"plugin": [
"./plugin/index.d.ts"
],
"commands/*": [
"./lib/commands/*.d.ts"
]
}
},
"dependencies": {
"@cypress/grep": "^4.1.0",
"ajv": "^8.12.0",
"ajv-formats": "^2.1.1",
"cookie-parser": "^1.4.6",
"date-fns": "^2.30.0",
"dotenv": "^16.4.5",
"lodash": "^4.17.21",
"quicktype": "^23.0.81",
"semver": "^7.5.2",
"set-cookie-parser": "^2.6.0",
"yaml": "^2.5.1",
"yargs": "^17.7.2"
},
"devDependencies": {
"@rollup/plugin-json": "^6.1.0",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/exec": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@semantic-release/github": "^10.1.3",
"@types/chai": "^4.3.4",
"@types/cookie-parser": "^1.4.6",
"@types/debug": "^4.1.12",
"@types/glob": "^8.1.0",
"@types/jest": "^29.5.12",
"@types/lodash": "^4.17.0",
"@types/node": "^20.10.6",
"@types/semver": "^7.5.8",
"@types/set-cookie-parser": "^2.4.7",
"@typescript-eslint/eslint-plugin": "^7.5.0",
"@typescript-eslint/parser": "^7.5.0",
"copyfiles": "^2.4.1",
"cross-env": "^7.0.3",
"eslint": "^8.57.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-cypress": "^2.15.1",
"eslint-plugin-import": "^2.29.1",
"express": "^4.19.2",
"jest": "^29.7.0",
"memfs": "^4.8.2",
"rimraf": "^5.0.1",
"rollup": "^4.14.1",
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-dts": "^6.1.0",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-shebang-bin": "^0.0.7",
"semantic-release": "^24.0.0",
"semver": "^7.6.3",
"start-server-and-test": "^2.0.0",
"ts-jest": "^29.1.2",
"tsx": "^4.16.5",
"typescript": "^5.0.2",
"typescript-json-schema": "^0.65.1",
"yalc": "^1.0.0-pre.53"
},
"peerDependencies": {
"@angular/common": ">=14.0.0",
"@c8y/client": ">=1015.0.0",
"cypress": ">=12.0.0"
}
}