@uscreen.de/create-fastify-app 0.3.0 → 0.4.0-rc2

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/README.md CHANGED
@@ -68,6 +68,10 @@ $ make logs
68
68
 
69
69
  ## Changelog
70
70
 
71
+ ### v0.4.0
72
+
73
+ - upgraded to node 14.x (LTS)
74
+
71
75
  ### v0.3.0
72
76
 
73
77
  - upgraded to fastify 3.x
package/bin/cli.js CHANGED
@@ -14,12 +14,12 @@ let skeleton
14
14
  /**
15
15
  * init new git
16
16
  */
17
- const initializeGitRepository = path =>
17
+ const initializeGitRepository = (path) =>
18
18
  new Promise((resolve, reject) => {
19
19
  const git = spawn('git', ['init', path])
20
- git.stdout.on('data', data => process.stdout.write(data))
21
- git.stderr.on('data', data => process.stderr.write(data))
22
- git.on('close', code => {
20
+ git.stdout.on('data', (data) => process.stdout.write(data))
21
+ git.stderr.on('data', (data) => process.stderr.write(data))
22
+ git.on('close', (code) => {
23
23
  if (code === 0) return resolve(code)
24
24
  reject(code)
25
25
  })
@@ -28,13 +28,13 @@ const initializeGitRepository = path =>
28
28
  /**
29
29
  * init new yarn project
30
30
  */
31
- const initializeYarn = path =>
31
+ const initializeYarn = (path) =>
32
32
  new Promise((resolve, reject) => {
33
33
  const yarn = spawn('yarn', ['init'], {
34
34
  cwd: path,
35
35
  stdio: [0, 1, 2]
36
36
  })
37
- yarn.on('close', code => {
37
+ yarn.on('close', (code) => {
38
38
  if (code === 0) return resolve(code)
39
39
  reject(code)
40
40
  })
@@ -50,9 +50,9 @@ const installDevPackages = (appPath, skelPath) => {
50
50
  const yarn = spawn('yarn', ['add', ...devDependencies, '-D'], {
51
51
  cwd: appPath
52
52
  })
53
- yarn.stdout.on('data', data => process.stdout.write(data))
54
- yarn.stderr.on('data', data => process.stderr.write(data))
55
- yarn.on('close', code => {
53
+ yarn.stdout.on('data', (data) => process.stdout.write(data))
54
+ yarn.stderr.on('data', (data) => process.stderr.write(data))
55
+ yarn.on('close', (code) => {
56
56
  if (code === 0) return resolve(code)
57
57
  reject(code)
58
58
  })
@@ -69,9 +69,9 @@ const installPackages = (appPath, skelPath) => {
69
69
  const yarn = spawn('yarn', ['add', ...dependencies], {
70
70
  cwd: appPath
71
71
  })
72
- yarn.stdout.on('data', data => process.stdout.write(data))
73
- yarn.stderr.on('data', data => process.stderr.write(data))
74
- yarn.on('close', code => {
72
+ yarn.stdout.on('data', (data) => process.stdout.write(data))
73
+ yarn.stderr.on('data', (data) => process.stderr.write(data))
74
+ yarn.on('close', (code) => {
75
75
  if (code === 0) return resolve(code)
76
76
  reject(code)
77
77
  })
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@uscreen.de/create-fastify-app",
3
- "version": "0.3.0",
3
+ "version": "0.4.0-rc2",
4
4
  "description": "cli to create a new @uscreen.de/fastify-app",
5
5
  "main": "index.js",
6
- "bin": {
7
- "create-fastify-app": "./bin/cli.js"
8
- },
9
6
  "repository": "git@gitlab.uscreen.net:uscreen/npm/create-fastify-app.git",
10
7
  "author": "Marcus Spiegel <spiegel@uscreen.de>",
11
8
  "license": "MIT",
9
+ "bin": {
10
+ "create-fastify-app": "./bin/cli.js"
11
+ },
12
12
  "scripts": {
13
13
  "lint": "eslint '**/*.js' --fix",
14
14
  "test": "tap test/**/*.test.js",
@@ -25,22 +25,15 @@
25
25
  ]
26
26
  },
27
27
  "dependencies": {
28
- "commander": "^6.0.0",
28
+ "commander": "^6.1.0",
29
29
  "fs-extra": "^9.0.0",
30
30
  "read-pkg-up": "^7.0.1",
31
31
  "write-pkg": "^4.0.0"
32
32
  },
33
33
  "devDependencies": {
34
- "eslint": "^7.6.0",
35
- "eslint-config-prettier": "^6.10.1",
36
- "eslint-config-standard": "^14.1.1",
37
- "eslint-plugin-import": "^2.20.1",
38
- "eslint-plugin-node": "^11.0.0",
39
- "eslint-plugin-prettier": "^3.1.2",
40
- "eslint-plugin-promise": "^4.2.1",
41
- "eslint-plugin-standard": "^4.0.1",
42
- "lint-staged": "^10.0.9",
43
- "prettier": "^2.0.2",
34
+ "@uscreen.de/eslint-config-prettystandard-node": "^0.1.0",
35
+ "lint-staged": "^10.4.0",
36
+ "prettier": "^2.1.2",
44
37
  "tap": "^14.10.8",
45
38
  "yorkie": "^2.0.0"
46
39
  }
@@ -1,12 +1,3 @@
1
1
  module.exports = {
2
- root: true,
3
- env: {
4
- node: true
5
- },
6
- extends: ['standard', 'plugin:prettier/recommended'],
7
- rules: {
8
- 'generator-star-spacing': 'off',
9
- 'space-before-function-paren': 'off',
10
- 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
11
- }
2
+ extends: ['@uscreen.de/eslint-config-prettystandard-node']
12
3
  }
@@ -1,4 +1,4 @@
1
- # image: node:12
1
+ # image: node:lts-alpine
2
2
 
3
3
  # cache:
4
4
  # paths:
package/skeleton/.nvmrc CHANGED
@@ -1 +1 @@
1
- 12
1
+ 14
@@ -3,22 +3,15 @@
3
3
  "version": "0.0.0",
4
4
  "main": "app/server.js",
5
5
  "dependencies": {
6
- "@uscreen.de/fastify-app": "^0.5.0",
7
- "env-schema": "^1.0.0",
6
+ "@uscreen.de/fastify-app": "^0.6.0",
7
+ "env-schema": "^2.0.1",
8
8
  "fastify": "^3.2.0",
9
- "fastify-plugin": "^2.2.0",
9
+ "fastify-plugin": "^3.0.0",
10
10
  "fluent-schema": "^1.0.4",
11
11
  "hyperid": "^2.0.5"
12
12
  },
13
13
  "devDependencies": {
14
- "eslint": "^7.6.0",
15
- "eslint-config-prettier": "^6.3.0",
16
- "eslint-config-standard": "^14.1.0",
17
- "eslint-plugin-import": "^2.18.2",
18
- "eslint-plugin-node": "^11.1.0",
19
- "eslint-plugin-prettier": "^3.1.1",
20
- "eslint-plugin-promise": "^4.2.1",
21
- "eslint-plugin-standard": "^4.0.1",
14
+ "@uscreen.de/eslint-config-prettystandard-node": "^0.1.0",
22
15
  "lint-staged": "^10.2.11",
23
16
  "pino-pretty": "^4.1.0",
24
17
  "pm2": "^4.4.0",
@@ -17,7 +17,7 @@ module.exports = {
17
17
  user: 'user',
18
18
  host: 'server-stage.example.com',
19
19
  ref: 'origin/master',
20
- repo: repository,
20
+ repo: repository.url || repository,
21
21
  path: `/home/user/${name}`,
22
22
  'pre-setup': 'yarn add pm2 pino-pretty;',
23
23
  'post-setup':
@@ -1,4 +0,0 @@
1
- semi: false
2
- singleQuote: true
3
- trailingComma: none
4
- bracketSpacing: true