forked from primeau/Larn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
72 lines (65 loc) · 4.81 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
{
"name": "larn",
"version": "12.5.0",
"description": "JS Larn",
"main": "larn.js",
"scripts": {
"clean": "npm run tempclean ; npm run distclean",
"tempclean": "rm -rf larn-temp || true",
"distclean": "rm -rf dist || true",
"alphaclean": "rm -rf ../larn-deploy/alpha || true",
"betaclean": "rm -rf ../larn-deploy/beta || true",
"prodclean": "rm -rf ../larn-deploy/larn || true",
"webclean": "rm ../larn-deploy/*.xml ; rm ../larn-deploy/*.png ; rm ../larn-deploy/*.html ; rm ../larn-deploy/*.css ; rm ../larn-deploy/*.txt || true",
"transpile": "babel src --out-dir larn-temp/ ; ./secrets.sh 'larn-temp' || true",
"minify": "uglifyjs --mangle --compress -o larn-temp/larn.min.js larn-temp/fullstory.js larn-temp/util.js larn-temp/env/larn_config.js larn-temp/config.js larn-temp/larn.js larn-temp/main.js larn-temp/object.js larn-temp/global.js larn-temp/monster.js larn-temp/monsterdata.js larn-temp/player.js larn-temp/mazes.js larn-temp/level.js larn-temp/create.js larn-temp/data.js larn-temp/parse.js larn-temp/buttons.js larn-temp/scores.js larn-temp/inventory.js larn-temp/movem.js larn-temp/action.js larn-temp/io.js larn-temp/display.js larn-temp/storedata.js larn-temp/store.js larn-temp/mcdopes.js larn-temp/savelev.js larn-temp/spells.js larn-temp/spellsinfo.js larn-temp/regen.js larn-temp/spheres.js larn-temp/help.js larn-temp/state.js larn-temp/bill.js larn-temp/altar.js larn-temp/fountain.js larn-temp/potion.js larn-temp/scroll.js larn-temp/stairs.js larn-temp/throne.js larn-temp/devmode.js larn-temp/fullstory.js larn-temp/tv/tv_config.js larn-temp/tv/tvutil.js larn-temp/tv/frame.js larn-temp/tv/lambda.js larn-temp/tv/movie.js larn-temp/tv/patch.js larn-temp/tv/roll.js",
"_copy": "echo $envt ; mkdir -p dist/$envt/lib ; mkdir dist/$envt/img ; cp src/lib/*.js dist/$envt/lib ; cp src/img/* dist/$envt/img ; cp src/larn.html dist/$envt ; cp src/larn.css dist/$envt ; cp larn-temp/larn.min.js dist/$envt ; cp larn-temp/worker.js dist/$envt || true",
"alphacopy": "export envt=alpha ; npm run _copy",
"betacopy": "export envt=beta ; npm run _copy",
"prodcopy": "export envt=larn ; npm run _copy",
"webcopy": "cp -rv ../larn-www/* ../larn-deploy || true",
"_tvcopy": "mkdir -p dist/$envt/tv/env ; cp larn-temp/tv/* dist/$envt/tv ; cp larn-temp/util.js dist/$envt/tv ; cp larn-temp/env/larn_config.js dist/$envt/tv/env ; cp src/tv/index.html dist/$envt/tv || true",
"alphatv": "export envt=alpha ; npm run _tvcopy",
"betatv": "export envt=beta ; npm run _tvcopy",
"prodtv": "export envt=larn ; npm run _tvcopy",
"_dist": "echo $envt ; rm -rf ../larn-deploy/$envt ; mv dist/$envt ../larn-deploy || true",
"distalpha": "export envt=alpha ; npm run _dist",
"distbeta": "export envt=beta ; npm run _dist",
"distprod": "export envt=larn ; npm run _dist",
"distweb": "npm run webclean ; npm run webcopy || true",
"dist": "npm run distalpha ; npm run distbeta ; npm run distprod ; npm run distweb || true",
"buildalpha": "npm run alphaclean ; npm run transpile ; npm run minify ; npm run alphacopy ; npm run alphatv ; npm run distalpha",
"buildbeta": "npm run betaclean ; npm run transpile ; npm run minify ; npm run betacopy ; npm run betatv ; npm run distbeta",
"buildprod": "npm run prodclean ; npm run transpile ; npm run minify ; npm run prodcopy ; npm run prodtv ; npm run distprod",
"build": "echo '=== STARTING BUILD ==' ; npm run distclean ; npm run transpile ; npm run minify ; npm run prodcopy ; npm run tempclean",
"buildall": "echo '=== STARTING FULL BUILD ==' ; npm run clean ; npm run transpile ; npm run minify ; npm run alphacopy ; npm run betacopy ; npm run prodcopy ; npm run webcopy ; npm run alphatv ; npm run betatv ; npm run prodtv ; npm run dist ; npm run clean",
"watch": "npm run tempclean ; babel src --watch --out-dir larn-temp/",
"server": "cd ../larn-deploy ; python -m SimpleHTTPServer 8000",
"localserver": "cd ../larn-local ; python -m SimpleHTTPServer 8000",
"deploy_tv_lambda_test": "cd src/tv/aws ; zip function.zip *.js ; aws lambda update-function-code --function-name movie_test --zip-file fileb://function.zip ; rm function.zip",
"deploy_tv_lambda": "cd src/tv/aws ; zip function.zip *.js ; aws lambda update-function-code --function-name movies --zip-file fileb://function.zip ; rm function.zip"
},
"repository": {
"type": "git",
"url": "git+https://github.com/primeau/Larn.git"
},
"keywords": [
"larn",
"ularn",
"roguelike",
"game"
],
"author": "Jason Primeau",
"license": "MIT",
"bugs": {
"url": "https://github.com/primeau/Larn/issues"
},
"homepage": "https://github.com/primeau/Larn#readme",
"dependencies": {},
"devDependencies": {
"@babel/cli": "^7.14.5",
"@babel/core": "^7.14.5",
"@babel/preset-env": "^7.14.5",
"uglify-js": "^3.13.9"
}
}