give templates a common dot.gitignore
if a template (built-in, downloaded or otherwise) doesn't supply its own dot.gitignore file then templates/dot.gitignore will be used also, update dot.gitignore to ignore chains.json by default
This commit is contained in:
parent
dfd741ee8a
commit
7207108aaa
|
@ -107,10 +107,8 @@ class TemplateGenerator {
|
||||||
utils.sed('package.json', '%APP_NAME%', name);
|
utils.sed('package.json', '%APP_NAME%', name);
|
||||||
if (fs.existsSync('dot.gitignore')) {
|
if (fs.existsSync('dot.gitignore')) {
|
||||||
fs.moveSync('dot.gitignore', '.gitignore');
|
fs.moveSync('dot.gitignore', '.gitignore');
|
||||||
}
|
} else if (!fs.existsSync('.gitignore')) {
|
||||||
|
fs.copySync(fs.embarkPath('templates/dot.gitignore'), '.gitignore');
|
||||||
if (fs.existsSync('dot.gitignore')) {
|
|
||||||
fs.moveSync('dot.gitignore', '.gitignore');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (installPackages) {
|
if (installPackages) {
|
||||||
|
|
|
@ -1,6 +0,0 @@
|
||||||
.embark
|
|
||||||
config/production/password
|
|
||||||
config/livenet/password
|
|
||||||
coverage
|
|
||||||
dist
|
|
||||||
node_modules
|
|
|
@ -1,4 +1,5 @@
|
||||||
.embark
|
.embark
|
||||||
|
chains.json
|
||||||
config/production/password
|
config/production/password
|
||||||
config/livenet/password
|
config/livenet/password
|
||||||
coverage
|
coverage
|
|
@ -1,6 +0,0 @@
|
||||||
.embark
|
|
||||||
config/production/password
|
|
||||||
config/livenet/password
|
|
||||||
coverage
|
|
||||||
dist
|
|
||||||
node_modules
|
|
Loading…
Reference in New Issue