Created
June 17, 2015 00:48
-
-
Save farism/24d052bbd721814ed2c1 to your computer and use it in GitHub Desktop.
build
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"scripts": { | |
"cp:watch:fonts": "cpx -w \"src/public/font/*.{otf,ttf,woff,woff2,svg,eot}\" dist/", | |
"cp:watch:sprites": "cpx -w \"src/tmp/*.png\" dist/", | |
"cp:fonts": "cpx \"src/public/font/*.{otf,ttf,woff,woff2,svg,eot}\" dist/", | |
"cp:sprites": "cpx \"src/tmp/*.png\" dist/", | |
"watch:images": "watch \"npm run build:images\" src/public/img", | |
"watch:sprites": "sprity watch src/tmp \"src/sprite/*.png\" -c ./ -n sprite -t ./src/sprite.less.hbs -s sprite.less --orientation binary-tree -d 1:72 -d 2:192", | |
"watch:less": "autoless --autoprefix \"last 3 versions\" src/less/ dist/", | |
"watch:js": "webpack -d --watch --progress src/scripts/main.jsx dist/main.js", | |
"watch": "npm-run-all -p cp:watch:* watch:*", | |
"build:images": "imagemin-newer src/public/img dist/", | |
"build:sprites": "sprity create src/tmp \"src/sprite/*.png\" -c ./ -n sprite -t ./src/sprite.less.hbs -s sprite.less --orientation binary-tree -d 1:72 -d 2:192", | |
"build:less": "lessc --autoprefix=\"last 3 versions\" --clean-css=\"--s1 --advanced --compatibility=ie8\" src/less/main.less > dist/main.min.css", | |
"build:js": "webpack -p --progress src/scripts/main.jsx dist/main.min.js", | |
"build": "npm-run-all -s build:images build:sprites build:less build:js cp:fonts cp:sprites", | |
"build:deploy": "npm run build && npm version patch --no-git-tag-version && git add --all && git commit -m \"deploy\" && git push", | |
"deploy": "npm version patch --no-git-tag-version && git add --all && git commit -m \"deploy\" && git push" | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment