Skip to content
This repository has been archived by the owner on Oct 8, 2019. It is now read-only.

zfben/lib.js

Repository files navigation

This project has been moved to github.com/benz303/zfben_libjs

SUMMARY

Lib.js = Frontend build tool + lazyload js tool

See qunit example at benz303.github.com/lib.js

Lib.js support:

lazyload css and js files (base on LazyLoad.js) css, js and images files sass, scss, compass and coffeescript files local files and remote files custom ruby script minify css and js files (base on sass and uglifier)

Example

// load jquery
lib.jquery(function(){
  // something use jquery to do
});

// load jqueryui and not duplicate load jquery
lib.jqueryui(function(){
  // something use jqueryui to do
});

// and you can load like
lib('jquery', function(){
  // use jquery to do sth.
});

lib('jquery underscore', function(){
  // use jquery and underscore to do sth.
});

More Options see github.com/benz303/lib.js/blob/gh-pages/example.yml

Run Example by youself

1. Download from github

 git clone https://benz303@github.com/benz303/lib.js.git

2. Install ruby gems

 bundle install

3. Run web server

 ruby web.rb

4. Open http://localhost:4567

Getting Started

1. Download from github

 git clone https://benz303@github.com/benz303/lib.js.git

2. Install ruby gems

 bundle install

3. Copy example.yml and change it.

4. run build task

 rake build

5. Files are in src folder

About

Lib.js = Frontend build tool + lazyload js tool

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages