create-matwad-app 1.0.2 → 1.0.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 +1 -1
- package/src/index.js +12 -0
- package/templates/server/_env.local +2 -0
- package/templates/server/_gitignore +20 -0
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -67,6 +67,18 @@ export async function run() {
|
|
|
67
67
|
console.log(`\n${blue(bold("Setting up Server..."))}`);
|
|
68
68
|
await fse.copy(serverTemplate, serverDir);
|
|
69
69
|
|
|
70
|
+
// Rename _gitignore to .gitignore
|
|
71
|
+
const gitignorePath = path.join(serverDir, "_gitignore");
|
|
72
|
+
if (fse.existsSync(gitignorePath)) {
|
|
73
|
+
await fse.move(gitignorePath, path.join(serverDir, ".gitignore"));
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
// Rename _env.local to .env.local
|
|
77
|
+
const envPath = path.join(serverDir, "_env.local");
|
|
78
|
+
if (fse.existsSync(envPath)) {
|
|
79
|
+
await fse.move(envPath, path.join(serverDir, ".env.local"));
|
|
80
|
+
}
|
|
81
|
+
|
|
70
82
|
// Update server package.json name
|
|
71
83
|
const serverPkgPath = path.join(serverDir, "package.json");
|
|
72
84
|
const serverPkg = await fse.readJson(serverPkgPath);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Dependencies
|
|
2
|
+
node_modules
|
|
3
|
+
.pnp
|
|
4
|
+
.pnp.js
|
|
5
|
+
|
|
6
|
+
# Environment variables
|
|
7
|
+
.env
|
|
8
|
+
.env.local
|
|
9
|
+
.env.development.local
|
|
10
|
+
.env.test.local
|
|
11
|
+
.env.production.local
|
|
12
|
+
|
|
13
|
+
# Logs
|
|
14
|
+
npm-debug.log*
|
|
15
|
+
yarn-debug.log*
|
|
16
|
+
yarn-error.log*
|
|
17
|
+
|
|
18
|
+
# OS
|
|
19
|
+
.DS_Store
|
|
20
|
+
Thumbs.db
|