Skip to content

Commit

Permalink
update dependencies and annotate generated files
Browse files Browse the repository at this point in the history
  • Loading branch information
emirotin committed Dec 11, 2016
1 parent a651e5c commit c5047c2
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 5 deletions.
2 changes: 2 additions & 0 deletions Gruntfile.coffee
Expand Up @@ -8,12 +8,14 @@ module.exports = (grunt) ->
src: ['**/*.coffee']
dest: 'lib'
ext: '.js'
options: header: true
bin:
expand: true
cwd: 'bin-src'
src: ['**/*.coffee']
dest: 'bin'
ext: '.js'
options: header: true

concat:
options:
Expand Down
1 change: 1 addition & 0 deletions bin/mm
@@ -1,5 +1,6 @@
#!/usr/bin/env node

// Generated by CoffeeScript 1.10.0
(function() {
var Migrator, _, config, createMigration, createMigrator, cwd, debug, defaults, dir, exit, fs, mm, optparser, path, readConfig, runMigrations;

Expand Down
1 change: 1 addition & 0 deletions lib/migration-stub.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions lib/mongodb-migrations.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions lib/url-builder.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions lib/utils.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Expand Up @@ -37,15 +37,15 @@
"nomnom": "^1.6.2"
},
"devDependencies": {
"coffee-script": "~1.10.0",
"coffee-script": "~1.12.1",
"grunt": "^1.0.1",
"grunt-cli": "^1.2.0",
"grunt-contrib-clean": "^1.0.0",
"grunt-contrib-coffee": "^1.0.0",
"grunt-contrib-concat": "^1.0.1",
"grunt-contrib-watch": "^1.0.0",
"mocha": "^2.5.3",
"mocha": "^3.2.0",
"rimraf": "^2.5.3",
"should": "^9.0.2"
"should": "^11.1.2"
}
}
2 changes: 2 additions & 0 deletions src/mongodb-migrations.coffee
Expand Up @@ -145,11 +145,13 @@ class Migrator

migrate: (done, progress) ->
@_runWhenReady 'up', done, progress
return

rollback: (done, progress) ->
if @_lastDirection != 'up'
return done new Error('Rollback can only be ran after migrate')
@_runWhenReady 'down', done, progress
return

_loadMigrationFiles: (dir, cb) ->
mkdirp dir, 0o0774, (err) ->
Expand Down

0 comments on commit c5047c2

Please sign in to comment.