No description, website, or topics provided.
Ruby CoffeeScript CSS
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
assets
test
views
.bowerrc
.gitignore
Gemfile
Gemfile.lock
README.md
Rakefile
bower.json
config.ru
workbench.rb

README.md

Workbench

A front-end workbench for writing small code and checking behavior easily.

Usage

$ gem install bundler # if not installed
$ npm install -g bower # if not installed
$ git clone https://github.com/ykhs/workbench.git
$ cd workbench
$ rake setup
$ rake server

The website is found at localhost:9292.

Add Packege

bower install #{packege} and add require directive to assets/js/lib.coffee

$ bower install momentjs
$ echo "#=require momentjs/moment.js" >> assets/js/lib.coffee

Coding

Writing code to assets/js/main.coffee.

CSS work the same way by use of assets/css/lib.scss and assets/css/main.scss.

Testing

Test runs at localhost:9292/test.

Put test code in assets/js/tests/*.coffee. Then require_tree directive includes tests/* automatically.