grunt-mongo-drop-task
Version:
Grunt task to drop mongo database
29 lines (20 loc) • 599 B
Markdown
grunt-mongo-drop
=========
Grunt task to drop database
Installing
-----------------
add line with repository to package.json:
"grunt-mongo-drop": "git+https://github.com/IOKI/grunt-mongo-drop.git"
and then "npm install"
specify options grunt.initConfig:
'mongo-drop': {
options: {
dbname: 'mean-dev',
host: 'localhost'
}
}
and then you can use it e.g. grunt.registerTask('drop', ['mongo-drop']);
Options with default values
-----------------
dbname: null
host: 'localhost'