mirror of https://github.com/embarklabs/embark.git
refactor to use method to determine app root path, instead of constantly using relative paths
This commit is contained in:
parent
73a536c52e
commit
3890b4a38e
|
@ -6,7 +6,7 @@ var TemplateGenerator = function(templateName) {
|
|||
};
|
||||
|
||||
TemplateGenerator.prototype.generate = function(destinationFolder, name) {
|
||||
var templatePath = js.embarkPath(this.templateName);
|
||||
var templatePath = fs.embarkPath(this.templateName);
|
||||
console.log('Initializing Embark Template....'.green);
|
||||
|
||||
fs.copySync(templatePath, destinationFolder + name);
|
||||
|
|
Loading…
Reference in New Issue