forked from TriplyDB/Yasgui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
141 lines (141 loc) · 4.51 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
129
130
131
132
133
134
135
136
137
138
139
140
141
{
"name": "yasgui",
"private": true,
"workspaces": [
"packages/*"
],
"scripts": {
"build": "better-npm-run build",
"dev": "better-npm-run dev",
"link": "lerna link",
"postinstall": "yarn run link",
"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 yarn run build",
"util:bundlesize": "bundlesize",
"pretest": "[ -z \"$(ls -A ./build 2> /dev/null)\" ] && echo Run \\\"yarn build\\\" before running a test && exit 1 || true",
"test": "yarn run puppeteer-test && yarn run unit-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",
"version": "lerna version"
},
"betterScripts": {
"dev": {
"command": "yarn run util:buildWebpackConfig && webpack-dev-server --public 0.0.0.0 --host 0.0.0.0 --port 4000 --config ./webpack/config.js --disable-host-check",
"env": {
"NODE_ENV": "development"
}
},
"build": {
"command": "rm -rf ./build && yarn run util:buildWebpackConfig && webpack --colors --display-error-details --config ./webpack/config.js && ./webpack/distributeBuildFiles.sh",
"env": {
"NODE_ENV": "production"
}
}
},
"resolutions": {
"@types/jquery": "3.3.31"
},
"devDependencies": {},
"lint-staged": {
"*.ts?(x)": [
"prettier --parser typescript --write",
"eslint",
"git add"
],
"*.js": [
"prettier --write",
"git add"
],
"*.css": [
"prettier --parser postcss --write",
"git add"
],
"*.scss": [
"prettier --parser postcss --write",
"git add"
]
},
"husky": {
"hooks": {
"pre-commit": "./bin/checkPackageVersions.sh && lint-staged",
"post-merge": "./bin/hooks/postMerge"
}
},
"dependencies": {
"@babel/core": "^7.5.5",
"@babel/plugin-transform-runtime": "^7.5.5",
"@babel/preset-env": "^7.5.5",
"@babel/runtime": "^7.5.5",
"@types/autoprefixer": "^9.5.0",
"@types/chai": "^4.1.7",
"@types/fs-extra": "^8.0.0",
"@types/html-webpack-plugin": "^3.2.0",
"@types/mini-css-extract-plugin": "^0.2.1",
"@types/mocha": "^5.2.7",
"@types/node-static": "^0.7.3",
"@types/optimize-css-assets-webpack-plugin": "^1.3.4",
"@types/puppeteer": "^1.19.0",
"@types/webpack": "^4.4.34",
"@types/webpack-bundle-analyzer": "^2.13.1",
"@typescript-eslint/eslint-plugin": "^2.10.0",
"@typescript-eslint/parser": "^2.10.0",
"autoprefixer": "^9.6.1",
"babel-loader": "^8.0.6",
"better-npm-run": "^0.1.1",
"bundlesize": "^0.18.0",
"chai": "^4.2.0",
"css-loader": "^3.0.0",
"eslint": "^6.7.2",
"eslint-config-prettier": "^6.0.0",
"eslint-plugin-jest": "^23.1.1",
"eslint-plugin-lodash": "^6.0.0",
"fs-extra": "^8.1.0",
"html-webpack-plugin": "^3.2.0",
"husky": "^2.5.0",
"lerna": "^3.11.1",
"lint-staged": "^8.2.1",
"mini-css-extract-plugin": "^0.8.0",
"mocha": "^6.2.0",
"nightmare": "^3.0.2",
"node-sass": "^4.12.0",
"node-static": "^0.7.11",
"optimize-css-assets-webpack-plugin": "^5.0.1",
"postcss-bgimage": "2.0.1",
"postcss-loader": "^3.0.0",
"prettier": "^1.18.2",
"puppeteer": "^1.19.0",
"sass-loader": "^7.1.0",
"source-map": "^0.7.3",
"source-map-loader": "^0.2.4",
"source-map-support": "^0.5.12",
"style-loader": "^0.23.1",
"terser-webpack-plugin": "^1.3.0",
"ts-loader": "^6.0.4",
"typescript": "^3.5.3",
"webpack": "^4.35.0",
"webpack-bundle-analyzer": "^3.3.2",
"webpack-cli": "^3.3.5",
"webpack-dev-server": "^3.7.2",
"webpack-livereload-plugin": "^2.2.0"
},
"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": "490 kB"
}
]
}