swap path -> util.joinPath
This commit is contained in:
parent
20baf5ee9f
commit
a66f002a18
|
@ -1,5 +1,4 @@
|
||||||
var fs = require('../core/fs.js');
|
var fs = require('../core/fs.js');
|
||||||
var path = require('path');
|
|
||||||
var utils = require('../utils/utils.js');
|
var utils = require('../utils/utils.js');
|
||||||
|
|
||||||
var TemplateGenerator = function(templateName) {
|
var TemplateGenerator = function(templateName) {
|
||||||
|
@ -9,7 +8,7 @@ var TemplateGenerator = function(templateName) {
|
||||||
TemplateGenerator.prototype.generate = function(destinationFolder, name) {
|
TemplateGenerator.prototype.generate = function(destinationFolder, name) {
|
||||||
var templatePath = fs.embarkPath(this.templateName);
|
var templatePath = fs.embarkPath(this.templateName);
|
||||||
console.log('Initializing Embark Template....'.green);
|
console.log('Initializing Embark Template....'.green);
|
||||||
var fspath = path.join(destinationFolder, name);
|
var fspath = utils.joinPath(destinationFolder, name);
|
||||||
|
|
||||||
fs.copySync(templatePath, fspath);
|
fs.copySync(templatePath, fspath);
|
||||||
utils.cd(fspath);
|
utils.cd(fspath);
|
||||||
|
|
Loading…
Reference in New Issue