com
parent
af451aaf5e
commit
c7cf60b529
File diff suppressed because it is too large
Load Diff
36
package.json
36
package.json
|
@ -1,18 +1,27 @@
|
|||
{
|
||||
"name": "hapipal-boilerplate",
|
||||
"version": "3.0.0",
|
||||
"name": "iut-project-cemal",
|
||||
"version": "1.0.0",
|
||||
"description": "",
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"main": "lib/index.js",
|
||||
"directories": {
|
||||
"lib": "lib",
|
||||
"test": "test"
|
||||
},
|
||||
"scripts": {
|
||||
"start": "node server",
|
||||
"test": "lab -a @hapi/code -L",
|
||||
"test": "lab -a @hapi/code -I \"__core-js_shared__,CSS,regeneratorRuntime,core\" -L",
|
||||
"lint": "eslint ."
|
||||
},
|
||||
"dependencies": {
|
||||
"@hapi/boom": "9.x.x",
|
||||
"@hapipal/haute-couture": "4.x.x",
|
||||
"@hapipal/schwifty": "6.x.x",
|
||||
"joi": "17.x.x",
|
||||
"objection": "2.x.x"
|
||||
"objection": "2.x.x",
|
||||
"@hapipal/schwifty": "6.x.x",
|
||||
"sqlite3": "5.0.2",
|
||||
"exiting": "6.0.1"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"knex": "0.21.x"
|
||||
|
@ -24,16 +33,17 @@
|
|||
"@hapi/glue": "8.x.x",
|
||||
"@hapi/hapi": "20.x.x",
|
||||
"@hapi/hoek": "9.x.x",
|
||||
"@hapi/lab": "24.x.x",
|
||||
"@hapipal/confidence": "6.x.x",
|
||||
"@hapipal/hpal": "3.x.x",
|
||||
"@hapipal/hpal-debug": "2.x.x",
|
||||
"@hapipal/toys": "3.x.x",
|
||||
"@hapi/inert": "6.x.x",
|
||||
"@hapi/lab": "23.x.x",
|
||||
"@hapi/vision": "6.x.x",
|
||||
"babel-eslint": "10.x.x",
|
||||
"@hapipal/confidence": "6.x.x",
|
||||
"dotenv": "8.x.x",
|
||||
"eslint": "7.x.x",
|
||||
"exiting": "6.x.x",
|
||||
"knex": "0.21.x",
|
||||
"sqlite3": "5.x.x"
|
||||
"hapi-swagger": "14.x.x",
|
||||
"@hapipal/hpal": "3.x.x",
|
||||
"@hapipal/hpal-debug": "2.x.x",
|
||||
"knex": "^0.21.16",
|
||||
"@hapipal/toys": "3.x.x"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -13,14 +13,14 @@ module.exports = new Confidence.Store({
|
|||
server: {
|
||||
host: 'localhost',
|
||||
port: {
|
||||
$param: 'PORT',
|
||||
$env: 'PORT',
|
||||
$coerce: 'number',
|
||||
$default: 3000
|
||||
},
|
||||
debug: {
|
||||
$filter: 'NODE_ENV',
|
||||
$filter: { $env: 'NODE_ENV' },
|
||||
$default: {
|
||||
log: ['error', 'start'],
|
||||
log: ['error'],
|
||||
request: ['error']
|
||||
},
|
||||
production: {
|
||||
|
@ -34,6 +34,9 @@ module.exports = new Confidence.Store({
|
|||
plugin: '../lib', // Main plugin
|
||||
options: {}
|
||||
},
|
||||
{
|
||||
plugin: './plugins/swagger'
|
||||
},
|
||||
{
|
||||
plugin: '@hapipal/schwifty',
|
||||
options: {
|
||||
|
@ -59,7 +62,7 @@ module.exports = new Confidence.Store({
|
|||
},
|
||||
{
|
||||
plugin: {
|
||||
$filter: 'NODE_ENV',
|
||||
$filter: { $env: 'NODE_ENV' },
|
||||
$default: '@hapipal/hpal-debug',
|
||||
production: Toys.noop
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue