/
package.json
executable file
·60 lines (52 loc) · 1.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
{
"private": true,
"engines": {
"node": ">=0.10.0"
},
"devDependencies": {
"bootstrap-sass": "^3.3.6",
"git-directory-deploy": "^1.4.0",
"autoprefixer": "^6.3.3",
"browserify-shim": "^3.8.12",
"postcss-cli": "^2.5.1",
"node-sass": "^3.4.2",
"eslint": "^2.2.0",
"uglify-js": "^2.6.1",
"parallelshell": "^2.0.0",
"imagemin-cli": "^2.1.0",
"browserify": "^12.0.0",
"eslint-plugin-react": "^4.0.0",
"watchify": "^3.7.0",
"strictify": "^0.2.0",
"live-server": "^0.9.2",
"onchange": "^2.0.0",
"jquery": "^2.2.0",
"underscore": "^1.8.3"
},
"scripts": {
"html": "cp app/*.html dist/",
"scss": "sass --style compressed --update app/styles:dist/css",
"autoprefixer": "postcss -u autoprefixer -r dist/css/*.css",
"lint": "eslint app/scripts",
"browserify": "browserify app/scripts/index.js | uglifyjs -c > dist/js/bundle.js",
"imagemin": "imagemin app/images dist/images -p",
"favicon": "cp app/favicon.ico dist/",
"build:css": "npm run scss && npm run autoprefixer",
"build:js": "npm run lint && npm run browserify",
"build:images": "npm run imagemin && npm run favicon",
"build": "npm run html && npm run build:css && npm run build:js && npm run build:images",
"deploy": "npm run build && git-directory-deploy",
"watch:scss": "sass --watch app/styles:dist/css",
"watch:js": "watchify app/scripts/index.js -o dist/js/bundle.js",
"watch:html": "npm run html && onchange 'app/**/*.html' -- npm run html",
"server": "live-server --open='dist'",
"watch": "parallelshell 'npm run watch:html' 'npm run watch:scss' 'npm run watch:js' 'npm run server'"
},
"browserify": {
"transform": [ "browserify-shim", "strictify" ]
},
"browserify-shim": {
"jQuery": "$",
"underscore": "_"
}
}