A command to insert design documents into a CouchDB database.
The module is published to npm. Install it as per usual:
npm install -g update-couch-designs
Installing the module globally will allow you to run the
command. It requires some options:
--db- the URL of a CouchDB database
--docs- a glob from which JSON/JS design documents will be found
If the specified database does not exist at the given URL it will be created. Any design document files matched by the glob will be inserted if they do not already exist in the database or updated if they do already exist and have changed since the last update.
Note that the design document files are expected to be valid JSON or valid
require so if you're
exported object contains stringified functions.