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

5069
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,18 +1,27 @@
{ {
"name": "hapipal-boilerplate", "name": "iut-project-cemal",
"version": "3.0.0", "version": "1.0.0",
"description": "",
"author": "",
"license": "ISC",
"main": "lib/index.js", "main": "lib/index.js",
"directories": {
"lib": "lib",
"test": "test"
},
"scripts": { "scripts": {
"start": "node server", "start": "node server",
"test": "lab -a @hapi/code -L", "test": "lab -a @hapi/code -I \"__core-js_shared__,CSS,regeneratorRuntime,core\" -L",
"lint": "eslint ." "lint": "eslint ."
}, },
"dependencies": { "dependencies": {
"@hapi/boom": "9.x.x", "@hapi/boom": "9.x.x",
"@hapipal/haute-couture": "4.x.x", "@hapipal/haute-couture": "4.x.x",
"@hapipal/schwifty": "6.x.x",
"joi": "17.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": { "peerDependencies": {
"knex": "0.21.x" "knex": "0.21.x"
@ -24,16 +33,17 @@
"@hapi/glue": "8.x.x", "@hapi/glue": "8.x.x",
"@hapi/hapi": "20.x.x", "@hapi/hapi": "20.x.x",
"@hapi/hoek": "9.x.x", "@hapi/hoek": "9.x.x",
"@hapi/lab": "24.x.x", "@hapi/inert": "6.x.x",
"@hapipal/confidence": "6.x.x", "@hapi/lab": "23.x.x",
"@hapipal/hpal": "3.x.x", "@hapi/vision": "6.x.x",
"@hapipal/hpal-debug": "2.x.x",
"@hapipal/toys": "3.x.x",
"babel-eslint": "10.x.x", "babel-eslint": "10.x.x",
"@hapipal/confidence": "6.x.x",
"dotenv": "8.x.x", "dotenv": "8.x.x",
"eslint": "7.x.x", "eslint": "7.x.x",
"exiting": "6.x.x", "hapi-swagger": "14.x.x",
"knex": "0.21.x", "@hapipal/hpal": "3.x.x",
"sqlite3": "5.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: { server: {
host: 'localhost', host: 'localhost',
port: { port: {
$param: 'PORT', $env: 'PORT',
$coerce: 'number', $coerce: 'number',
$default: 3000 $default: 3000
}, },
debug: { debug: {
$filter: 'NODE_ENV', $filter: { $env: 'NODE_ENV' },
$default: { $default: {
log: ['error', 'start'], log: ['error'],
request: ['error'] request: ['error']
}, },
production: { production: {
@ -34,6 +34,9 @@ module.exports = new Confidence.Store({
plugin: '../lib', // Main plugin plugin: '../lib', // Main plugin
options: {} options: {}
}, },
{
plugin: './plugins/swagger'
},
{ {
plugin: '@hapipal/schwifty', plugin: '@hapipal/schwifty',
options: { options: {
@ -59,7 +62,7 @@ module.exports = new Confidence.Store({
}, },
{ {
plugin: { plugin: {
$filter: 'NODE_ENV', $filter: { $env: 'NODE_ENV' },
$default: '@hapipal/hpal-debug', $default: '@hapipal/hpal-debug',
production: Toys.noop production: Toys.noop
} }