|
9 | 9 | "convert:data": "yaml2json settings/data.yml > dist/data.json", |
10 | 10 | "copy:fonts": "cpx 'assets/fonts/**/*.{woff,woff2}' dist/fonts/", |
11 | 11 | "copy:icons": "cpx 'assets/icons/**/*.svg' dist/icons/", |
| 12 | + "compile:utilities": "rimraf build-utilities/compiled/* && babel --presets es2015 -d build-utilities/compiled build-utilities/src", |
| 13 | + "create:icons-list": "node ./build-utilities/compiled/createIconsList --data './assets/icons/' > ./settings/icons.json", |
12 | 14 | "autoprefixer": "postcss -c settings/post-css.json -u autoprefixer -r dist/css/*", |
13 | 15 | "copy:images": "cpx 'assets/images/**/*.{svg,png,jpg,jpeg,gif}' dist/images/", |
| 16 | + "build:svg-icons-sprite": "svg-sprite-generate -d assets/icons -o assets/icons-sprite.svg", |
| 17 | + "build": "npm run clean && npm run build:svg-icons-sprite && npm run convert:data && npm run compile:utilities && npm run create:icons-list", |
14 | 18 | "build:views": "pug views/index.pug views/docs/docs.pug --obj ./settings/pug.js --out dist/", |
15 | 19 | "refresh:views": "npm run convert:data && npm run build:views", |
16 | 20 | "dev:compile:scss": "node-sass --output-style -o dist/css assets/scss --include-path node_modules --functions ./settings/scss.js", |
17 | 21 | "dev:build:css": "npm run dev:compile:scss && npm run autoprefixer", |
18 | 22 | "dev:build:js": "webpack --config ./webpack.development.js", |
19 | | - "dev:build:assets": "npm run copy:fonts && npm run copy:icons && npm run copy:images && npm run dev:build:css && npm run build:views && npm run dev:build:js", |
20 | | - "dev:build:all": "npm run clean && npm run convert:data && npm run dev:build:assets", |
| 23 | + "dev:build:assets": "npm-run-all copy:* && npm run dev:build:css && npm run build:views && npm run dev:build:js", |
| 24 | + "dev:build": "npm run build && npm run dev:build:assets", |
21 | 25 | "serve": "browser-sync start --no-open --server dist/ --files 'dist'", |
22 | | - "dev:start": "npm run dev:build:all && npm run serve", |
| 26 | + "dev:start": "npm run dev:build && npm run serve", |
23 | 27 | "dev": "npm-run-all -p dev:start watch:all", |
24 | 28 | "prod:compile:scss": "node-sass --source-map-embed true --output-style compressed -o dist/css assets/scss --include-path node_modules --functions ./settings/scss.js", |
25 | 29 | "prod:build:css": "npm run prod:compile:scss && npm run autoprefixer", |
26 | 30 | "prod:build:images": "imagemin assets/images/**/*.{jpg,png,jpeg,gif} assets/images/*.{jpg,png,jpeg,gif} -o dist/images", |
27 | 31 | "prod:build:js": "webpack -p --config ./webpack.production.js", |
28 | | - "prod:build:assets": "npm run copy:fonts && npm run copy:icons && npm run prod:build:images && npm run prod:build:css && npm run build:views && npm run prod:build:js", |
29 | | - "prod:build:all": "npm run clean && npm run convert:data && npm run prod:build:assets", |
| 32 | + "prod:build:assets": "npm-run-all copy:* && npm run prod:build:images && npm run prod:build:css && npm run build:views && npm run prod:build:js", |
| 33 | + "prod:build": "npm run build && npm run prod:build:assets", |
30 | 34 | "watch:data": "onchange 'settings/data.yml' -- npm run refresh:views", |
31 | 35 | "watch:css": "onchange 'assets/scss' -- npm run dev:compile:scss", |
32 | 36 | "watch:icons": "onchange 'assets/icons' -- npm run copy:icons", |
33 | 37 | "watch:views": "onchange 'views/{**.pug,*.pug}' -- npm run build:views", |
34 | 38 | "watch:js": "onchange 'assets/scripts' -- npm run dev:build:js", |
35 | 39 | "watch:all": "npm-run-all -p watch:data watch:css watch:views watch:icons watch:js", |
36 | | - "prod:start": "npm run prod:build:all && npm run serve" |
| 40 | + "prod:start": "npm run prod:build && npm run serve" |
37 | 41 | }, |
38 | 42 | "author": { |
39 | 43 | "name": "Luciano Mammino", |
|
57 | 61 | }, |
58 | 62 | "devDependencies": { |
59 | 63 | "autoprefixer": "^6.7.0", |
| 64 | + "babel-cli": "^6.23.0", |
60 | 65 | "babel-core": "^6.22.1", |
61 | 66 | "babel-loader": "^6.2.10", |
62 | 67 | "babel-preset-es2015": "^6.22.0", |
|
71 | 76 | "pug-cli": "^1.0.0-alpha6", |
72 | 77 | "rimraf": "^2.5.4", |
73 | 78 | "super-gigi": "^1.11.0", |
| 79 | + "svg-sprite-generator": "0.0.7", |
74 | 80 | "webpack": "^1.14.0", |
75 | 81 | "yamljs": "^0.2.8" |
76 | 82 | }, |
|
0 commit comments