diff --git a/lib/start.js b/lib/start.js index 15740e2..e834c68 100644 --- a/lib/start.js +++ b/lib/start.js @@ -469,10 +469,19 @@ Start.fetchLocalStarter = function(options) { return q.promise; } - log.info('\nCopying files to www from:'.bold, localStarterPath); + // for v2, copy both 'src' and 'www' folder to target path + if (options.v2) { + log.info('\nCopying files to project from:'.bold, localStarterPath); + + shelljs.cp('-Rf', path.join(localStarterPath, '*'), options.targetPath); + } + // for v1, only focus on 'www' folder + else { + log.info('\nCopying files to www folder from:'.bold, localStarterPath); - // Move the content of this repo into the www folder - shelljs.cp('-Rf', path.join(localStarterPath, '*'), path.join(options.targetPath, 'www')); + // Move the content of this repo into the www folder + shelljs.cp('-Rf', path.join(localStarterPath, '*'), path.join(options.targetPath, 'www')); + } q.resolve(); } catch (e) {