-
Notifications
You must be signed in to change notification settings - Fork 3
/
package.json
110 lines (110 loc) · 4.63 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
{
"private": true,
"workspaces": [
"packages/*"
],
"devDependencies": {
"@babel/core": "^7.3.4",
"@storybook/addon-actions": "^6.3.1",
"@storybook/addon-links": "^6.3.1",
"@storybook/react": "^6.3.1",
"@testing-library/dom": "^8.0.0",
"@testing-library/jest-dom": "^5.14.1",
"@testing-library/react": "^12.0.0",
"@testing-library/user-event": "^13.1.9",
"@types/assertion-error": "^1.0.30",
"@types/benchmark": "^1.0.31",
"@types/jest": "^26.0.23",
"@types/node": "^12.11.1",
"@types/pegjs": "0.0.28",
"@types/react-dom": "^16.9.9",
"@types/react-test-renderer": "^16.8.1",
"@typescript-eslint/eslint-plugin": "^4.28.1",
"@typescript-eslint/parser": "^4.28.1",
"babel-loader": "^8.0.5",
"benchmark": "^2.1.4",
"codecov": "^3.6.1",
"confusing-browser-globals": "^1.0.9",
"eslint": "^7.29.0",
"eslint-config-divid": "^0.5.1",
"eslint-plugin-functional": "^3.2.1",
"eslint-plugin-import": "^2.23.4",
"glob": "^7.1.3",
"http-server": "^0.9.0",
"husky": "^1.3.1",
"jest": "^27.0.6",
"lerna": "^3.22.1",
"lint-staged": "^8.1.5",
"madge": "^3.0.1",
"mkdirp": "^0.5.1",
"npm-check": "^5.7.1",
"npm-run-all": "^4.1.5",
"pegjs": "0.9.0",
"prettier": "^2.1.2",
"react": "^16.14.0",
"react-dom": "^16.14.0",
"react-test-renderer": "^16.6.1",
"shelljs": "^0.8.3",
"ts-jest": "^27.0.3",
"ts-node": "^4.1.0",
"typescript": "^4.3.4",
"uglify-js": "^3.4.9",
"webpack": "^4.29.6"
},
"resolutions": {
"@types/react": "16.14.8"
},
"scripts": {
"start": "tsc -b -w packages",
"publish-npm": "yarn pre-publish && lerna publish",
"pre-publish": "run-s lint clean test build-prod",
"lint": "eslint './packages/*/{src,test}/**/*.ts{,x}' --ext .js,.ts,.tsx -f visualstudio",
"circular": "madge --circular ./packages/*/lib/index.js",
"updated": "lerna updated",
"clean": "tsc -b packages --clean && rm -rf packages/*/lib && rm -rf packages/*/test/lib && rm -rf packages/*/benchmark/lib && rm -rf packages/*/coverage",
"clean-node-modules": "rm -rf node_modules && rm -rf packages/*/node_modules",
"build": "tsc -b packages && yarn build:parser",
"rebuild": "yarn clean && tsc -b packages && yarn build:parser",
"build-prod": "run-s clean build",
"generate-parser": "pegjs packages/property/src/property-filter-ast/pegjs/parser.pegjs packages/property/src/property-filter-ast/pegjs/generated-parser.js",
"build:parser": "mkdirp packages/property/lib/property-filter-ast/pegjs/ && cp packages/property/src/property-filter-ast/pegjs/generated-parser.* packages/property/lib/property-filter-ast/pegjs/",
"storybook": "start-storybook -p 6006 --ci",
"build-storybook": "build-storybook",
"benchmark": "yarn build && run-s benchmark:*",
"benchmark:property": "node packages/property/lib/__benchmarks__/property-filter.js",
"benchmark:parse": "node packages/property/lib/__benchmarks__/property-filter-parse.js",
"test": "run-s build test-all",
"test-all": "jest",
"test:property": "jest --projects packages/property",
"test:property-filter-pretty": "jest --projects packages/property-filter-pretty",
"test:react-property-selectors": "jest --projects packages/react-property-selectors",
"test:variant-listing": "jest --projects packages/variant-listing",
"test-coverage-all": "run-s test-coverage:*",
"test-coverage:property": "jest --coverage --projects packages/property",
"test-coverage:property-filter-pretty": "jest --coverage --projects packages/property-filter-pretty",
"test-coverage:react-property-selectors": "jest --coverage --projects packages/react-property-selectors",
"test-coverage:variant-listing": "jest --coverage --projects packages/variant-listing",
"report-coverage": "run-s report-coverage:*",
"report-coverage:property": "codecov -f packages/property/coverage/lcov.info -F property",
"report-coverage:property-filter-pretty": "codecov -f packages/property-filter-pretty/coverage/lcov.info -F property_filter_pretty",
"report-coverage:react-property-selectors": "codecov -f packages/react-property-selectors/coverage/lcov.info -F react_property_selectors",
"report-coverage:variant-listing": "codecov -f packages/variant-listing/coverage/lcov.info -F variant_listing"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{ts,tsx}": "eslint --ext .ts,.tsx -f visualstudio",
"*.{ts,tsx,js,json,css,md}": [
"prettier --write",
"git add"
]
},
"prettier": {
"printWidth": 120,
"trailingComma": "es5",
"arrowParens": "always"
}
}