forked from TriplyDB/Yasgui
-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
140 lines (140 loc) · 4.58 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
{
"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:dev": "TEST_ON_DEV_BUILD=1 yarn run test",
"test": "yarn run puppeteer-test && yarn run unit-test",
"test-live": "TEST_ON_DEV_BUILD=1 yarn 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",
"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",
"@types/rdf-js": "2.0.10"
},
"devDependencies": {},
"lint-staged": {
"*.ts?(x)": [
"prettier --parser typescript --write",
"eslint"
],
"*.js": [
"prettier --write"
],
"*.css": [
"prettier --parser postcss --write"
],
"*.scss": [
"prettier --parser postcss --write"
]
},
"husky": {
"hooks": {
"pre-commit": "./bin/checkPackageVersions.sh && lint-staged",
"post-merge": "./bin/hooks/postMerge"
}
},
"dependencies": {
"@babel/core": "^7.8.4",
"@babel/plugin-transform-runtime": "^7.8.3",
"@babel/preset-env": "^7.8.4",
"@babel/runtime": "^7.8.4",
"@types/autoprefixer": "^9.5.0",
"@types/chai": "^4.2.7",
"@types/fs-extra": "^8.0.0",
"@types/html-webpack-plugin": "^3.2.0",
"@types/mini-css-extract-plugin": "^0.9.0",
"@types/mocha": "^5.2.7",
"@types/node-static": "^0.7.3",
"@types/optimize-css-assets-webpack-plugin": "^5.0.1",
"@types/puppeteer": "^2.0.0",
"@types/webpack": "^4.41.3",
"@types/webpack-bundle-analyzer": "^2.13.1",
"@typescript-eslint/eslint-plugin": "^2.21.0",
"@typescript-eslint/parser": "^2.21.0",
"autoprefixer": "^9.7.4",
"babel-loader": "^8.0.6",
"better-npm-run": "^0.1.1",
"bundlesize": "^0.18.0",
"chai": "^4.2.0",
"css-loader": "^3.4.2",
"eslint": "^6.8.0",
"eslint-config-prettier": "^6.10.0",
"eslint-plugin-jest": "^23.8.1",
"eslint-plugin-lodash": "^6.0.0",
"fs-extra": "^8.1.0",
"html-webpack-plugin": "^3.2.0",
"husky": "^4.2.3",
"lerna": "^3.20.2",
"lint-staged": "^10.0.8",
"mini-css-extract-plugin": "^0.9.0",
"mocha": "^7.0.1",
"nightmare": "^3.0.2",
"node-sass": "^4.13.1",
"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": "^2.1.0",
"sass-loader": "^8.0.2",
"source-map": "^0.7.3",
"source-map-loader": "^0.2.4",
"source-map-support": "^0.5.12",
"style-loader": "^1.1.3",
"terser-webpack-plugin": "^2.3.2",
"ts-loader": "^6.0.4",
"typescript": "^3.8.3",
"webpack": "^4.41.6",
"webpack-bundle-analyzer": "^3.3.2",
"webpack-cli": "^3.3.11",
"webpack-dev-server": "^3.10.3",
"webpack-livereload-plugin": "^2.3.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"
}
]
}