-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
48 lines (48 loc) · 1.87 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": "npmscriptsarroxa",
"version": "1.0.0",
"description": "",
"license": "MIT",
"engines": {
"node": "^4.2.2",
"npm": "^2.7.0"
},
"scripts": {
"autoprefixer": "postcss -u autoprefixer --autoprefixer.browsers '> 5%, ie 9' -r dist/css/*",
"html:dist": "cp src/*.html dist/",
"imagemin": "imagemin src/img/* -o dist/img",
"lint": "eslint src/js",
"sass": "node-sass --output-style compressed -o dist/css src/sass",
"stop": "rm -rf node_modules",
"uglify": "mkdir -p dist/js && uglifyjs src/js/*.js -m -o dist/js/app.js",
"uglify:min": "uglifyjs dist/js/app.js -m -c -o dist/js/app.min.js",
"serve": "browser-sync start --server 'dist/' --files 'dist/**/*'",
"babel": "babel dist/js -d dist/js",
"build:css": "npm run sass && npm run autoprefixer",
"build:js": "npm run lint && npm run uglify",
"build:img": "npm run imagemin",
"build": "npm run build:css && npm run build:js && npm run build:img && npm run html:dist && npm run babel && npm run uglify:min",
"watch:css": "onchange 'src/sass/*.sass' -- npm run build:css",
"watch:js": "onchange 'src/js/*.js' -- npm run build:js",
"watch:html": "onchange 'src/*.html' -- npm run html:dist",
"start": "npm run build && parallelshell 'npm run serve' 'npm run watch:css' 'npm run watch:js' 'npm run watch:html'"
},
"devDependencies": {
"autoprefixer": "^6.5.3",
"babel-cli": "^6.18.0",
"babel-core": "^6.20.0",
"babel-plugin-transform-es2015-modules-umd": "^6.18.0",
"babel-preset-es2015": "^6.18.0",
"browser-sync": "^2.18.5",
"eslint": "^3.12.0",
"eslint-config-standard": "^6.2.1",
"eslint-plugin-promise": "^3.4.0",
"eslint-plugin-standard": "^2.0.1",
"imagemin-cli": "^3.0.0",
"node-sass": "^4.0.0",
"onchange": "^3.2.0",
"parallelshell": "^2.0.0",
"postcss-cli": "^2.6.0",
"uglify-js": "^2.7.5"
}
}