-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
48 lines (48 loc) · 2.13 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": "basic-starter",
"version": "1.0.0",
"description": "A basic site builder (pug, sass, babel)",
"main": "index.js",
"scripts": {
"clean": "rimraf public/*",
"pug": "pug app/templates/pages --out public -b app/templates -P",
"sass": "npm-run-all --sequential sass:compile sass:autoprefix",
"sass:compile": "node-sass app/styles -o public/css --source-map true",
"sass:autoprefix": "postcss public/css/*.css --use autoprefixer -d public/css/ -c postcss.config.js",
"sass:minify": "postcss public/css/*.css --use csswring -x .min.css -d public/css/",
"js": "npm-run-all --sequential js:compile js:uglify",
"js:compile": "babel app/scripts --out-dir public/js",
"js:uglify": "uglifyjs public/js/*.js -o public/js/app.min.js -c -m",
"build:dev": "npm-run-all --sequential clean pug sass js copy:img copy:fonts",
"open:dev": "opener http://localhost:9090",
"serve": "http-server -p 9090 public/ -s",
"live-reload": "live-reload --port 9091 public/",
"watch": "npm-run-all --parallel open:dev watch:pug watch:sass watch:js watch:files",
"watch:pug": "chokidar 'app/templates/**/*.pug' -c 'npm run pug'",
"watch:sass": "chokidar 'app/styles/**/*.css' 'app/styles/**/*.sass' 'app/styles/**/*.scss' -c 'npm run sass:compile'",
"watch:js": "chokidar 'app/scripts/*.js' -c 'npm run js'",
"watch:img": "chokidar 'app/assets/images/*.*' -c 'npm run copy:img'",
"copy:fonts" : "copyfiles 'app/assets/fonts/*.*' public/fonts -u",
"copy:img": "copyfiles 'app/assets/images/*.*' public/assets/imgs -u",
"dev": "npm-run-all --sequential clean build:dev dev:env",
"dev:env": "npm-run-all --parallel serve live-reload watch"
},
"author": "Julian Rosado",
"license": "ISC",
"devDependencies": {
"autoprefixer": "^7.2.5",
"babel-cli": "^6.26.0",
"chokidar-cli": "^1.2.0",
"copyfiles": "^1.2.0",
"csswring": "^6.0.2",
"http-server": "^0.11.1",
"live-reload": "^1.1.0",
"node-sass": "^4.7.2",
"npm-run-all": "^4.1.2",
"opener": "^1.4.3",
"postcss-cli": "^4.1.1",
"pug-cli": "^1.0.0-alpha6",
"rimraf": "^2.6.2",
"uglify-js": "^3.3.9"
}
}