mirror of https://github.com/embarklabs/embark.git
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…
Reference in New Issue