-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpackage.json
27 lines (27 loc) · 1.22 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
{
"name": "cypress-zap",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
"scripts": {
"test": "concurrently -k -r -s first \"npm:zap:daemon\" \"npm:cypress:open\"",
"test:ci": "concurrently -k -r -s first \"npm:zap:daemon\" \"npm:cypress:run\"",
"posttest": "npm run zap:report && npm run clean",
"posttest:ci": "npm run zap:report && npm run clean",
"cypress:open": "npm run clean && npm run wait && cross-env HTTP_PROXY=http://localhost:8080 NO_PROXY=\"<-loopback>\" cypress open && npm run wait",
"cypress:run": "npm run clean && npm run wait && cross-env HTTP_PROXY=http://localhost:8080 NO_PROXY=\"<-loopback>\" cypress run && npm run wait",
"wait": "node wait",
"clean": "rimraf zap-results",
"zap:daemon": "cross-env-shell java -jar ./zap/zap-2.9.0.jar -daemon -port 8080 -config api.addrs.addr.regex=true -config api.disablekey=true -newsession $INIT_CWD/zap-results/session",
"zap:report": "java -jar ./zap/zap-2.9.0.jar -last_scan_report ./report.html -session ./zap-results/session -cmd"
},
"dependencies": {
"cross-env": "^7.0.2",
"cypress": "^5.5.0"
},
"devDependencies": {
"concurrently": "^5.3.0",
"node-fetch": "^2.6.1",
"rimraf": "^3.0.2"
}
}