-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
92 lines (92 loc) · 3.7 KB
/
package.json
File metadata and controls
92 lines (92 loc) · 3.7 KB
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
{
"name": "simpler-boilerplate",
"version": "1.0.1",
"description": "A simpler boilerplate to create static sites.",
"author": "Andrea Faggin",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/zsavajji/simpler-boilerplate.git"
},
"bugs": {
"url": "https://github.com/zsavajji/simpler-boilerplate/issues"
},
"homepage": "https://github.com/zsavajji/simpler-boilerplate",
"keywords": [
"boilerplate",
"node",
"frontend",
"pug",
"sass",
"webpack2"
],
"devDependencies": {
"autoprefixer": "^7.1.6",
"babel-core": "6.26.0",
"babel-loader": "7.1.2",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-env": "^1.6.1",
"babel-preset-es2015": "6.24.1",
"babel-preset-stage-2": "^6.24.1",
"browser-sync": "2.18.13",
"concurrently": "3.5.0",
"cross-conf-env": "1.1.2",
"cssnano": "^3.10.0",
"glob": "7.1.2",
"husky": "0.14.3",
"imagemin": "5.3.1",
"imagemin-mozjpeg": "6.0.0",
"imagemin-pngquant": "5.0.1",
"lost": "^8.0.0",
"mkdirp": "0.5.1",
"node-sass": "^4.5.0",
"postcss": "^6.0.14",
"postcss-cli": "^4.1.1",
"pug-cli": "1.0.0-alpha6",
"rimraf": "2.6.2",
"webpack": "3.8.1"
},
"config": {
"dev": "./dev/",
"dist": "./dist/",
"views": {
"dev": "./dev/views/pages ./dev/views/pages/**",
"dist": "./dist/"
},
"styles": {
"dev": "./dev/styles/",
"dist": "./dist/assets/css/"
},
"scripts": {
"dev": "./dev/scripts/",
"dist": "./dist/assets/js/"
},
"images": {
"dev": "./dev/images/**/*.{gif,jpg,png,svg}",
"dist": "./dist/assets/images/"
}
},
"scripts": {
"reset": "npm run clean && npm run create",
"clean": "cross-conf-env rimraf $npm_package_config_dist",
"create": "cross-conf-env mkdirp ${npm_package_config_dist}assets/css/fonts/ ${npm_package_config_dist}assets/js/ ${npm_package_config_dist}assets/images/",
"watch:scripts": "npm run build:scripts -- -w",
"watch:styles": "npm run build:sass && npm run build:sass -- -w",
"watch:views": "npm run build:views -- -Pw",
"watch:all": "concurrently -kr 'npm run watch:scripts' 'npm run watch:styles' 'npm run watch:views'",
"build:all": "npm run build:scripts && npm run build:views && npm run build:styles",
"build:scripts": "webpack",
"build:sass": "cross-conf-env node-sass -i --output-style nested ${npm_package_config_styles_dev}main.sass ${npm_package_config_styles_dist}styles.css",
"build:sassprod": "cross-conf-env node-sass -x -i --output-style nested ${npm_package_config_styles_dev}main.sass ${npm_package_config_styles_dist}styles.css",
"build:css": "npm run build:sassprod && cross-conf-env postcss ${npm_package_config_styles_dist}styles.css --use autoprefixer -b 'last 2 versions' --no-map -o ${npm_package_config_styles_dist}styles.css && cross-conf-env postcss ${npm_package_config_styles_dist}styles.css --use cssnano --no-map -o ${npm_package_config_styles_dist}styles.css",
"build:views": "cross-conf-env pug -O ./options.json $npm_package_config_views_dev -o $npm_package_config_views_dist",
"optimize:images": "node ./imagemin.js",
"build:prod": "npm run build:scripts -- -p && npm run build:views && npm run build:css && npm run optimize:images",
"build:dev": "npm run reset && npm run build:scripts -- --bail && npm run build:styles && npm run build:views && npm run optimize:images",
"serve": "cross-conf-env browser-sync start -s $npm_package_config_dist -f '**/*.html', '**/*.css', '**/*.js'",
"start": "npm run reset && npm run optimize:images && concurrently -kr 'npm run watch:all' 'npm run serve'"
},
"dependencies": {
"jquery": "^3.1.1"
}
}