-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpackage.json
128 lines (128 loc) · 4.11 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
122
123
124
125
126
127
128
{
"name": "yasgui",
"private": true,
"workspaces": [
"packages/*"
],
"scripts": {
"prepare": "husky",
"build": "better-npm-run build",
"dev": "better-npm-run dev",
"util:lint": "ESLINT_STRICT=true eslint --ext .tsx --ext .ts $(ls -d ./packages/*/* | grep -E '(src|test|grammar)$')",
"util:buildWebpackConfig": "tsc -p tsconfig-webpack.json",
"util:validateTs": "tsc -p ./tsconfig-validate.json --noEmit",
"util:prettify": "prettier --parser typescript --write $(find ./packages/*/src -regex '.*\\.tsx?$') && prettier --parser css --write $(find ./packages/*/src -regex '.*\\.?scss$')",
"util:analyzeBundle": "ANALYZE_BUNDLE=true npm run build",
"util:bundlesize": "bundlesize",
"pretest": "[ -z \"$(ls -A ./build 2> /dev/null)\" ] && echo Run \\\"npm run build\\\" before running a test && exit 1 || true",
"test:dev": "TEST_ON_DEV_BUILD=1 npm run test",
"test": "npm run puppeteer-test && npm run unit-test",
"test-live": "TEST_ON_DEV_BUILD=1 npm run test",
"unit-test": "tsc -p ./tsconfig-test.json && mocha $(find ./build/test -name '*-test.js') --require source-map-support/register || true",
"puppeteer-test": "tsc -p ./tsconfig-test.json && mocha --timeout 30000 ./build/test/test/run.js --require source-map-support/register",
"prerelease": "npm run build && npm run test",
"release": "changeset publish"
},
"betterScripts": {
"dev": {
"command": "npm run util:buildWebpackConfig && webpack-dev-server --host 0.0.0.0 --port 4000 --config ./webpack/config.js",
"env": {
"NODE_ENV": "development"
}
},
"build": {
"command": "rm -rf ./build && npm run util:buildWebpackConfig && webpack --config ./webpack/config.js && ./webpack/distributeBuildFiles.sh",
"env": {
"NODE_ENV": "production"
}
}
},
"lint-staged": {
"*.ts?(x)": [
"prettier --parser typescript --write",
"eslint"
],
"*.js": [
"prettier --write"
],
"*.css": [
"prettier --parser css --write"
],
"*.scss": [
"prettier --parser scss --write"
]
},
"dependencies": {
"@babel/core": "^7.23.5",
"@babel/plugin-transform-runtime": "^7.23.4",
"@babel/preset-env": "^7.23.5",
"@babel/runtime": "^7.23.5",
"@types/chai": "^4.3.11",
"@types/fs-extra": "^11.0.4",
"@types/mocha": "^10.0.6",
"@types/node-static": "^0.7.11",
"@types/webpack-bundle-analyzer": "^4.6.3",
"@typescript-eslint/eslint-plugin": "^6.13.2",
"@typescript-eslint/parser": "^6.13.2",
"autoprefixer": "^10.4.16",
"babel-loader": "^9.1.3",
"better-npm-run": "^0.1.1",
"bundlesize": "^0.18.1",
"chai": "^4.3.10",
"css-loader": "^6.8.1",
"eslint": "^8.55.0",
"eslint-config-prettier": "^6.10.0",
"eslint-plugin-jest": "^23.8.1",
"eslint-plugin-lodash": "^7.1.0",
"fs-extra": "^11.2.0",
"html-webpack-plugin": "^5.5.4",
"husky": "^9.0.11",
"lint-staged": "^15.2.0",
"mini-css-extract-plugin": "^2.7.6",
"mocha": "^10.2.0",
"node-sass": "8",
"node-static": "^0.7.11",
"postcss-bgimage": "^2.1.3",
"postcss-loader": "^7.3.3",
"prettier": "^2.0.5",
"puppeteer": "^22.6.5",
"sass-loader": "^13.3.2",
"source-map": "^0.7.3",
"source-map-loader": "^1.0.1",
"source-map-support": "^0.5.12",
"style-loader": "^1.1.3",
"terser-webpack-plugin": "^3.0.7",
"ts-loader": "^9.5.1",
"typescript": "^5.4.5",
"webpack": "^5.91.0",
"webpack-bundle-analyzer": "^4.10.2",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^5.0.4",
"webpack-livereload-plugin": "^3.0.2"
},
"bundlesize": [
{
"compression": "none",
"path": "build/yasgui.min.js",
"maxSize": "1.10 mb"
},
{
"compression": "none",
"path": "build/yasr.min.js",
"maxSize": "660 kB"
},
{
"compression": "none",
"path": "build/yasqe.min.js",
"maxSize": "495 kB"
}
],
"overrides": {
"brotli-size": "4.0.0"
},
"devDependencies": {
"@changesets/cli": "^2.27.1",
"copy-webpack-plugin": "^11.0.0",
"css-minimizer-webpack-plugin": "^5.0.0"
}
}