forked from damonbauer/npm-build-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
48 lines (48 loc) · 2.11 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": "npm-build-boilerplate",
"version": "1.2.0",
"description": "A set of common build tasks written with npm scripts.",
"author": "Damon Bauer <[email protected]>",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/damonbauer/npm-build-boilerplate"
},
"bugs": "https://github.com/damonbauer/npm-build-boilerplate/issues",
"keywords": ["npm", "scripts", "npm scripts", "watch", "minify", "compress"],
"scripts": {
"clean": "rm -f dist/{css/*,js/*,images/*}",
"autoprefixer": "postcss -u autoprefixer -r dist/css/*",
"scss": "node-sass --output-style compressed -o dist/css src/scss",
"lint": "eslint src/js",
"uglify": "mkdir -p dist/js && uglifyjs src/js/*.js -m -o dist/js/app.js && uglifyjs src/js/*.js -m -c -o dist/js/app.min.js",
"imagemin": "imagemin src/images/* -o dist/images",
"icons": "svgo -f src/images/icons && mkdir -p dist/images && svg-sprite-generate -d src/images/icons -o dist/images/icons.svg",
"serve": "browser-sync start --server --files \"dist/css/*.css, dist/js/*.js, **/*.html, !node_modules/**/*.html\"",
"build:css": "npm run scss && npm run autoprefixer",
"build:js": "npm run lint && npm run uglify",
"build:images": "npm run imagemin && npm run icons",
"build:all": "npm run build:css && npm run build:js && npm run build:images",
"watch:css": "onchange \"src/scss\" -- npm run build:css",
"watch:js": "onchange \"src/js\" -- npm run build:js",
"watch:images": "onchange \"src/images\" -- npm run build:images",
"watch:all": "npm-run-all -p serve watch:css watch:js watch:images",
"postinstall": "npm run build:all && npm run watch:all"
},
"devDependencies": {
"autoprefixer": "^6.3.6",
"browser-sync": "^2.12.8",
"eslint": "^2.10.2",
"eslint-config-standard": "^5.3.1",
"eslint-plugin-promise": "^1.3.0",
"eslint-plugin-standard": "^1.3.2",
"imagemin-cli": "^3.0.0",
"node-sass": "^3.7.0",
"npm-run-all": "^2.1.1",
"onchange": "^2.4.0",
"postcss-cli": "^2.5.2",
"svg-sprite-generator": "0.0.7",
"svgo": "^0.6.6",
"uglify-js": "^2.6.2"
}
}