Skip to content

Instantly share code, notes, and snippets.

@yosukehasumi
Created January 19, 2015 20:00
Show Gist options
  • Save yosukehasumi/01290d48218464b18e0a to your computer and use it in GitHub Desktop.
Save yosukehasumi/01290d48218464b18e0a to your computer and use it in GitHub Desktop.
Node.js compiler
{
"scripts": {
"app": "npm run watch-css & npm run watch-coffee",
"watch-css": "watch \"npm run sass && npm run prefix\" wp-content/themes/stanns/sass/",
"watch-coffee": "watch \"npm run coffee\" wp-content/themes/stanns/coffee/",
"sass": "sass --update wp-content/themes/stanns/sass/style.scss:wp-content/themes/stanns/style.css",
"prefix": "autoprefixer wp-content/themes/stanns/style.css",
"coffee": "coffee -c --output wp-content/themes/stanns/js/ wp-content/themes/stanns/coffee/site.coffee"
}
}
@yosukehasumi
Copy link
Author

Dependancies:
npm install watch
npm install autoprefixer
npm install coffee-script

I've installed all these as -g (global)

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