-
Notifications
You must be signed in to change notification settings - Fork 2
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 #4 from zishone/dev
Bug Fixes and TravisCI Integration
- Loading branch information
Showing
21 changed files
with
142 additions
and
114 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,5 +1,28 @@ | ||
language : node_js | ||
node_js : | ||
- stable | ||
script: | ||
- npm run ci | ||
language: node_js | ||
node_js: | ||
- stable | ||
install: | ||
- npm ci | ||
before_script: | ||
- npm run cleanup | ||
script: | ||
- npm run build | ||
- npm run docs | ||
- npm run test:coverage | ||
after_success: | ||
- npm run test:coveralls | ||
deploy: | ||
- provider: pages | ||
skip_cleanup: true | ||
local_dir: docs | ||
github_token: $GITHUB_TOKEN | ||
on: | ||
tags: true | ||
branch: master | ||
- provider: npm | ||
skip_cleanup: true | ||
email: "zishgarces@gmail.com" | ||
api_key: $NPM_TOKEN | ||
on: | ||
tags: true | ||
branch: master |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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,52 @@ | ||
import { | ||
CollectionCreateOptions, | ||
IndexOptions, | ||
} from 'mongodb'; | ||
|
||
export interface IndexSpec { | ||
keys: object; | ||
options: IndexOptions; | ||
dropFirst: boolean; | ||
} | ||
|
||
export interface CollectionSpec { | ||
options: CollectionCreateOptions; | ||
dropIndexesFirst: boolean; | ||
dropFirst: boolean; | ||
} | ||
|
||
export interface DataSpec { | ||
upsertFields: string[]; | ||
ignoreFields: string[]; | ||
preservePrimaryKey: boolean; | ||
} | ||
|
||
export interface MongoverOptions { | ||
_: string[]; | ||
specPath: string; | ||
u: string; | ||
uri: string; | ||
d: string; | ||
dbs: string[]; | ||
c: string; | ||
collections: string[]; | ||
a: string; | ||
alias: string[]; | ||
e: string; | ||
export: string; | ||
f: string; | ||
format: string; | ||
t: string; | ||
type: string; | ||
q: string; | ||
query: any; | ||
s: boolean; | ||
seedOnly: boolean; | ||
} | ||
|
||
export interface DatabaseSpec { | ||
seedOnly: boolean; | ||
dropFirst: boolean; | ||
alias: string | undefined; | ||
collections: any; | ||
} |
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
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
Oops, something went wrong.