mirror of
https://github.com/embarklabs/embark.git
synced 2025-02-18 16:46:38 +00:00
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) {
|
TemplateGenerator.prototype.generate = function(destinationFolder, name) {
|
||||||
var templatePath = js.embarkPath(this.templateName);
|
var templatePath = fs.embarkPath(this.templateName);
|
||||||
console.log('Initializing Embark Template....'.green);
|
console.log('Initializing Embark Template....'.green);
|
||||||
|
|
||||||
fs.copySync(templatePath, destinationFolder + name);
|
fs.copySync(templatePath, destinationFolder + name);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user