create-crm-tmp 1.0.1 → 1.0.2
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/bin/create-crm-tmp.js +57 -1
- package/package.json +1 -1
package/bin/create-crm-tmp.js
CHANGED
|
@@ -78,12 +78,68 @@ CRON_SECRET="" #openssl rand -base64 32
|
|
|
78
78
|
fs.writeFileSync(envExamplePath, envExample);
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
+
const gitIgnoreExemplePath = path.join(targetDir, ".gitignore");
|
|
82
|
+
if (!fs.existsSync(gitIgnoreExemplePath)) {
|
|
83
|
+
const gitIgnore = `# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
|
|
84
|
+
|
|
85
|
+
# dependencies
|
|
86
|
+
/node_modules
|
|
87
|
+
/.pnp
|
|
88
|
+
.pnp.*
|
|
89
|
+
.yarn/*
|
|
90
|
+
!.yarn/patches
|
|
91
|
+
!.yarn/plugins
|
|
92
|
+
!.yarn/releases
|
|
93
|
+
!.yarn/versions
|
|
94
|
+
|
|
95
|
+
# testing
|
|
96
|
+
/coverage
|
|
97
|
+
|
|
98
|
+
# next.js
|
|
99
|
+
/.next/
|
|
100
|
+
/out/
|
|
101
|
+
|
|
102
|
+
# production
|
|
103
|
+
/build
|
|
104
|
+
|
|
105
|
+
# misc
|
|
106
|
+
.DS_Store
|
|
107
|
+
*.pem
|
|
108
|
+
|
|
109
|
+
# debug
|
|
110
|
+
npm-debug.log*
|
|
111
|
+
yarn-debug.log*
|
|
112
|
+
yarn-error.log*
|
|
113
|
+
.pnpm-debug.log*
|
|
114
|
+
|
|
115
|
+
# env files (can opt-in for committing if needed)
|
|
116
|
+
.env*
|
|
117
|
+
|
|
118
|
+
# vercel
|
|
119
|
+
.vercel
|
|
120
|
+
|
|
121
|
+
# typescript
|
|
122
|
+
*.tsbuildinfo
|
|
123
|
+
next-env.d.ts
|
|
124
|
+
|
|
125
|
+
/src/generated/prisma
|
|
126
|
+
|
|
127
|
+
/src/generated/prisma
|
|
128
|
+
|
|
129
|
+
/generated/prisma
|
|
130
|
+
|
|
131
|
+
scripts/
|
|
132
|
+
# vercel.json`;
|
|
133
|
+
}
|
|
134
|
+
|
|
81
135
|
console.log(chalk.green("✅ Projet créé avec succès !\n"));
|
|
82
136
|
console.log(chalk.yellow("📝 Prochaines étapes :\n"));
|
|
83
137
|
console.log(chalk.white(` cd ${projectName}`));
|
|
84
138
|
console.log(chalk.white(" pnpm install"));
|
|
85
139
|
console.log(chalk.white(" # Configurez votre fichier .env"));
|
|
86
|
-
console.log(
|
|
140
|
+
console.log(
|
|
141
|
+
chalk.white(" # Migrer la base de données et générer le schéma Prisma")
|
|
142
|
+
);
|
|
87
143
|
console.log(chalk.white(" pnpm dev\n"));
|
|
88
144
|
}
|
|
89
145
|
|