forked from garris/BackstopJS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
121 lines (121 loc) · 6.87 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
{
"name": "backstopjs",
"version": "6.3.23",
"description": "BackstopJS: Catch CSS curveballs.",
"homepage": "https://github.com/garris/BackstopJS#readme",
"bin": {
"backstop": "./cli/index.js"
},
"engines": {
"node": ">=16.0.0 <=20.x.x",
"npm": ">=8.0.0"
},
"scripts": {
"lint": "eslint \"compare/*.js\" \"compare/src/**/*.js\" \"core/**/*.js\" \"cli/**/*.js\" \"capture/**/*.js\" \"test/**/*.js\"",
"format": "prettier-eslint --write \"compare/src/**/*.js\"",
"init": "node ./cli/index.js init",
"reference": "node ./cli/index.js reference",
"test": "node ./cli/index.js test",
"approve": "node ./cli/index.js approve",
"openReport": "node ./cli/index.js openReport",
"report": "node ./cli/index.js openReport",
"unit-test": "mocha --reporter spec --recursive \"test/**/*_spec.js\" && npm run -s success-message || npm run -s fail-message",
"precommit": "lint-staged",
"build-compare": "cp ./node_modules/diverged/src/diverged.js ./compare/output/ && cp ./node_modules/diff/dist/diff.js ./compare/output/ && webpack --config ./compare/webpack.config.js && npm run -s lint",
"dev-compare": "webpack-dev-server --config ./compare/webpack.config.js",
"integration-test": "rm -rf integrationTestDir && mkdir integrationTestDir && cd integrationTestDir && node ../cli/index.js init && node ../cli/index.js reference && node ../cli/index.js test && node -e \"require('../')('test')\" && npm --prefix ../ run -s success-message || npm --prefix ../ run -s fail-message",
"smoke-test": "cd test/configs/ && node ../../cli/index.js test --config=backstop_features && npm --prefix ../../ run -s success-message || npm --prefix ../../ run -s caution-message",
"smoke-test-playwright": "cd test/configs/ && node ../../cli/index.js test --config=backstop_features_pw && npm --prefix ../../ run -s fail-message || npm --prefix ../../ run -s caution-message",
"smoke-test-docker": "cd test/configs/ && node ../../cli/index.js test --config=backstop_features --docker && npm --prefix ../../ run -s fail-message || npm --prefix ../../ run -s caution-message",
"smoke-test-playwright-docker": "cd test/configs/ && node ../../cli/index.js test --config=backstop_features_pw --docker && npm --prefix ../../ run -s fail-message || npm --prefix ../../ run -s caution-message",
"sanity-test": "cd test/configs/ && node ../../cli/index.js test && npm --prefix ../../ run -s success-message || npm --prefix ../../ run -s caution-message",
"reference-test": "cd test/configs/ && node ../../cli/index.js reference && node ../../cli/index.js test",
"sanity-test-playwright": "cd test/configs/ && node ../../cli/index.js test --config=playwright && npm --prefix ../../ run -s success-message || npm --prefix ../../ run -s caution-message",
"sanity-test-docker": "cd test/configs/ && node ../../cli/index.js test --docker && npm --prefix ../../ run -s success-message || npm --prefix ../../ run -s caution-message",
"sanity-test-playwright-docker": "cd test/configs/ && node ../../cli/index.js test --config=playwright --docker && npm --prefix ../../ run -s success-message || npm --prefix ../../ run -s caution-message",
"copy-report-bundle": "mkdir -p test/configs/backstop_data/html_report && cp compare/output/index_bundle.js test/configs/backstop_data/html_report/",
"build-and-copy-report-bundle": "npm run build-compare && npm run copy-report-bundle",
"remote": "cd test/configs/ && node ../../cli/index.js remote",
"stop": "cd test/configs/ && node ../../cli/index.js stop",
"publish-npm": "npm publish",
"build-docker": "PV=$(node -p -e \"require('./package.json').version\"); echo $PV; docker buildx build --platform linux/amd64,linux/arm64 -t backstopjs/backstopjs:$PV --build-arg BACKSTOPJS_VERSION=$PV docker",
"build-and-load-docker": "PV=$(node -p -e \"require('./package.json').version\"); echo $PV; docker buildx build --load -t backstopjs/backstopjs:$PV docker",
"publish-docker": "PV=$(node -p -e \"require('./package.json').version\"); echo $PV; docker buildx build --push --platform linux/amd64,linux/arm64 -t backstopjs/backstopjs:$PV --build-arg BACKSTOPJS_VERSION=$PV docker; docker buildx build --push --platform linux/amd64,linux/arm64 -t backstopjs/backstopjs:latest --build-arg BACKSTOPJS_VERSION=$PV docker",
"build-and-publish": "npm run publish-npm && npm run publish-docker",
"init-docker-builder": "docker buildx create --name backstopjsbuilder --use --bootstrap",
"burn-docker-builder": "sh ./docker/burn-docker-builder.sh",
"success-message": "printf \"\\n\\e[32m✓ SUCCESS!\\e[0m BackstopJS internal testing passed.\\n\"",
"caution-message": "printf \"\\n\\e[33m⚠ Notice.\\e[0m BackstopJS internal testing exited with a non-success status. This is expected when BackstopJS finds differences.\\n\"",
"fail-message": "printf \"\\n\\e[31m✖ FAIL!\\e[0m BackstopJS internal testing failed. See logs for details.\\n\""
},
"lint-staged": {
"compare/src/**/*.js": [
"node_modules/.bin/prettier --single-quote --write",
"git add"
]
},
"repository": {
"type": "git",
"url": "https://github.com/garris/backstopjs.git"
},
"author": "https://github.com/garris/BackstopJS/graphs/contributors",
"license": "MIT",
"main": "core/runner.js",
"devDependencies": {
"@babel/core": "^7.23.6",
"@babel/preset-env": "^7.23.6",
"@babel/preset-react": "^7.23.3",
"assert": "^2.1.0",
"babel-loader": "^9.1.3",
"backstop-twentytwenty": "^1.1.0",
"eslint": "^8.56.0",
"eslint-config-semistandard": "17.0.0",
"eslint-config-standard": "17.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-n": "^15.0.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-standard": "^5.0.0",
"file-loader": "^6.2.0",
"lint-staged": "^15.2.0",
"mocha": "^10.2.0",
"mockery": "^2.1.0",
"prettier": "^3.1.1",
"prettier-eslint-cli": "^8.0.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-modal": "^3.16.1",
"react-redux": "^9.0.4",
"react-sticky": "^6.0.3",
"react-toggle-button": "^2.2.0",
"react-visibility-sensor": "^5.1.1",
"redux": "^5.0.0",
"sinon": "^17.0.1",
"styled-components": "^6.1.2",
"url-loader": "^4.1.1",
"webpack": "^5.89.0",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^4.15.1"
},
"dependencies": {
"@mirzazeyrek/node-resemble-js": "^1.2.1",
"chalk": "^4.1.2",
"diverged": "^0.1.3",
"fs-extra": "^11.2.0",
"jump.js": "^1.0.2",
"junit-report-builder": "^3.1.0",
"lodash": "^4.17.21",
"minimist": "^1.2.8",
"object-hash": "3.0.0",
"opn": "^6.0.0",
"os": "^0.1.2",
"p-map": "^4.0.0",
"path": "^0.12.7",
"playwright": "^1.40.1",
"portfinder": "^1.0.32",
"puppeteer": "^22.1.0",
"super-simple-web-server": "^1.1.4",
"temp": "^0.9.4"
}
}