forked from concourse/concourse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
45 lines (45 loc) · 2.07 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
{
"name": "web",
"version": "0.0.1",
"main": "index.js",
"repository": "https://github.com/concourse/concourse",
"license": "Apache-2.0",
"dependencies": {
"request": "^2.86.0"
},
"devDependencies": {
"@babel/core": "^7.18.2",
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/preset-env": "^7.18.2",
"@mdi/svg": "^6.7.96",
"babel-loader": "^8.2.5",
"child-process-promise": "^2.2.1",
"clean-css-cli": "^5.6.0",
"elm": "^0.19.1",
"elm-analyse": "stil4m/elm-analyse#701b8b4013a4f057b9382d368e42adc6fe08e14e",
"elm-format": "0.8.5",
"elm-test": "^0.19.1-revision7",
"less": "^4.1.3",
"less-plugin-autoprefix": "^2.0.0",
"puppeteer": "^14.2.0",
"uglify-js": "^3.16.0",
"webpack": "^5.72.1",
"webpack-cli": "^4.9.2"
},
"resolutions": {
"less/request": "^2.86.0"
},
"scripts": {
"format": "elm-format --elm-version=0.19 web/elm --yes",
"analyse": "cd web/elm && elm-analyse",
"build": "yarn run build-less && yarn run build-elm && yarn run build-js",
"build-debug": "yarn run build-less && yarn run build-elm-debug",
"build-js": "webpack --mode production",
"test": "cd web/elm && elm-test",
"build-less": "lessc web/assets/css/main.less web/public/main.out.css && cleancss -o web/public/main.css web/public/main.out.css && rm web/public/main.out.css",
"build-elm": "cd web/elm && elm make --optimize --output ../public/elm.js src/Main.elm && uglifyjs ../public/elm.js --compress \"pure_funcs=[F2,F3,F4,F5,F6,F7,F8,F9,A2,A3,A4,A5,A6,A7,A8,A9],pure_getters,keep_fargs=false,unsafe_comps,unsafe\" | uglifyjs --mangle --output ../public/elm.min.js",
"build-elm-debug": "cd web/elm && elm make --debug --output ../public/elm.js src/Main.elm && uglifyjs < ../public/elm.js > ../public/elm.min.js",
"update-mdi-svg": "./hack/update-mdi-svg \"node_modules/@mdi/svg/svg\" | tr -d '\n' > web/public/mdi-svg.min.js",
"benchmark": "cd web/elm && elm make --optimize --output /tmp/benchmark.html benchmarks/Benchmarks.elm && node benchmarks/benchmark.js /tmp/benchmark.html"
}
}