@uscreen.de/create-fastify-app 0.1.1 → 0.2.0

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/.editorconfig ADDED
@@ -0,0 +1,13 @@
1
+ root = true
2
+
3
+ [*]
4
+ charset = utf-8
5
+ indent_style = space
6
+ indent_size = 2
7
+ end_of_line = lf
8
+ insert_final_newline = true
9
+ trim_trailing_whitespace = true
10
+
11
+ [{Makefile,**.mk}]
12
+ # Use tabs for indentation (Makefiles require tabs)
13
+ indent_style = tab
package/.gitignore ADDED
@@ -0,0 +1,2 @@
1
+ /node_modules
2
+ .DS_Store
package/bin/cli.js CHANGED
@@ -116,6 +116,19 @@ const copySkeleton = (appPath, skelPath) => {
116
116
  return fs.copy(skelPath, appPath, { overwrite: false })
117
117
  }
118
118
 
119
+ /**
120
+ * copy example env
121
+ */
122
+ const copyEnv = (appPath, skelPath) => {
123
+ return fs.copy(
124
+ path.resolve(skelPath, '.env.example'),
125
+ path.join(appPath, '.env'),
126
+ {
127
+ overwrite: false
128
+ }
129
+ )
130
+ }
131
+
119
132
  /**
120
133
  * define the command
121
134
  */
@@ -147,6 +160,7 @@ cli
147
160
  await installPackages(root, skeleton)
148
161
  await addPackageConfig(root, skeleton)
149
162
  await copySkeleton(root, skeleton)
163
+ await copyEnv(root, skeleton)
150
164
  })
151
165
 
152
166
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uscreen.de/create-fastify-app",
3
- "version": "0.1.1",
3
+ "version": "0.2.0",
4
4
  "description": "cli to create a new @uscreen.de/fastify-app",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -0,0 +1,13 @@
1
+ root = true
2
+
3
+ [*]
4
+ charset = utf-8
5
+ indent_style = space
6
+ indent_size = 2
7
+ end_of_line = lf
8
+ insert_final_newline = true
9
+ trim_trailing_whitespace = true
10
+
11
+ [{Makefile,**.mk}]
12
+ # Use tabs for indentation (Makefiles require tabs)
13
+ indent_style = tab
@@ -0,0 +1,5 @@
1
+ node_modules
2
+ /.env
3
+ /.nyc_output
4
+ /coverage
5
+ .DS_Store