Rename .gitignore to avoid xplat problems

This commit is contained in:
Justin Spahr-Summers 2024-11-25 12:26:32 -06:00
commit c301f34a62
No known key found for this signature in database
2 changed files with 8 additions and 2 deletions

View file

@ -144,7 +144,13 @@ async function createServer(directory: string, options: any = {}) {
if (!stats.isFile()) continue;
const targetPath = path.join(directory, file.replace(".ejs", ""));
// Special handling for dot files - remove the leading dot from template name
const targetPath = path.join(
directory,
file.startsWith('dotfile-')
? `.${file.slice(8).replace('.ejs', '')}`
: file.replace('.ejs', '')
);
const targetDir = path.dirname(targetPath);
// Create subdirectories if needed

View file

@ -0,0 +1,4 @@
node_modules/
build/
*.log
.env*