-
Notifications
You must be signed in to change notification settings - Fork 165
/
Copy pathpackage.json
40 lines (40 loc) · 1.69 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
{
"name": "npm-build-boilerplate",
"version": "1.0.0",
"description": "A set of common build tasks written with npm scripts.",
"scripts": {
"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 dist/images -p",
"icons": "svgo -f src/images/icons && svgshelf src/images/icons/\\*.svg dist/images/icons.svg -p icon-",
"serve": "browser-sync start --server --files 'dist/css/*.css, dist/js/*.js'",
"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",
"build:watch": "parallelshell 'npm run watch:css' 'npm run watch:js'",
"watch:css": "onchange 'src/scss/*.scss' -- npm run build:css",
"watch:js": "onchange 'src/js/*.js' -- npm run build:js",
"watch:all": "parallelshell 'npm run serve' 'npm run build:watch'",
"postinstall": "npm run watch:all"
},
"author": "Damon Bauer <hello@damonbauer.me>",
"license": "MIT",
"devDependencies": {
"autoprefixer": "^6.3.1",
"browser-sync": "^2.11.1",
"eslint": "^1.10.3",
"eslint-config-standard": "^4.4.0",
"eslint-plugin-standard": "^1.3.1",
"imagemin-cli": "^2.1.0",
"node-sass": "^3.4.2",
"onchange": "^2.0.0",
"parallelshell": "^2.0.0",
"postcss-cli": "^2.4.0",
"svgo": "^0.6.1",
"svgshelf": "^1.0.3",
"uglify-js": "^2.6.1"
}
}