-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
26 lines (26 loc) · 1.1 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
{
"name": "worker",
"private": true,
"version": "1.0.0",
"description": "A template for kick starting a Cloudflare Workers project",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"format": "prettier --write '**/*.{js,css,json,md}'",
"make":"elm make src/421.elm --optimize --output=build/elm.js",
"minify": "uglifyjs build/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=build/elm.min.js",
"escape_code":"sed 's/\\\\/\\\\\\\\/g' build/elm.min.js | sed \"s/'/'+\\\"'\\\"+'/g\" > build/elm.min.escaped.js",
"build_worker":"sed -e '/ELM_CODE/ {' -e 'r build/elm.min.escaped.js' -e 'd' -e '}' -i worker/index.js",
"publish": "cd worker && wrangler publish"
},
"author": "hbourdeau <[email protected]>",
"license": "MIT",
"dependencies": {},
"devDependencies": {
"@cloudflare/wrangler": "^1.2.0",
"elm": "^0.19.0-no-deps",
"npx": "^10.2.0",
"prettify": "^0.1.7",
"uglify-js": "^3.6.0"
}
}