Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reimplement as a plugin for Bookshelf/Knex 0.8.x
- Changed constructor signature to require Bookshelf instance as first argument, and made `root` an optional property of the second `options` argument - Added Manager.plugin() method to be used with Bookshelf.plugin() (exported on main index.js module) - Exposes self as `manager` property on Bookshelf instance when instantiated - Replaced Manager.manage() and Manager.manages() with manager.register() to improve compatibility with Bookshelf Registry plugin - Removed `hooker` dependency and manager.debug() method - Use NPM devDependencies and peerDependencies instead of dependencies since it is intended to be used as a plugin now - Changed test database from MySQL to SQLite for easier testing setup - Updated README.md - Bumped version to 0.1.0 (not fully backwards-compatible) - Add JSHint/JSCS configs
- Loading branch information
Showing
38 changed files
with
504 additions
and
544 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"preset": "node-style-guide", | ||
"requireCamelCaseOrUpperCaseIdentifiers": "ignoreProperties", | ||
"maximumLineLength": null, | ||
"requireTrailingComma": null, | ||
"disallowTrailingComma": true | ||
} |
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,3 @@ | ||
{ | ||
"node": true | ||
} |
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 |
---|---|---|
@@ -1 +1 @@ | ||
module.exports = require('./lib/manager'); | ||
module.exports = require('./lib/manager').plugin; |
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,4 @@ | ||
{ | ||
"extends": "../.jshintrc", | ||
"mocha": true | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.