Skip to content

Commit

Permalink
add service initializer plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
jchip committed Dec 19, 2015
1 parent 36fbc94 commit 410902c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
7 changes: 6 additions & 1 deletion lib/config/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,15 @@ module.exports = {
module: `${__dirname}/../plugins/app-config.js`
},
csrf: {
priority: 11,
priority: 15,
enable: true,
module: "crumb"
},
serviceInitializer: {
priority: 20,
enable: true,
module: "@walmart/electrode-service-initializer"
},
inert: {
priority: 100,
enable: true,
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{
"name": "@walmart/electrode-server",
"version": "1.0.0",
"version": "1.0.1",
"description": "A configurable Hapi web server",
"main": "lib/index.js",
"scripts": {
"lint": "eslint .",
"test": "mocha",
"coverage": "istanbul cover node_modules/.bin/_mocha"
"coverage": "istanbul cover node_modules/.bin/_mocha",
"prepublish": "npm test"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -43,6 +44,7 @@
"node": ">= 4.2.2"
},
"dependencies": {
"@walmart/electrode-service-initializer": "^1.0.0",
"bluebird": "^3.0.6",
"chalk": "^1.1.1",
"crumb": "^5.0.0",
Expand Down

0 comments on commit 410902c

Please sign in to comment.