create-express-dex 0.1.1 → 0.1.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/bin/index.js +6 -1
- package/package.json +1 -1
- package/templates/js/src/controllers/.gitkeep +0 -0
- package/templates/js/src/db/.gitkeep +0 -0
- package/templates/js/src/middlewares/.gitkeep +0 -0
- package/templates/js/src/models/.gitkeep +0 -0
- package/templates/js/src/routes/.gitkeep +0 -0
- package/templates/js/src/utils/.gitkeep +0 -0
- package/templates/ts/src/controllers/.gitkeep +0 -0
- package/templates/ts/src/db/.gitkeep +0 -0
- package/templates/ts/src/middlewares/.gitkeep +0 -0
- package/templates/ts/src/models/.gitkeep +0 -0
- package/templates/ts/src/routes/.gitkeep +0 -0
- package/templates/ts/src/utils/.gitkeep +0 -0
package/bin/index.js
CHANGED
|
@@ -62,7 +62,12 @@ async function init() {
|
|
|
62
62
|
console.log(chalk.blue(`\nScaffolding project in ${targetDir}...`));
|
|
63
63
|
// Copy template
|
|
64
64
|
try {
|
|
65
|
-
await fs.copy(templateDir, targetDir
|
|
65
|
+
await fs.copy(templateDir, targetDir, {
|
|
66
|
+
filter: (src) => {
|
|
67
|
+
// Exclude .gitkeep files
|
|
68
|
+
return !src.endsWith('.gitkeep');
|
|
69
|
+
}
|
|
70
|
+
});
|
|
66
71
|
if (await fs.pathExists(path.join(targetDir, "_gitignore"))) {
|
|
67
72
|
await fs.move(path.join(targetDir, "_gitignore"), path.join(targetDir, ".gitignore"));
|
|
68
73
|
}
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|