-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
65 lines (65 loc) · 2.02 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
{
"name": "frontend-npm-boilerplate",
"version": "1.0.0",
"description": "Starter frontend boilerplate",
"main": "index.js",
"scripts": {
"clean": "rm -rf dist",
"scss": "node-sass src/scss/styles.scss -o dist/css/",
"prefix": "postcss --no-map -u autoprefixer --autoprefixer.browsers \"last 2 versions, > 1%\" -o dist/css/styles.css dist/css/styles.css",
"build:html": "pug src/pug/pages --pretty --out dist",
"build:css": "npm run scss && npm run prefix",
"build:js": "babel src/js -d dist/js",
"build:images": "imagemin src/images/* --out-dir=dist/images",
"build:icons": "cp -r src/icons dist/",
"prebuild": "npm run clean && mkdir dist && mkdir -p dist/css && mkdir -p dist/js && mkdir -p dist/images",
"build": "npm run build:css && npm run build:js && npm run build:html && npm run build:images && npm run build:icons && echo 'BUILD OK'",
"watch": "rerun-script",
"serve": "browser-sync start --server './dist' --files './dist/**/*'",
"dev": "npm run build && npm run watch & npm run serve"
},
"watches": {
"build:html": [
"src/pug/**/*.pug"
],
"build:css": [
"src/scss/**/*.scss"
],
"build:js": [
"src/js/**/*.js"
],
"build:images": [
"src/images/**/*"
],
"build:icons": [
"src/icons/**/*"
]
},
"repository": {
"type": "git",
"url": "git+https://github.com/Sergiop79/frontend-npm-boilerplate.git"
},
"keywords": [
"frontend",
"starter",
"boilerplate"
],
"author": "Sergiop Peña",
"license": "MIT",
"bugs": {
"url": "https://github.com/Sergiop79/frontend-npm-boilerplate/issues"
},
"homepage": "https://github.com/Sergiop79/frontend-npm-boilerplate#readme",
"devDependencies": {
"autoprefixer": "^9.1.5",
"babel-cli": "^6.26.0",
"babel-preset-env": "^1.7.0",
"browser-sync": "^2.26.3",
"imagemin-cli": "^3.0.0",
"node-sass": "^4.9.3",
"postcss": "^7.0.3",
"postcss-cli": "^6.0.0",
"pug-cli": "^1.0.0-alpha6",
"rerun-script": "^0.6.0"
}
}