-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
45 lines (43 loc) · 1.85 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": "CastleCrush",
"version": "1.0.0",
"description": "A little game to paly together over the network",
"scripts": {
"postinstall": "npm run build",
"start": "npm run dev",
"dev": "concurrently -k \"npm run watch:html -s\" \"npm run watch:css -s\" \"npm run watch:js -s\" \"npm run watch:public -s\" \"npm run server\"",
"server": "node index.js",
"build": "npm run build:html & npm run build:css & npm run build:js & npm run build:public",
"postbuild": "ncp config.client.json dist/config.client.json",
"build:html": "pug index.pug -o dist & pug templates -o dist/templates",
"build:css": "lessc less/style.less dist/css/style.css",
"prebuild:js": "mkdirp dist/js",
"build:js": "browserify js/main.js -o dist/js/main.js -t [ babelify --presets [ env ] --plugins [ syntax-async-functions transform-regenerator ] ]",
"build:public": "ncp public dist/public",
"watch": "concurrently -k \"npm run watch:html -s\" \"npm run watch:css -s\" \"npm run watch:js -s\" \"npm run watch:public -s\"",
"watch:html": "nodemon -e pug --ignore dist/ -x npm run build:html",
"watch:css": "nodemon -e less --ignore dist/ -x npm run build:css",
"watch:js": "nodemon -e js --ignore dist/ -x npm run build:js",
"watch:public": "nodemon --watch public --ignore dist/ -x npm run build:public"
},
"devDependencies": {
"babel-core": "^6.25.0",
"babel-plugin-syntax-async-functions": "^6.13.0",
"babel-plugin-transform-regenerator": "^6.24.1",
"babel-polyfill": "^6.23.0",
"babel-preset-env": "^1.6.0",
"babelify": "^7.3.0",
"browserify": "^14.4.0",
"concurrently": "^3.5.0",
"less": "^2.7.2",
"mkdirp": "^0.5.1",
"ncp": "^2.0.0",
"nodemon": "^1.11.0",
"pug-cli": "^1.0.0-alpha6",
"watch": "^1.0.2"
},
"dependencies": {
"express": "^4.15.4",
"socket.io": "^2.0.3"
}
}