Aggregates views to designs via globbing and puts them into your couchdb
given the following folder structure
- feature
- views
- testview1.js
- testview2.js
- views
results in a design document named 'feature', containing both views (testview1, testview2)
your view file must export a map or a reduce function (or both) otherwhise it will be ignored
$ npm install -g couchdb-design-putter
In your target directory:
$ couchdb-design-putter start
Or with globbing pattern
$ couchdb-design-putter start -d '**/_design/*.js'
With specific couchdb url
$ couchdb-design-putter start -b 'http://myserver/mybucket'
You can use Basic Auth via Environment Variables
USER, PASSWORD
it works only with node.js 6.x