Skip to content

Instantly share code, notes, and snippets.

@suderman
Created June 9, 2014 21:57
Show Gist options
  • Save suderman/e621c6fe8e27c2e20cf6 to your computer and use it in GitHub Desktop.
Save suderman/e621c6fe8e27c2e20cf6 to your computer and use it in GitHub Desktop.
npm start
{
"name": "ead",
"version": "1.0.0",
"dependencies": {
"uglifyjs": "~2.3.6",
"less": "~1.7.0"
},
"scripts": {
"server": "cd public_html && php -S localhost:8000 index.php",
"compile-less": "node_modules/less/bin/lessc --include-path=./vendor/components:./vendor/nterchange --source-map-less-inline app/assets/stylesheets/all.less public_html/assets/stylesheets/all.css",
"reload-chrome": "osascript -e 'tell application \"Google Chrome Canary\" to reload active tab of window 1'",
"compile-less-and-reload-chrome": "npm run compile-less & npm run reload-chrome",
"watch-less": "fswatch -0 app/assets/stylesheets | xargs -0 -n1 -I{} npm run compile-less-and-reload-chrome",
"start": "npm run watch-less & npm run server"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment