forked from mjnr/Simple-Boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
102 lines (102 loc) · 3.92 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
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
93
94
95
96
97
98
99
100
101
102
{
"name": "simple-boilerplate",
"version": "2.0.0",
"description": "A simple boilerplate to create static sites.",
"author": "Milson Júnior",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/mjnr/Simple-Boilerplate.git"
},
"bugs": {
"url": "https://github.com/mjnr/Simple-Boilerplate/issues"
},
"homepage": "https://github.com/mjnr/Simple-Boilerplate",
"keywords": [
"boilerplate",
"node",
"frontend",
"pug",
"stylus",
"webpack"
],
"devDependencies": {
"autoprefixer": "^6.5.1",
"babel-core": "6.10.4",
"babel-loader": "6.2.4",
"babel-preset-es2015": "6.9.0",
"browser-sync": "2.13.0",
"concurrently": "2.1.0",
"critical": "0.7.3",
"cross-conf-env": "1.0.6",
"eslint-loader": "1.4.1",
"glob": "7.0.5",
"husky": "0.11.4",
"imagemin": "5.2.2",
"imagemin-mozjpeg": "6.0.0",
"imagemin-pngquant": "5.0.0",
"lost": "^7.1.0",
"mkdirp": "0.5.1",
"poststylus": "0.2.3",
"pug-cli": "1.0.0-alpha6",
"rimraf": "2.5.2",
"rucksack-css": "0.8.6",
"rupture": "0.6.1",
"stylint": "1.5.6",
"stylint-stylish": "1.3.2",
"stylus": "0.54.5",
"webpack": "1.13.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/"
}
},
"stylintignore": [
"dev/styles/config/",
"dev/styles/base/fonts.styl",
"dev/styles/vendors/"
],
"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": "concurrently -kr 'npm run build:styles -- -w' 'npm run lint:styles -- -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:styles": "cross-conf-env stylus -u poststylus --with '[require(\"rucksack-css\")(), require(\"autoprefixer\"), require(\"lost\")()]' -u rupture --sourcemap-inline $npm_package_config_styles_dev -o $npm_package_config_styles_dist",
"build:views": "cross-conf-env pug -O ./options.json $npm_package_config_views_dev -o $npm_package_config_views_dist",
"lint:styles": "cross-conf-env stylint ${npm_package_config_styles_dev}**/ -c ./.stylintrc",
"lint:scripts": "cross-conf-env eslint ${npm_package_config_scripts_dev}** ${npm_package_config_scripts_dev}* -c ./.eslintrc",
"optimize:images": "node ./imagemin.js",
"critical:path": "npm run build:views && node ./critical-path.js",
"build:prod": "npm run build:scripts -- -p && npm run build:styles -- -c && npm run optimize:images && npm run critical:path",
"build:dev": "npm run reset && npm run build:scripts -- --bail && npm run lint:styles && npm run build:styles && npm run build:views && npm run optimize:images",
"lint": "npm run lint:styles -s && npm run lint:scripts -s",
"precommit": "npm run lint -s",
"prepush": "npm run lint -s",
"serve": "cross-conf-env browser-sync start -s $npm_package_config_dist -f '${npm_package_config_dist}**/*.html', '${npm_package_config_styles_dist}*.css', '${npm_package_config_scripts_dist}*.js'",
"start": "npm run reset && npm run optimize:images && concurrently -kr 'npm run watch:all' 'npm run serve'"
},
"dependencies": {
"jquery": "^3.0.0"
}
}