Skip to content

Commit

Permalink
fix: special name for .gitignore so NPM includes it (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
dlockhart authored Dec 14, 2020
1 parent d1556d6 commit 0d92b2b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/generators/default-content/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
2 changes: 1 addition & 1 deletion src/generators/test-visual-diff/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export function run(templateData) {
`${getDestinationPath(templateData.hyphenatedName)}/README.md`
);
mergeText(
`${__dirname}/templates/.gitignore`,
`${__dirname}/templates/_gitignore`,
`${getDestinationPath(templateData.hyphenatedName)}/.gitignore`
);

Expand Down

0 comments on commit 0d92b2b

Please sign in to comment.