mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-11 06:25:57 +00:00
when installing template mv dot.gitignore -> .gitignore if it exists
This commit is contained in:
parent
53cd27b87d
commit
f28c86666d
@ -50,6 +50,9 @@ class TemplateGenerator {
|
||||
installTemplate(templatePath, name, installPackages) {
|
||||
utils.cd(templatePath);
|
||||
utils.sed('package.json', '%APP_NAME%', name);
|
||||
if (fs.existsSync('dot.gitignore')) {
|
||||
fs.moveSync('dot.gitignore', '.gitignore');
|
||||
}
|
||||
|
||||
if (fs.existsSync('dot.gitignore')) {
|
||||
fs.moveSync('dot.gitignore', '.gitignore');
|
||||
|
Loading…
x
Reference in New Issue
Block a user