Thanks to visit codestin.com
Credit goes to github.com

Skip to content

recomputing/ready.js

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ready.js : continuous integration using jslint, nodejs and git

What does it do?

  1. Check if your javascript are valid with jslint.
  2. Minify your javascript with Closure Compiler (optimize and minify your code).
  3. Watch your javascript files for jslint while you're coding.
  4. Create an aggregated file of all your javascripts.

Prerequesites

Install git and node.js.

How to install in your project (for git)

  1. run git submodule add git://github.com/dsimard/ready.js.git ready.js

  2. run cd ready.js && git submodule init && git submodule update && cd ..

  3. Create config file in your_project/ready.conf.js :

     { src : "./javascripts", // the source dir of js files
       dest : "./minified", // the destination of your compiled files
     }
    
  4. run echo 'node ready.js/bin/ready.js ready.conf.js' >> .git/hooks/pre-commit

Then, every time you commit, ready.js will be run.

How to watch your javascript files for errors with jslint

run node ready.js/bin/ready.watch.js ready.conf.js

Alternative installations

See the wiki for alternatives installations.

FAQ

Why not using ruby gems?

I don't like to have external dependencies. I mean gems are cool but for something that simple, it's an overkill. Plus, I didn't want to tie ready.js to the Rails or the node community. You can use it for any project that has javascript files in it, which mean 99.97% of web projects alive today.

Why not using Google Closure Compiler jar file?

I could have used it but it's in java and because I want the minimum external dependency, I could use it. In fact, I never installed java on my dev machine and probably never will, I'm afraid it could break things (and probably would).

Why using node.js?

Because I really wanted to work with it.

About

continuous javascript integration using JSLint, Google Compiler and Node.js

Resources

Stars

Watchers

Forks

Packages

No packages published