mirror of
https://github.com/embarklabs/embark.git
synced 2025-02-19 17:14:40 +00:00
Merge pull request #699 from embark-framework/3_1_0_templates-gitignore-2
3_1_0 template .gitignore — round 2
This commit is contained in:
commit
e7e7b87881
@ -1 +0,0 @@
|
|||||||
!templates/**/.gitignore
|
|
@ -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);
|
||||||
|
@ -23,6 +23,10 @@ function move(){
|
|||||||
return fs.move.apply(fs.move, arguments);
|
return fs.move.apply(fs.move, arguments);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function moveSync() {
|
||||||
|
return fs.moveSync.apply(fs.moveSync, arguments);
|
||||||
|
}
|
||||||
|
|
||||||
function appendFileSync() {
|
function appendFileSync() {
|
||||||
return fs.appendFileSync.apply(fs.writeFileSync, arguments);
|
return fs.appendFileSync.apply(fs.writeFileSync, arguments);
|
||||||
}
|
}
|
||||||
@ -92,6 +96,7 @@ module.exports = {
|
|||||||
copy,
|
copy,
|
||||||
copySync,
|
copySync,
|
||||||
move,
|
move,
|
||||||
|
moveSync,
|
||||||
readFile,
|
readFile,
|
||||||
readFileSync,
|
readFileSync,
|
||||||
appendFileSync,
|
appendFileSync,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user