-
Notifications
You must be signed in to change notification settings - Fork 7
/
package.json
48 lines (48 loc) · 2.19 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
{
"name": "peermaps-web",
"dependencies": {
"choo": "^7.1.0",
"eyros": "^4.7.0",
"georender-style2png": "^5.0.1",
"hyperdrive": "^10.21.0",
"hyperswarm-web": "^2.2.0",
"level": "^7.0.1",
"mixmap": "^1.5.2",
"mixmap-peermaps": "^1.4.1",
"pump": "^3.0.0",
"random-access-idb": "^1.2.2",
"random-access-memory": "^4.1.0",
"regl": "^2.1.0",
"resl": "^1.0.3",
"sheetify": "^7.4.0",
"sparse-geonames-search": "^1.0.0",
"subleveldown": "^6.0.1"
},
"devDependencies": {
"budo": "^11.6.4",
"concurrently": "^7.2.2",
"indexhtmlify": "^2.0.1",
"tinyify": "^3.1.0",
"webxdc-dev": "^0.11.0"
},
"browserify": {
"transform": [
"sheetify/transform"
]
},
"scripts": {
"start": "npm run prepare && cp index-dev.html public/index.html && npm run web",
"start:webxdc": "npm run prepare:webxdc && cp index-dev.html public/index.html && npm run webxdc",
"build": "npm run prepare && npm run browserify",
"build:webxdc": "npm run prepare:webxdc && npm run browserify:webxdc",
"prepare": "cp -n config.default.json config.json && npm run prepare:public && npm run prepare:style && npm run prepare:wasm",
"prepare:webxdc": "cp -n webxdc/config.json config.json && npm run prepare:public && npm run prepare:style && npm run prepare:wasm",
"prepare:public": "rm -rf public && mkdir public",
"prepare:style": "georender-style2png node_modules/georender-style2png/example/style.json -o public/style.png",
"prepare:wasm": "cp node_modules/eyros/2d.wasm public/eyros2d.wasm",
"browserify": "browserify app.js | indexhtmlify --title 'peermaps' > public/index.html",
"browserify:webxdc": "browserify -r ./storage/backend-webxdc.js:./backend app.js | indexhtmlify --title 'peermaps (webxdc)' > public/index.html && cp webxdc/manifest.toml webxdc/icon.jpg public/ && rm -f peermaps.xdc && zip -j -r peermaps.xdc public/ && echo '>> public/ folder disk size' && du -sh public && echo '>> peermaps.xdc size' && wc -c peermaps.xdc",
"web": "budo app.js -l -d public",
"webxdc": "concurrently \"budo app.js -l -d public -- -r ./storage/backend-webxdc.js:./backend\" \"webxdc-dev run http://localhost:9966\""
}
}