hoppa
a simple way to deliver your less, css and javascripts
Last updated 6 years ago by martinbabbels .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install hoppa 
SYNC missed versions from official npm registry.

Hoppa

Hoppa is a javascript compressor and less compiler for web projects.

Installation

$ sudo npm install hoppa -g

Configure

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 -a

To start in watch mode use -w

$ hoppa -a -w

To start with javascript compression -j

$ hoppa -j

To start with less compilation -l

$ hoppa -l

To start with less compilation and javascript compression -a

$ hoppa -a

To start with a custom project json use -p

$ hoppa -a -w -p ./my_project.json

To start with terminal notifications use -n (see Notifications)

$ hoppa -a -w -n -p ./my_project.json

For help use --help

$ hoppa --help

Notifications

####Windows Install Growl: http://growl.info/

####OSX Install terminal-notifier

$ sudo gem install terminal-notifier

Current Tags

  • 0.1.5                                ...           latest (6 years ago)

15 Versions

  • 0.1.5                                ...           6 years ago
  • 0.1.4                                ...           6 years ago
  • 0.1.3                                ...           6 years ago
  • 0.1.2                                ...           6 years ago
  • 0.1.1                                ...           6 years ago
  • 0.1.0                                ...           6 years ago
  • 0.0.9                                ...           6 years ago
  • 0.0.8                                ...           6 years ago
  • 0.0.7                                ...           6 years ago
  • 0.0.6                                ...           6 years ago
  • 0.0.5                                ...           6 years ago
  • 0.0.4                                ...           6 years ago
  • 0.0.3                                ...           6 years ago
  • 0.0.2                                ...           6 years ago
  • 0.0.1                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 32
Dependencies (7)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |