@uscreen.de/create-fastify-app 0.4.2 → 0.4.4

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/.eslintignore ADDED
@@ -0,0 +1 @@
1
+ /skeleton/
@@ -0,0 +1 @@
1
+ _
@@ -0,0 +1 @@
1
+ *
@@ -0,0 +1,4 @@
1
+ #!/bin/sh
2
+ . "$(dirname "$0")/_/husky.sh"
3
+
4
+ npx lint-staged
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uscreen.de/create-fastify-app",
3
- "version": "0.4.2",
3
+ "version": "0.4.4",
4
4
  "description": "cli to create a new @uscreen.de/fastify-app",
5
5
  "main": "index.js",
6
6
  "repository": "git@gitlab.uscreen.net:uscreen/npm/create-fastify-app.git",
@@ -10,30 +10,21 @@
10
10
  "create-fastify-app": "./bin/cli.js"
11
11
  },
12
12
  "scripts": {
13
- "lint": "eslint '**/*.js' --fix",
14
- "test": "tap test/**/*.test.js",
15
- "test:cov": "tap --coverage-report=html test/**/*.test.js",
16
- "test:ci": "tap --coverage-report=text-summary test/**/*.test.js"
17
- },
18
- "gitHooks": {
19
- "pre-commit": "lint-staged"
20
- },
21
- "lint-staged": {
22
- "*.{js}": [
23
- "eslint --fix",
24
- "git add"
25
- ]
13
+ "lint": "eslint --fix",
14
+ "prepare": "husky install"
26
15
  },
27
16
  "dependencies": {
28
- "commander": "^7.2.0",
29
- "fs-extra": "^9.1.0",
17
+ "commander": "^8.3.0",
18
+ "fs-extra": "^10.0.0",
30
19
  "read-pkg-up": "^7.0.1",
31
20
  "write-pkg": "^4.0.0"
32
21
  },
33
22
  "devDependencies": {
34
- "@uscreen.de/eslint-config-prettystandard-node": "^0.1.3",
35
- "lint-staged": "^10.5.4",
36
- "prettier": "^2.1.2",
37
- "yorkie": "^2.0.0"
23
+ "@uscreen.de/eslint-config-prettystandard-node": "^0.2.2",
24
+ "husky": ">=6",
25
+ "lint-staged": ">=12.3.2"
26
+ },
27
+ "lint-staged": {
28
+ "*.js": "eslint --cache --fix"
38
29
  }
39
30
  }
@@ -2,7 +2,7 @@ const tap = require('tap')
2
2
  const { build } = require('../helper')
3
3
 
4
4
  tap.test('Test Setup', (t) => {
5
- t.strictEqual(true, true, 'Tests and assertions should work')
5
+ t.equal(true, true, 'Tests and assertions should work')
6
6
  t.end()
7
7
  })
8
8
 
@@ -23,7 +23,7 @@ const build = async (t, featureSwitches = {}, ConfigOverwrite = {}) => {
23
23
  app.register(fp(App), { ...Config, ...ConfigOverwrite })
24
24
 
25
25
  // tear down our app after we are done
26
- t.tearDown(app.close.bind(app))
26
+ t.teardown(app.close.bind(app))
27
27
 
28
28
  app.ready((err) => {
29
29
  if (err) throw err