Skip to content

Instantly share code, notes, and snippets.

@marushu
Last active July 8, 2017 05:33
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marushu/eaceb66a69d166d7df64c8078a311fee to your computer and use it in GitHub Desktop.
Save marushu/eaceb66a69d166d7df64c8078a311fee to your computer and use it in GitHub Desktop.
Task runner for building WordPress theme
{
"name": "task-runner-for-wordpress-theme",
"version": "1.1.0",
"description": "new task runner for hibou build themes :)",
"scripts": {
"lint": "eslint ./js || true",
"scss": "node-sass --output-style expanded --indent-type tab --indent-width 2 -o ./ ./sass/style.scss",
"autoprefixer": "postcss -u autoprefixer --autoprefixer.browsers '> 5%, ie 9' -r ./style.css",
"imagemin": "imagemin ../../../../dist/* -o ./common/img",
"icons": "svgo -f ./common/img && mkdir -p ./common/img && svg-sprite-generate -d ../../../../dist/ -o ./common/img/icons.svg",
"serve": "browser-sync --proxy 'vccw.dev' start --files './style.css, ./js/*.js, ./**/*'",
"build:css": "npm run scss && npm run autoprefixer",
"build:js": "npm run lint",
"build:images": "npm run imagemin && npm run icons",
"build:all": "npm run build:css && npm run build:images && npm run build:js",
"watch:css": "onchange './sass/style.scss' -- npm run build:css",
"watch:js": "onchange './js' -- npm run build:js",
"watch:images": "onchange '../../../../dist/*' -- npm run build:images",
"watch:all": "parallelshell 'npm run serve' 'npm run watch:css' 'npm run watch:images' 'npm run watch:js'",
"postinstall": "npm run watch:all"
},
"author": "Hibou",
"license": "MIT",
"devDependencies": {
"autoprefixer": "^7.1.1",
"balanced-match": "^1.0.0",
"browser-sync": "^2.18.12",
"debug": "^2.6.8",
"eslint": "^4.1.1",
"eslint-config-standard": "^10.2.1",
"eslint-plugin-promise": "^3.5.0",
"eslint-plugin-standard": "^3.0.1",
"imagemin": "^5.3.1",
"imagemin-cli": "^3.0.0",
"localtunnel": "^1.8.3",
"mkdirp": "^0.5.1",
"ms": "^2.0.0",
"node-gyp": "^3.6.2",
"node-sass": "^4.5.3",
"nopt": "^4.0.1",
"npm-run-all": "^4.0.2",
"npmlog": "^4.1.2",
"onchange": "^3.2.1",
"parallelshell": "^3.0.1",
"postcss": "^6.0.3",
"postcss-cli": "^4.1.0",
"request": "^2.81.0",
"rimraf": "^2.6.1",
"sshpk": "^1.13.1",
"stylelint": "^7.12.0",
"svg-sprite-generator": "0.0.7",
"svgo": "^0.7.2",
"uglify-js": "^3.0.20",
"weinre": "^2.0.0-pre-I0Z7U9OV"
}
}
@marushu
Copy link
Author

marushu commented Feb 20, 2017

Added "watch:images".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment