@uscreen.de/create-fastify-app 0.1.2 → 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 +13 -0
- package/bin/cli.js +14 -0
- package/package.json +1 -1
- package/skeleton/.editorconfig +13 -0
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/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
|
@@ -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
|