Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,29 @@ Install node.

Install npm.

<pre>
```
$ git clone repo
$ cd node.couchapp.js
$ npm link .
</pre>
```

<pre>
```
$ couchapp help
couchapp -- utility for creating couchapps

Usage:
couchapp &lt;command> app.js http://localhost:5984/dbname
couchapp <command> app.js http://localhost:5984/dbname

Commands:
push : Push app once to server.
sync : Push app then watch local files for changes.
</pre>
```

If you want coffeescript support, `npm install -g coffee-script`

app.js example:

<pre>
```javascript
var couchapp = require('couchapp')
, path = require('path');

Expand Down Expand Up @@ -72,4 +74,4 @@ app.js example:
}

couchapp.loadAttachments(ddoc, path.join(__dirname, '_attachments'));
</pre>
```
4 changes: 4 additions & 0 deletions bin.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ var couchapp = require('./main.js')
, fs = require('fs')
;

try {
require('coffee-script');
} catch (e) {}

function abspath (pathname) {
if (pathname[0] === '/') return pathname
return path.join(process.env.PWD, path.normalize(pathname));
Expand Down