@uscreen.de/create-fastify-app 0.2.1 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uscreen.de/create-fastify-app",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "description": "cli to create a new @uscreen.de/fastify-app",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -2,9 +2,9 @@
2
2
 
3
3
  const fastify = require('fastify')
4
4
  const config = require('./config')
5
- const myapp = require('./app')
5
+ const app = require('./app')
6
6
 
7
- const app = fastify({
7
+ const server = fastify({
8
8
  logger: config.logEnabled
9
9
  ? {
10
10
  level: config.logLevel
@@ -12,17 +12,19 @@ const app = fastify({
12
12
  : false
13
13
  })
14
14
 
15
- app.register(myapp, config)
15
+ server.register(app, config)
16
16
 
17
17
  /**
18
18
  * post-treatment
19
19
  */
20
- app.ready(err => {
20
+ server.ready(err => {
21
21
  if (err) throw err
22
- app.log.debug('Application ready, routes are set:\n' + app.printRoutes())
22
+ server.log.debug(
23
+ 'serverlication ready, routes are set:\n' + server.printRoutes()
24
+ )
23
25
  })
24
26
 
25
27
  /**
26
28
  * start http server
27
29
  */
28
- app.listen(config.httpPort, config.httpBind)
30
+ server.listen(config.httpPort, config.httpBind)
@@ -18,6 +18,7 @@
18
18
  "eslint-plugin-promise": "^4.2.1",
19
19
  "eslint-plugin-standard": "^4.0.1",
20
20
  "lint-staged": "^9.4.1",
21
+ "pino-pretty": "^3.2.1",
21
22
  "pm2": "^3.5.1",
22
23
  "prettier": "^1.18.2",
23
24
  "tap": "^14.6.9",