Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Coffee Script wrapper for CouchApp
branch: master

This branch is 26 commits behind andrzejsliwa:master

Failed to load latest commit information.
bin
docs adding version resolving via package.json
lib adding version resolving via package.json
.gitignore cleaning
LICENSE
Makefile inital import
README.markdown extend documentation, add more verbose, process _attachments.
package.json adding version resolving via package.json

README.markdown

CoffeeApp -- coffee-script wrapper for CouchApp

Installing

Prerequisites: requires Node.js ver. v0.3.0-pre (http://nodejs.org/) and Npm (http://npmjs.org/)

Get CoffeeApp:

git clone git://github.com/andrzejsliwa/coffeeapp.git

Build CoffeeApp:

cd coffeeapp && make && sudo make install

Installing with npm

npm install coffeeapp

Or, get the code, and npm link in the code root.

Basic usage

coffeeapp [couchapp options] | [wrapped options]

Example usage

without compilation errors:

$ coffeeapp push

CoffeeApp (v1.0.0) - simple coffee-script wrapper for CouchApp (http://couchapp.org)
http://github.com/andrzejsliwa/coffeeapp

Wrapping 'push' of couchapp
preparing .releases/20101008202459 release...
 * processing filters/filter.coffee...

done.
2010-10-08 20:25:04 [INFO] Visit your CouchApp here:
http://127.0.0.1:5984/tutorial/_design/hello/index.html

with errors, all generated files have in content '...' which should be replaced by real code - this helps to keep clean project ;) :

$ coffeeapp push

CoffeeApp (v1.0.0) - simple coffee-script wrapper for CouchApp (http://couchapp.org)
http://github.com/andrzejsliwa/coffeeapp

Wrapping 'push' of couchapp
preparing .releases/20101008202459 release...
 * processing filters/filter.coffee...

 * processing views/coffewview/reduce.coffee...
Compilation Error: Parse error on line 1: Unexpected '.'

using coffee generators

$ coffeeapp cgenerate view myview

CoffeeApp (v1.0.0) - simple coffee-script wrapper for CouchApp (http://couchapp.org)
http://github.com/andrzejsliwa/coffeeapp

Running CoffeeApp 'view' generator...
 * creating myview/map.coffee...
 * creating myview/reduce.coffee...
done.

using prepare command:

$ coffeeapp prepare
CoffeeApp (v1.0.5) - simple coffee-script wrapper for CouchApp (http://couchapp.org)
http://github.com/andrzejsliwa/coffeeapp

preparing project:
 * creating .gitignore...
done.

using clean command:

$ coffeeapp clean
The 'sys' module is now called 'util'. It should have a similar interface.
CoffeeApp (v1.0.5) - simple coffee-script wrapper for CouchApp (http://couchapp.org)
http://github.com/andrzejsliwa/coffeeapp

cleaning up:
* remove '.releases' ...
done.

using help command:

$ coffeeapp help

...
CouchApp Help here ...
...

Wrapping 'help' of couchapp

CoffeeApp (v1.0.0) - simple coffee-script wrapper for CouchApp (http://couchapp.org)
http://github.com/andrzejsliwa/coffeeapp

help             show this message
cgenerate        [ view | list | show | filter ] generate .coffee versions
destroy          [ view | list | show | filter ] destroy (remove directory/files also .js files).
prepare          prepare (.gitignore...)
clean            remove .releases directory

Description

CoffeeApp is a simple wrapper for couchapp command. CoffeeApp override normal push behavoir, by adding '.releases' directory which contain deployment snapshots (timestamped). While files are copied to release snapshot... coffee-script files (.coffee) are converted on the fly to java-script (.js) files.

'.releases' directory should be added to .gitignore or .hgignore or whatever you have using to prevent versioning.

TODO

  • add coffeescript project initialization(install compressed coffeescript for frontend, add gitignores and etc..)
  • add application testing stuff - still open how to do that

Author

Andrzej Sliwa, andrzej.sliwa@i-tool.eu

Something went wrong with that request. Please try again.