https://github.com/pixtron/sails-plugin
A plugin loader for sails.js
https://github.com/pixtron/sails-plugin
Last synced: about 1 year ago
JSON representation
A plugin loader for sails.js
- Host: GitHub
- URL: https://github.com/pixtron/sails-plugin
- Owner: pixtron
- License: mit
- Created: 2015-05-18T07:24:54.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-05-26T05:09:17.000Z (about 11 years ago)
- Last Synced: 2024-10-30T03:57:28.767Z (over 1 year ago)
- Language: JavaScript
- Size: 125 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sails-plugin
A plugin loader for sails.js. This module only works if you lift sails programaticaly.
It won't work with `sails lift` on the command line.
## Usage
```
npm install --save sails-plugin
```
Replace the lines `sails.lift` in `app.js` with these lines:
```javascript
var options = rc('sails');
options.moduleLoaderOverride = require('sails-plugin');
// Start server
sails.lift(options);
```
## TODO
See [open issues](https://github.com/pixtron/sails-plugin/labels/todo)