swap path -> util.joinPath

This commit is contained in:
Todd Baur 2017-03-30 03:13:48 +09:00
parent 20baf5ee9f
commit a66f002a18
1 changed files with 1 additions and 2 deletions

View File

@ -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);