reg-cli 0.17.3 → 0.17.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -4
- package/dist/cli.js +7 -5
- package/dist/index.js +12 -3
- package/package.json +15 -14
- package/CHANGELOG.md +0 -29
- package/report/ui/LICENSE +0 -21
- package/report/ui/README.md +0 -85
- package/report/ui/package.json +0 -109
package/README.md
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|

|
|
2
2
|
|
|
3
|
-
](https://circleci.com/gh/reg-viz/reg-cli/tree/master.svg?style=svg)
|
|
4
3
|
](https://travis-ci.org/reg-viz/reg-cli.svg?branch=master)
|
|
5
4
|
](https://ci.appveyor.com/api/projects/status/ir907qbc633q9na4?svg=true)
|
|
6
5
|
](https://img.shields.io/npm/v/reg-cli.svg)
|
|
@@ -44,9 +43,9 @@ $ reg-cli /path/to/actual-dir /path/to/expected-dir /path/to/diff-dir -R ./repor
|
|
|
44
43
|
* `-I`, `--ignoreChange` If true, error will not be thrown when image change detected.
|
|
45
44
|
* `-E`, `--extendedErrors` If true, also added/deleted images will throw an error.
|
|
46
45
|
* `-P`, `--urlPrefix` Add prefix to all image src.
|
|
47
|
-
* `-M`, `--matchingThreshold` Matching threshold, ranges from 0 to 1. Smaller values make the comparison more sensitive. 0 by default.
|
|
48
|
-
* `-T`, `--thresholdRate` Rate threshold for detecting change. When the difference ratio of the image is larger than the set rate detects the change. Applied after `matchingThreshold`.
|
|
49
|
-
* `-S`, `--thresholdPixel` Pixel threshold for detecting change. When the difference pixel of the image is larger than the set pixel detects the change. This value takes precedence over `thresholdRate`. Applied after `matchingThreshold`.
|
|
46
|
+
* `-M`, `--matchingThreshold` Matching threshold, ranges from 0 to 1. Smaller values make the comparison more sensitive. 0 by default. Specifically, you can set how much of a difference in the YIQ difference metric should be considered a different pixel. If there is a difference between pixels, it will be treated as "same pixel" if it is within this threshold.
|
|
47
|
+
* `-T`, `--thresholdRate` Rate threshold for detecting change. When the difference ratio of the image is larger than the set rate detects the change. Applied after `matchingThreshold`. 0 by default.
|
|
48
|
+
* `-S`, `--thresholdPixel` Pixel threshold for detecting change. When the difference pixel of the image is larger than the set pixel detects the change. This value takes precedence over `thresholdRate`. Applied after `matchingThreshold`. 0 by default.
|
|
50
49
|
* `-C`, `--concurrency` How many processes launches in parallel. If omitted 4.
|
|
51
50
|
* `-A`, `--enableAntialias` Enable antialias. If omitted false.
|
|
52
51
|
* `-X`, `--additionalDetection`. Enable additional difference detection(highly experimental). Select "none" or "client" (default: "none").
|
package/dist/cli.js
CHANGED
|
@@ -39,7 +39,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
39
39
|
var spinner = new _cliSpinner.Spinner();
|
|
40
40
|
spinner.setSpinnerString(18);
|
|
41
41
|
|
|
42
|
-
var cli = (0, _meow2.default)('\n Usage\n $ reg-cli /path/to/actual-dir /path/to/expected-dir /path/to/diff-dir\n Options\n -U, --update Update expected images.(Copy `actual images` to `expected images`).\n -J, --json Specified json report path. If omitted ./reg.json.\n -I, --ignoreChange If true, error will not be thrown when image change detected.\n -E, --extendedErrors If true, also added/deleted images will throw an error. If omitted false.\n -R, --report Output html report to specified directory.\n -P, --urlPrefix Add prefix to all image src.\n -M, --matchingThreshold Matching threshold, ranges from 0 to 1. Smaller values make the comparison more sensitive. 0 by default.\n -T, --thresholdRate Rate threshold for detecting change. When the difference ratio of the image is larger than the set rate detects the change.\n -S, --thresholdPixel Pixel threshold for detecting change. When the difference pixel of the image is larger than the set pixel detects the change. This value takes precedence over `thresholdRate`.\n -C, --concurrency How many processes launches in parallel. If omitted 4.\n -A, --enableAntialias. Enable antialias. If omitted false.\n -X, --additionalDetection. Enable additional difference detection(highly experimental). Select "none" or "client" (default: "none").\n -F, --from Generate report from json. Please specify json file. If set, only report will be output without comparing images.\n Examples\n $ reg-cli /path/to/actual-dir /path/to/expected-dir /path/to/diff-dir -U -D ./reg.json\n', {
|
|
42
|
+
var cli = (0, _meow2.default)('\n Usage\n $ reg-cli /path/to/actual-dir /path/to/expected-dir /path/to/diff-dir\n Options\n -U, --update Update expected images.(Copy `actual images` to `expected images`).\n -J, --json Specified json report path. If omitted ./reg.json.\n -I, --ignoreChange If true, error will not be thrown when image change detected.\n -E, --extendedErrors If true, also added/deleted images will throw an error. If omitted false.\n -R, --report Output html report to specified directory.\n -P, --urlPrefix Add prefix to all image src.\n -M, --matchingThreshold Matching threshold, ranges from 0 to 1. Smaller values make the comparison more sensitive. 0 by default.\n -T, --thresholdRate Rate threshold for detecting change. When the difference ratio of the image is larger than the set rate detects the change.\n -S, --thresholdPixel Pixel threshold for detecting change. When the difference pixel of the image is larger than the set pixel detects the change. This value takes precedence over `thresholdRate`.\n -C, --concurrency How many processes launches in parallel. If omitted 4.\n -A, --enableAntialias. Enable antialias. If omitted false.\n -X, --additionalDetection. Enable additional difference detection(highly experimental). Select "none" or "client" (default: "none").\n -F, --from Generate report from json. Please specify json file. If set, only report will be output without comparing images.\n -D, --customDiffMessage Pass custom massage that will logged to the terminal when there is a diff.\n Examples\n $ reg-cli /path/to/actual-dir /path/to/expected-dir /path/to/diff-dir -U -D ./reg.json\n', {
|
|
43
43
|
alias: {
|
|
44
44
|
U: 'update',
|
|
45
45
|
J: 'json',
|
|
@@ -53,7 +53,8 @@ var cli = (0, _meow2.default)('\n Usage\n $ reg-cli /path/to/actual-dir /pat
|
|
|
53
53
|
C: 'concurrency',
|
|
54
54
|
A: 'enableAntialias',
|
|
55
55
|
X: 'additionalDetection',
|
|
56
|
-
F: 'from'
|
|
56
|
+
F: 'from',
|
|
57
|
+
D: 'customDiffMessage'
|
|
57
58
|
}
|
|
58
59
|
});
|
|
59
60
|
if (!cli.flags.from) {
|
|
@@ -78,6 +79,7 @@ var extendedErrors = !!cli.flags.extendedErrors;
|
|
|
78
79
|
var ignoreChange = !!cli.flags.ignoreChange;
|
|
79
80
|
var enableClientAdditionalDetection = cli.flags.additionalDetection === 'client';
|
|
80
81
|
var from = String(cli.flags.from || '');
|
|
82
|
+
var customDiffMessage = String(cli.flags.customDiffMessage || '\nInspect your code changes, re-run with `-U` to update them. ');
|
|
81
83
|
|
|
82
84
|
// If from option specified, generate report from json and exit.
|
|
83
85
|
if (from) {
|
|
@@ -115,10 +117,10 @@ var observer = (0, _2.default)({
|
|
|
115
117
|
report: report,
|
|
116
118
|
json: json,
|
|
117
119
|
urlPrefix: urlPrefix,
|
|
118
|
-
matchingThreshold: Number(cli.flags.matchingThreshold),
|
|
120
|
+
matchingThreshold: Number(cli.flags.matchingThreshold || 0),
|
|
119
121
|
thresholdRate: Number(cli.flags.thresholdRate),
|
|
120
122
|
thresholdPixel: Number(cli.flags.thresholdPixel),
|
|
121
|
-
concurrency: Number(cli.flags.concurrency
|
|
123
|
+
concurrency: Number(cli.flags.concurrency || 4),
|
|
122
124
|
enableAntialias: !!cli.flags.enableAntialias,
|
|
123
125
|
enableClientAdditionalDetection: enableClientAdditionalDetection
|
|
124
126
|
});
|
|
@@ -160,7 +162,7 @@ observer.once('complete', function (_ref) {
|
|
|
160
162
|
if (newItems.length) _log2.default.info(_icon.GREEK_CROSS + ' ' + newItems.length + ' file(s) appended.');
|
|
161
163
|
if (passedItems.length) _log2.default.success(_icon.CHECK_MARK + ' ' + passedItems.length + ' file(s) passed.');
|
|
162
164
|
if (!update && (failedItems.length > 0 || extendedErrors && (newItems.length > 0 || deletedItems.length > 0))) {
|
|
163
|
-
_log2.default.fail(
|
|
165
|
+
_log2.default.fail(customDiffMessage);
|
|
164
166
|
if (!ignoreChange) process.exit(1);
|
|
165
167
|
}
|
|
166
168
|
return process.exit(0);
|
package/dist/index.js
CHANGED
|
@@ -118,12 +118,19 @@ var compareImages = function compareImages(emitter, _ref2) {
|
|
|
118
118
|
|
|
119
119
|
var cleanupExpectedDir = function cleanupExpectedDir(expectedDir, changedFiles) {
|
|
120
120
|
var paths = changedFiles.map(function (image) {
|
|
121
|
-
|
|
121
|
+
var _path$posix;
|
|
122
|
+
|
|
123
|
+
var directories = expectedDir.split("\\");
|
|
124
|
+
return escapeGlob((_path$posix = _path2.default.posix).join.apply(_path$posix, _toConsumableArray(directories).concat([image])));
|
|
122
125
|
});
|
|
123
126
|
// force: true needed to allow deleting outside working directory
|
|
124
127
|
return (0, _del2.default)(paths, { force: true });
|
|
125
128
|
};
|
|
126
129
|
|
|
130
|
+
var escapeGlob = function escapeGlob(fileName) {
|
|
131
|
+
return fileName.replace(/(\*)/g, '[$1]').replace(/(\*)/g, '[$1]').replace(/(\?)/g, '[$1]').replace(/(\[)/g, '[$1]').replace(/(\])/g, '[$1]').replace(/(\{)/g, '[$1]').replace(/(\})/g, '[$1]').replace(/(\))/g, '[$1]').replace(/(\()/g, '[$1]').replace(/(\!)/g, '[$1]');
|
|
132
|
+
};
|
|
133
|
+
|
|
127
134
|
var aggregate = function aggregate(result) {
|
|
128
135
|
var passed = result.filter(function (r) {
|
|
129
136
|
return r.passed;
|
|
@@ -165,12 +172,14 @@ module.exports = function (params) {
|
|
|
165
172
|
expectedDir = params.expectedDir,
|
|
166
173
|
diffDir = params.diffDir,
|
|
167
174
|
json = params.json,
|
|
168
|
-
concurrency = params.concurrency,
|
|
175
|
+
_params$concurrency = params.concurrency,
|
|
176
|
+
concurrency = _params$concurrency === undefined ? 4 : _params$concurrency,
|
|
169
177
|
update = params.update,
|
|
170
178
|
report = params.report,
|
|
171
179
|
urlPrefix = params.urlPrefix,
|
|
172
180
|
threshold = params.threshold,
|
|
173
|
-
|
|
181
|
+
_params$matchingThres = params.matchingThreshold,
|
|
182
|
+
matchingThreshold = _params$matchingThres === undefined ? 0 : _params$matchingThres,
|
|
174
183
|
thresholdRate = params.thresholdRate,
|
|
175
184
|
thresholdPixel = params.thresholdPixel,
|
|
176
185
|
enableAntialias = params.enableAntialias,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "reg-cli",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.6",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"start": "node ./dist/cli.js",
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
"build": "npm run build:cli && npm run build:report",
|
|
10
10
|
"build:cli": "babel src -d dist",
|
|
11
11
|
"build:report": "sh ./scripts/build-ui.sh v0.2.1",
|
|
12
|
-
"dev:report": "npm run copy:ximgdiff && webpack-dev-server --hot --inline --open",
|
|
13
12
|
"flow": "flow",
|
|
14
13
|
"copy:ximgdiff": "copyfiles -u 3 node_modules/x-img-diff-js/build/cv-wasm_browser.* report/assets",
|
|
15
14
|
"prepublishOnly": "npm run build",
|
|
@@ -30,19 +29,25 @@
|
|
|
30
29
|
"author": "bokuweb",
|
|
31
30
|
"license": "MIT",
|
|
32
31
|
"resolutions": {
|
|
33
|
-
"**/set-value": "4.
|
|
32
|
+
"**/set-value": "4.1.0",
|
|
33
|
+
"**/tar": "^4.4.18",
|
|
34
|
+
"**/kind-of": "^6.0.3",
|
|
34
35
|
"**/randomatic": "3.1.1",
|
|
35
36
|
"**/deep-extend": "0.6.0",
|
|
36
37
|
"**/cryptiles": "4.1.3",
|
|
37
38
|
"**/lodash": "4.17.21",
|
|
38
|
-
"**/yargs-parser": "^
|
|
39
|
+
"**/yargs-parser": "^21.0.0",
|
|
39
40
|
"**/minimist": "^1.2.3",
|
|
41
|
+
"**/ajv": "^8.0.0",
|
|
42
|
+
"**/json-schema": "^0.4.0",
|
|
40
43
|
"**/hoek": "6.1.3",
|
|
44
|
+
"**/ansi-regex": "^5.0.1",
|
|
41
45
|
"**/glob-parent": "^6.0.1",
|
|
42
46
|
"**/dot-prop": "^6.0.1",
|
|
43
|
-
"**/node-forge": "^0.
|
|
47
|
+
"**/node-forge": "^1.0.0",
|
|
44
48
|
"**/serialize-javascript": "^6.0.0",
|
|
45
49
|
"**/y18n": "^5.0.0",
|
|
50
|
+
"**/braces": "^3.0.0",
|
|
46
51
|
"**/trim-newlines": "^3.0.1"
|
|
47
52
|
},
|
|
48
53
|
"dependencies": {
|
|
@@ -51,7 +56,7 @@
|
|
|
51
56
|
"cli-spinner": "0.2.10",
|
|
52
57
|
"cross-spawn": "7.0.3",
|
|
53
58
|
"del": "6.0.0",
|
|
54
|
-
"glob": "7.
|
|
59
|
+
"glob": "7.2.0",
|
|
55
60
|
"img-diff-js": "0.5.2",
|
|
56
61
|
"jpeg-js": "^0.4.0",
|
|
57
62
|
"lodash": "4.17.21",
|
|
@@ -60,12 +65,12 @@
|
|
|
60
65
|
"meow": "3.7.0",
|
|
61
66
|
"mustache": "4.2.0",
|
|
62
67
|
"x-img-diff-js": "0.3.5",
|
|
63
|
-
"yargs-parser": "^
|
|
68
|
+
"yargs-parser": "^21.0.1"
|
|
64
69
|
},
|
|
65
70
|
"devDependencies": {
|
|
66
71
|
"ava": "0.25.0",
|
|
67
72
|
"babel-cli": "6.26.0",
|
|
68
|
-
"babel-loader": "8.2.
|
|
73
|
+
"babel-loader": "8.2.3",
|
|
69
74
|
"babel-plugin-transform-es2015-block-scoping": "6.26.0",
|
|
70
75
|
"babel-plugin-transform-flow-strip-types": "6.22.0",
|
|
71
76
|
"babel-preset-es2015": "6.24.1",
|
|
@@ -77,13 +82,9 @@
|
|
|
77
82
|
"finalhandler": "1.1.2",
|
|
78
83
|
"flow-bin": "0.77.0",
|
|
79
84
|
"flow-typed": "3.2.1",
|
|
80
|
-
"
|
|
81
|
-
"puppeteer": "1.20.0",
|
|
85
|
+
"puppeteer": "13.4.1",
|
|
82
86
|
"rimraf": "3.0.2",
|
|
83
|
-
"serve-static": "1.14.
|
|
84
|
-
"webpack": "4.40.2",
|
|
85
|
-
"webpack-cli": "3.3.9",
|
|
86
|
-
"webpack-dev-server": "3.11.2"
|
|
87
|
+
"serve-static": "1.14.2"
|
|
87
88
|
},
|
|
88
89
|
"files": [
|
|
89
90
|
"dist",
|
package/CHANGELOG.md
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
<!--
|
|
4
|
-
## [[Unreleased]](https://github.com/reg-viz/reg-cli/compare/v5.0.0-beta.0...master)
|
|
5
|
-
<details>
|
|
6
|
-
<summary>
|
|
7
|
-
Changes that have landed in master but are not yet released.
|
|
8
|
-
Click to see more.
|
|
9
|
-
</summary>
|
|
10
|
-
</details> -->
|
|
11
|
-
|
|
12
|
-
<!--
|
|
13
|
-
### :rocket: New Feature
|
|
14
|
-
|
|
15
|
-
### :bug: Bug Fix
|
|
16
|
-
|
|
17
|
-
### :nail_care: Enhancement
|
|
18
|
-
|
|
19
|
-
### :memo: Documentation
|
|
20
|
-
|
|
21
|
-
### :house: Internal
|
|
22
|
-
-->
|
|
23
|
-
|
|
24
|
-
## [0.15.13 (2019-11-30)](https://github.com/reg-viz/reg-cli/compare/v0.15.12...v0.15.13)
|
|
25
|
-
|
|
26
|
-
### :bug: Bug Fix
|
|
27
|
-
|
|
28
|
-
- Fixed a Marker style (reg-viz/reg-cli-report-ui#25)
|
|
29
|
-
- Fixed a bug where the diff items path was inconsistent when using jpg files (reg-viz/reg-cli-report-ui#26)
|
package/report/ui/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
The MIT License (MIT)
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2019 reg-viz.
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
|
13
|
-
all copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
-
THE SOFTWARE.
|
package/report/ui/README.md
DELETED
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
# reg-cli-report-ui
|
|
2
|
-
|
|
3
|
-
[](https://github.com/reg-viz/reg-cli-report-ui/actions)
|
|
4
|
-
|
|
5
|
-
> :gem: New face of reg-cli report UI.
|
|
6
|
-
|
|
7
|
-
This repository is the Report UI of [reg-viz/reg-cli][reg-cli]
|
|
8
|
-
|
|
9
|
-
## Screenshots
|
|
10
|
-
|
|
11
|
-

|
|
12
|
-

|
|
13
|
-

|
|
14
|
-
|
|
15
|
-
## Available scripts
|
|
16
|
-
|
|
17
|
-
The following list is scripts used during development.
|
|
18
|
-
|
|
19
|
-
### `yarn start`
|
|
20
|
-
|
|
21
|
-
```bash
|
|
22
|
-
$ yarn start
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
Launch the Report UI with the mock data.
|
|
26
|
-
|
|
27
|
-
### `yarn build`
|
|
28
|
-
|
|
29
|
-
```bash
|
|
30
|
-
$ yarn build
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
Generate the JavaScript file required to embed Report UI. This is usually called in [reg-viz/reg-cli][reg-cli].
|
|
34
|
-
|
|
35
|
-
### `yarn typecheck`
|
|
36
|
-
|
|
37
|
-
```bash
|
|
38
|
-
$ yarn typecheck
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
Run static type checking using TypeScript.
|
|
42
|
-
|
|
43
|
-
### `yarn lint`
|
|
44
|
-
|
|
45
|
-
```bash
|
|
46
|
-
$ yarn lint
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
Run Lint with ESLint.
|
|
50
|
-
|
|
51
|
-
### `yarn format`
|
|
52
|
-
|
|
53
|
-
```bash
|
|
54
|
-
$ yarn format
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
Format the source code using Prettier and ESLint.
|
|
58
|
-
|
|
59
|
-
### `yarn storybook`
|
|
60
|
-
|
|
61
|
-
```bash
|
|
62
|
-
$ yarn storybook
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
Launch the component catalog with Storybook.
|
|
66
|
-
|
|
67
|
-
### `yarn scaffold`
|
|
68
|
-
|
|
69
|
-
```bash
|
|
70
|
-
$ yarn scaffold
|
|
71
|
-
```
|
|
72
|
-
|
|
73
|
-
Generate a component template.
|
|
74
|
-
|
|
75
|
-
## Contribute
|
|
76
|
-
|
|
77
|
-
PRs welcome.
|
|
78
|
-
|
|
79
|
-
## License
|
|
80
|
-
|
|
81
|
-
[MIT License @ reg-viz](./LICENSE)
|
|
82
|
-
|
|
83
|
-

|
|
84
|
-
|
|
85
|
-
[reg-cli]: https://github.com/reg-viz/reg-cli
|
package/report/ui/package.json
DELETED
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "reg-suit-report-ui",
|
|
3
|
-
"version": "0.2.1",
|
|
4
|
-
"private": true,
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"build": "cross-env NODE_ENV=\"production\" run-s -s clean build:source",
|
|
8
|
-
"build:source": "webpack",
|
|
9
|
-
"clean": "rimraf dist",
|
|
10
|
-
"format": "run-s format:prettier format:script",
|
|
11
|
-
"format:prettier": "prettier --write .",
|
|
12
|
-
"format:script": "yarn lint:script --fix",
|
|
13
|
-
"lint": "run-p lint:*",
|
|
14
|
-
"lint:prettier": "prettier --check .",
|
|
15
|
-
"lint:script": "eslint . --ext \".js,.jsx,.ts,.tsx\"",
|
|
16
|
-
"scaffold": "yarn scaffdog generate",
|
|
17
|
-
"start": "webpack serve",
|
|
18
|
-
"start:huge": "webpack serve --env ENABLED_HUGE",
|
|
19
|
-
"storybook": "start-storybook -p 6006",
|
|
20
|
-
"storybook:build": "build-storybook",
|
|
21
|
-
"test": "jest",
|
|
22
|
-
"test:watch": "yarn test --watch",
|
|
23
|
-
"typecheck": "tsc"
|
|
24
|
-
},
|
|
25
|
-
"husky": {
|
|
26
|
-
"hooks": {
|
|
27
|
-
"pre-commit": "lint-staged"
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
"lint-staged": {
|
|
31
|
-
"*.{js,jsx,ts,tsx,css,md,yml,json}": [
|
|
32
|
-
"prettier --write"
|
|
33
|
-
]
|
|
34
|
-
},
|
|
35
|
-
"browserslist": "> 1%, not dead, not IE <= 11, not OperaMini all",
|
|
36
|
-
"dependencies": {
|
|
37
|
-
"body-scroll-lock": "^3.1.5",
|
|
38
|
-
"clipboard-polyfill": "^3.0.2",
|
|
39
|
-
"debounce": "^1.2.0",
|
|
40
|
-
"focus-trap": "^6.2.3",
|
|
41
|
-
"fuse.js": "^6.4.6",
|
|
42
|
-
"history": "^5.0.0",
|
|
43
|
-
"keycode": "^2.2.0",
|
|
44
|
-
"mousetrap": "^1.6.5",
|
|
45
|
-
"preact": "^10.5.10",
|
|
46
|
-
"query-string": "^7.0.1",
|
|
47
|
-
"rc-slider": "^9.7.1",
|
|
48
|
-
"re-resizable": "^6.9.0",
|
|
49
|
-
"react": "17.0.1",
|
|
50
|
-
"react-dom": "17.0.1",
|
|
51
|
-
"react-md-spinner": "^1.0.0",
|
|
52
|
-
"react-transition-group": "^4.4.1",
|
|
53
|
-
"styled-components": "5.2.1",
|
|
54
|
-
"unstated-next": "^1.1.0",
|
|
55
|
-
"use-intersection": "^0.2.1",
|
|
56
|
-
"x-img-diff-js": "^0.3.5"
|
|
57
|
-
},
|
|
58
|
-
"devDependencies": {
|
|
59
|
-
"@babel/core": "^7.12.10",
|
|
60
|
-
"@babel/plugin-proposal-class-properties": "^7.12.1",
|
|
61
|
-
"@babel/plugin-proposal-object-rest-spread": "^7.12.1",
|
|
62
|
-
"@babel/preset-env": "^7.12.11",
|
|
63
|
-
"@babel/preset-react": "^7.12.10",
|
|
64
|
-
"@babel/preset-typescript": "^7.12.7",
|
|
65
|
-
"@storybook/addon-actions": "^6.1.14",
|
|
66
|
-
"@storybook/addons": "^6.1.14",
|
|
67
|
-
"@storybook/react": "^6.1.14",
|
|
68
|
-
"@types/body-scroll-lock": "^2.6.1",
|
|
69
|
-
"@types/debounce": "^1.2.0",
|
|
70
|
-
"@types/fuzzy-search": "^2.1.0",
|
|
71
|
-
"@types/imagesloaded": "^4.1.2",
|
|
72
|
-
"@types/jest": "^26.0.20",
|
|
73
|
-
"@types/mousetrap": "^1.6.5",
|
|
74
|
-
"@types/node": "^14.14.21",
|
|
75
|
-
"@types/react": "^17.0.0",
|
|
76
|
-
"@types/react-dom": "^17.0.0",
|
|
77
|
-
"@types/react-measure": "^2.0.6",
|
|
78
|
-
"@types/react-transition-group": "^4.4.0",
|
|
79
|
-
"@types/styled-components": "5.1.7",
|
|
80
|
-
"@typescript-eslint/eslint-plugin": "^4.13.0",
|
|
81
|
-
"@typescript-eslint/parser": "^4.13.0",
|
|
82
|
-
"babel-loader": "^8.2.2",
|
|
83
|
-
"babel-plugin-styled-components": "^1.12.0",
|
|
84
|
-
"copy-webpack-plugin": "^7.0.0",
|
|
85
|
-
"cross-env": "^7.0.3",
|
|
86
|
-
"eslint": "^7.18.0",
|
|
87
|
-
"eslint-config-prettier": "^7.1.0",
|
|
88
|
-
"eslint-plugin-import": "^2.22.1",
|
|
89
|
-
"eslint-plugin-jest": "^24.1.3",
|
|
90
|
-
"eslint-plugin-prettier": "^3.3.1",
|
|
91
|
-
"eslint-plugin-react": "^7.22.0",
|
|
92
|
-
"eslint-plugin-react-hooks": "^4.2.0",
|
|
93
|
-
"html-webpack-plugin": "^5.0.0-beta.5",
|
|
94
|
-
"husky": "^4.3.8",
|
|
95
|
-
"jest": "^26.6.3",
|
|
96
|
-
"lint-staged": "^10.5.3",
|
|
97
|
-
"npm-run-all": "^4.1.5",
|
|
98
|
-
"prettier": "^2.2.1",
|
|
99
|
-
"prettier-plugin-packagejson": "^2.2.9",
|
|
100
|
-
"react-hot-loader": "^4.13.0",
|
|
101
|
-
"rimraf": "^3.0.2",
|
|
102
|
-
"scaffdog": "^1.0.0",
|
|
103
|
-
"typescript": "^4.1.3",
|
|
104
|
-
"typescript-eslint-language-service": "^4.1.3",
|
|
105
|
-
"webpack": "^5.15.0",
|
|
106
|
-
"webpack-cli": "^4.3.1",
|
|
107
|
-
"webpack-dev-server": "^3.11.2"
|
|
108
|
-
}
|
|
109
|
-
}
|