-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
80 lines (80 loc) · 3.13 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
{
"name": "cypress-sapling",
"version": "2.0.0",
"description": "A skeleton for every Cypress repository",
"main": "",
"scripts": {
"bump:major": "npm version --no-commit-hooks --no-git-tag-version major",
"bump:minor": "npm version --no-commit-hooks --no-git-tag-version minor",
"bump": "./scripts/version-bump.sh",
"c": "yarn commit",
"commit": "npx git-cz",
"cypress:debug": "yarn report:clean && cypress open",
"cypress": "yarn report:clean && cypress run --reporter cypress-multi-reporters --reporter-options configFile=reporter.config.json",
"deps:clean": "rm -rf node_modules",
"deps:install": "yarn install --frozen-lockfile",
"deps:upgrade": "yarn deps:clean && yarn upgrade && yarn deps:sync && yarn install",
"deps:sync": "npx syncyarnlock --keepPrefix --save",
"docker:build": "./scripts/docker-build.sh",
"docker:push": "./scripts/docker-push.sh",
"docker:upgrade": "yarn deps:upgrade && yarn bump && yarn docker:build && yarn docker:push",
"format:fix": "prettier --write '**/*.{js,json}'",
"format": "prettier --check '**/*.{js,json}'",
"lint:fix": "eslint --fix '**/*.js'",
"lint": "eslint '**/*.js'",
"report:clean": "rm -rf artifacts/",
"report:get-assets": "mkdir -p artifacts/mochawesome-report/assets/ && cp -R artifacts/screenshots/ artifacts/mochawesome-report/assets/ 2>/dev/null || :",
"report:get-results": "npx mochawesome-merge --reportDir artifacts/mochawesome-sources > mochawesome.json",
"report:generate": "npx marge mochawesome.json -o ./artifacts/mochawesome-report && rm mochawesome.json",
"report:open": "open artifacts/mochawesome-report/mochawesome.html",
"report": "yarn report:get-assets && yarn report:get-results && yarn report:generate",
"secrets": "yarn secrets:setup && yarn secrets:edit",
"secrets:setup": "cp -i cypress/fixtures/config/cypress.secrets.template.json ./cypress.env.json",
"secrets:edit": "open -t cypress.env.json &> /dev/null || xdg-open ./cypress.env.json &> /dev/null || echo 'Failed to open the file ./cypress.env.json for editing'; exit 1",
"test": "yarn run cypress; yarn run report; yarn report:open"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"**/*.{js,json,md}": [
"prettier --write",
"git add"
],
"**/*.js": [
"eslint",
"git add"
]
},
"eslintIgnore": [
"artifacts/**/*.js"
],
"author": "Diogo Nunes",
"license": "MIT",
"devDependencies": {
"@testing-library/cypress": "^8.0.3",
"cypress": "^10.8.0",
"cypress-commands": "^3.0.0",
"cypress-dark": "^1.8.3",
"cypress-multi-reporters": "^1.6.1",
"cypress-select-tests": "^1.7.1",
"cypress-wait-until": "^1.7.2",
"eslint": "^8.24.0",
"eslint-plugin-cypress": "^2.12.1",
"git-cz": "^4.9.0",
"husky": "^8.0.1",
"lint-staged": "^13.0.3",
"mocha": "10.0.0",
"mocha-junit-reporter": "^2.0.2",
"mochawesome": "^7.1.3",
"mochawesome-merge": "^4.2.1",
"mochawesome-report-generator": "^6.2.0",
"prettier": "^2.7.1"
},
"dependencies": {
"syncyarnlock": "^1.0.19"
},
"private": true
}