mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-11 22:44:45 +00:00
when installing template mv dot.gitignore -> .gitignore if it exists
This commit is contained in:
parent
2c852a22c1
commit
a8f8acb7ff
@ -14,6 +14,9 @@ class TemplateGenerator {
|
|||||||
fs.copySync(templatePath, fspath);
|
fs.copySync(templatePath, fspath);
|
||||||
utils.cd(fspath);
|
utils.cd(fspath);
|
||||||
utils.sed('package.json', '%APP_NAME%', name);
|
utils.sed('package.json', '%APP_NAME%', name);
|
||||||
|
if (fs.existsSync('dot.gitignore')) {
|
||||||
|
fs.moveSync('dot.gitignore', '.gitignore');
|
||||||
|
}
|
||||||
|
|
||||||
if (name === 'embark_demo') {
|
if (name === 'embark_demo') {
|
||||||
console.log(__('Installing packages...').green);
|
console.log(__('Installing packages...').green);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user