-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
90 lines (90 loc) · 3.69 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
{
"name": "test-app",
"version": "0.1.0",
"private": true,
"dependencies": {
"@emotion/react": "^11.11.0",
"@emotion/styled": "^11.11.0",
"@mui/icons-material": "^5.11.16",
"@mui/material": "^5.12.3",
"@mui/system": "^5.11.15",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-scripts": "5.0.1",
"ash-tree": "link:./ash-tree/build/",
"web-vitals": "^3.3.2"
},
"devDependencies": {
"@testing-library/dom": "^9.3.1",
"@testing-library/jest-dom": "^6.1.3",
"@testing-library/react": "^14.0.0",
"@testing-library/react-hooks": "^8.0.1",
"@types/jest": "^29.5.4",
"@types/lodash": "^4.14.191",
"@types/react": "^18.0.26",
"@types/react-dom": "^18.0.10",
"@types/react-window": "^1.8.5",
"@typescript-eslint/eslint-plugin": "^6.3.0",
"@typescript-eslint/parser": "^6.3.0",
"esbuild": "^0.19.0",
"eslint": "^8.31.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-filenames": "^1.3.2",
"eslint-plugin-jest-dom": "^5.0.2",
"eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-react": "^7.31.11",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-testing-library": "^6.0.1",
"gzip-size-cli": "^5.1.0",
"husky": "^8.0.0",
"jest": "^29.3.1",
"jest-environment-jsdom": "^29.3.1",
"prettier": "^3.0.1",
"run-script-os": "^1.1.6",
"ts-jest": "^29.0.3",
"typescript": "^5.2.2"
},
"scripts": {
"setup": "yarn install && yarn build-package && yarn install",
"update-package": "yarn build-package && yarn install",
"start": "yarn update-package && react-scripts start",
"build-package": "cd ash-tree && yarn install && tsc && cp ./src/AshTree/styles.css ./build/src/AshTree/styles.css && cd .. && yarn generate-notice",
"test-no-update": "yarn test-package-no-build && yarn test-app-no-update && yarn test-performance-no-update",
"test": "yarn update-package && yarn test-package-no-build && yarn test-app-no-update && yarn test-performance-no-update",
"test-package-no-build": "cd ash-tree && jest --coverage && cd ..",
"test-package": "cd ash-tree && tsc && jest --coverage && cd ..",
"test-app-no-update": "react-scripts test --testPathIgnorePatterns=performance.test.tsx --watchAll=false",
"test-app": "yarn update-package && yarn test-app-no-update",
"lint": "eslint -c .eslintrc.js \"ash-tree/src/**/*.{ts,tsx}\" --fix && eslint -c .eslintrc.js \"src/**/*.{ts,tsx}\" --fix",
"minify-and-size": "esbuild ash-tree/build/src/index.js --bundle --outfile=minified-bundle.js && gzip-size minified-bundle.js && rm minified-bundle.js && rm minified-bundle.css",
"test-performance-no-update": "react-scripts test --testMatch='**/performance.test.tsx' --watchAll=false",
"test-performance": "yarn update-package && yarn test-performance-no-update",
"ci": "yarn setup && yarn lint && yarn test-no-update && yarn minify-and-size",
"test-compile": "tsc -p ./",
"prepare": "husky install",
"generate-notice": "run-script-os",
"generate-notice:linux:darwin": "cd ash-tree && mkdir -p notices && yarn licenses generate-disclaimer --ignore-platform --production > notices/notices.txt && cd ..",
"generate-notice:win32": "cd ash-tree && IF NOT EXIST notices mkdir notices && yarn licenses generate-disclaimer --ignore-platform --production > notices/notices.txt && cd .."
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"resolutions": {
"nth-check": "^2.0.1"
}
}