master
Cemal Odabasioglu 2024-01-26 14:37:10 +01:00
parent af451aaf5e
commit c7cf60b529
3 changed files with 4255 additions and 1209 deletions

5417
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -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"
}
}

View File

@ -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
}