0.1.5 • Published 12 years ago
hoppa v0.1.5
Hoppa
Hoppa is a javascript compressor and less compiler for web projects.
Installation
$ sudo npm install hoppa -gConfigure
Add a Hoppa project file. Hoppa looks for hoppa.json or a given json path at launch using -p (see Launch). Use config to define wether Hoppa should compress javascript and/or compile less files when running Hoppa without arguments (-a, -j, -l).
{
"config": {
"compress": true
,"compile": true
}
,"js": {
"./js/scripts.min.js": ["./js/*.js"]
}
,"less": {
"./css/bootstrap.min.css": ["./less/bootstrap/bootstrap.less"]
}
}Launch
Go to your project directory and run
$ hoppa -aTo start in watch mode use -w
$ hoppa -a -wTo start with javascript compression -j
$ hoppa -jTo start with less compilation -l
$ hoppa -lTo start with less compilation and javascript compression -a
$ hoppa -aTo start with a custom project json use -p
$ hoppa -a -w -p ./my_project.jsonTo start with terminal notifications use -n (see Notifications)
$ hoppa -a -w -n -p ./my_project.jsonFor help use --help
$ hoppa --helpNotifications
####Windows Install Growl: http://growl.info/
####OSX Install terminal-notifier
$ sudo gem install terminal-notifier