0.0.8 • Published 8 years ago
grunt-mongo-change-scripts v0.0.8
grunt-mongo-change-scripts
This will run Mongo DB scripts and save that it is run so that you only run it once.
Getting started
If you want to use it in your Grunt pipeline:
$ npm install grunt-mongo-change-scripts --save-dev
Next add this line to your project's Gruntfile:
grunt.loadNpmTasks('grunt-mongo-change-scripts');
Configuration
Add this to your Grunt configuration:
grunt-mongo-change-scripts: {
options: {
// the Mongo DB host
host: 'some.host',
// the Mongo DB name
db: 'somedb',
// path to the change scripts
src: 'test/scripts/*.js',
// path to Mongo executable
mongoBinary: 'path/to/mongo',
// Mongo DB collection name to store change scripts already executed
storedScriptsCollection: 'change_scripts_go_in_here'
},
do: {}
}