-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #120 from MitocGroup/dev
Merge dev branch
- Loading branch information
Showing
106 changed files
with
3,902 additions
and
766 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ sudo: false | |
node_js: | ||
- '0.12' | ||
- '4.2' | ||
- '5.3' | ||
- '5.7' | ||
cache: | ||
directories: | ||
- "$(npm root -g)" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ test | |
tests | ||
/lib | ||
.gitignore | ||
coverage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/** | ||
* Generated by deepify v{version} | ||
* | ||
* {date} | ||
*/ | ||
|
||
'use strict'; | ||
|
||
module.exports = { | ||
up: function(db, cb) { | ||
// Your code goes here ... | ||
|
||
cb(); | ||
}, | ||
down: function(db, cb) { // OPTIONAL | ||
// Your code goes here ... | ||
|
||
cb(); | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/usr/bin/env node | ||
/** | ||
* Created by AlexanderC on 8/4/15. | ||
*/ | ||
|
||
'use strict'; | ||
|
||
module.exports = function(microservicePath) { | ||
var path = require('path'); | ||
var fs = require('fs'); | ||
var fse = require('fs-extra'); | ||
var Microservice = require('deep-package-manager').Microservice_Instance; | ||
|
||
if (microservicePath.indexOf(path.sep) !== 0) { | ||
microservicePath = path.join(process.cwd(), microservicePath); | ||
} | ||
|
||
var ms = Microservice.create(microservicePath); | ||
var migrationsPath = ms.autoload.migration; | ||
|
||
var migrationTpl = fs.readFileSync(path.join(__dirname, 'assets', 'migration_tpl.txt')).toString(); | ||
var migrationFile = path.join(migrationsPath, 'Version' + (new Date()).getTime() + '.js'); | ||
|
||
console.log('Creating migration in ' + migrationFile); | ||
|
||
fse.outputFileSync( | ||
migrationFile, | ||
migrationTpl | ||
.replace('{version}', this.version) | ||
.replace('{date}', new Date().toLocaleString()) | ||
); | ||
}; |
Oops, something went wrong.