diff --git a/src/generators/default-content/index.js b/src/generators/default-content/index.js index 944ccc6..126fbf3 100644 --- a/src/generators/default-content/index.js +++ b/src/generators/default-content/index.js @@ -46,5 +46,10 @@ export function run(templateData) { ); replaceText(`${getDestinationPath(templateData.hyphenatedName)}/LICENSE`, { year: new Date().getFullYear().toString() }); + copyFile( + `${__dirname}/templates/configured/_gitignore`, + `${getDestinationPath(templateData.hyphenatedName)}/.gitignore` + ); + copyFilesInDir(`${__dirname}/templates/static`, getDestinationPath(templateData.hyphenatedName)); } diff --git a/src/generators/default-content/templates/static/.gitignore b/src/generators/default-content/templates/configured/_gitignore similarity index 100% rename from src/generators/default-content/templates/static/.gitignore rename to src/generators/default-content/templates/configured/_gitignore diff --git a/src/generators/test-visual-diff/index.js b/src/generators/test-visual-diff/index.js index ba08914..cd379c8 100644 --- a/src/generators/test-visual-diff/index.js +++ b/src/generators/test-visual-diff/index.js @@ -6,7 +6,7 @@ export function run(templateData) { `${getDestinationPath(templateData.hyphenatedName)}/README.md` ); mergeText( - `${__dirname}/templates/.gitignore`, + `${__dirname}/templates/_gitignore`, `${getDestinationPath(templateData.hyphenatedName)}/.gitignore` ); diff --git a/src/generators/test-visual-diff/templates/.gitignore b/src/generators/test-visual-diff/templates/_gitignore similarity index 100% rename from src/generators/test-visual-diff/templates/.gitignore rename to src/generators/test-visual-diff/templates/_gitignore