Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support hpal-debug #54

Merged
merged 2 commits into from
Jun 1, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Lead Maintainer - [Devin Ivy](https://github.com/devinivy)

**Features**
- Supports hapi v17+
- Setup with [hpal-debug](https://github.com/hapipal/hpal-debug) hapi CLI debugging tools.
- Provides conventions for building plugins by mapping the entire hapi plugin API onto files and folders, using [haute-couture](https://github.com/hapipal/haute-couture).
- Designed to allow you to deploy your plugin on its own or as part of a larger application.
- Textbook integrations with Objection ORM, Swagger UI, and more via [flavors](#flavors).
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
"eslint-plugin-hapi": "4.x.x",
"glue": "5.x.x",
"hapi": "17.x.x",
"lab": "15.x.x"
"hpal-debug": "1.x.x",
"lab": "15.x.x",
"toys": "2.x.x"
}
}
8 changes: 8 additions & 0 deletions server/manifest.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

const Dotenv = require('dotenv');
const Confidence = require('confidence');
const Toys = require('toys');

// Pull .env into process.env
Dotenv.config({ path: `${__dirname}/.env` });
Expand All @@ -24,6 +25,13 @@ module.exports = new Confidence.Store({
{
plugin: '../lib', // Main plugin
options: {}
},
{
plugin: {
$filter: 'NODE_ENV',
$default: 'hpal-debug',
production: Toys.noop
}
}
]
}
Expand Down