From d06c2dbd75e12bdd87f5ca3c78d22ef7d437a7d0 Mon Sep 17 00:00:00 2001 From: jlukic Date: Thu, 12 Feb 2015 17:52:57 -0500 Subject: [PATCH] Remove mkdir on node_modules, add logs --- tasks/config/project/install.js | 1 - tasks/install.js | 15 ++++++--------- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/tasks/config/project/install.js b/tasks/config/project/install.js index 8ed903b60..9a7f2bc16 100644 --- a/tasks/config/project/install.js +++ b/tasks/config/project/install.js @@ -233,7 +233,6 @@ module.exports = { definitions : './src/definitions', gulpFile : './gulpfile.js', lessImport : './src/semantic.less', - modules : './node_modules/', site : './src/_site', tasks : './tasks', themeConfig : './src/theme.config.example', diff --git a/tasks/install.js b/tasks/install.js index 17f3813c0..7346a2149 100644 --- a/tasks/install.js +++ b/tasks/install.js @@ -235,7 +235,6 @@ module.exports = function () { installPaths = extend(false, {}, installPaths, { definition : folders.definitions, lessImport : folders.lessImport, - modules : folders.modules, tasks : folders.tasks, theme : folders.themes, themeImport : folders.themeImport @@ -260,21 +259,20 @@ module.exports = function () { mkdirp.sync(installFolder); mkdirp.sync(installPaths.definition); mkdirp.sync(installPaths.theme); - mkdirp.sync(installPaths.modules); mkdirp.sync(installPaths.tasks); } catch(error) { console.error('NPM does not have permissions to create folders at your specified path. Adjust your folders permissions and run "npm install" again'); } - // copy gulp node_modules - console.info('Copying definitions to ', installPaths.definition); + console.log('Installing to \033[92m' + answers.semanticRoot + '\033[0m'); + + console.info('Copying UI definitions'); wrench.copyDirSyncRecursive(source.definitions, installPaths.definition, settings.wrench.install); wrench.copyDirSyncRecursive(source.themes, installPaths.theme, settings.wrench.install); - // Using peer dependencies - // console.info('Copying build tools', installPaths.tasks); - // wrench.copyDirSyncRecursive(source.tasks, installPaths.tasks, settings.wrench.install); + console.info('Copying gulp tasks'); + wrench.copyDirSyncRecursive(source.tasks, installPaths.tasks, settings.wrench.install); // copy theme import console.info('Adding theme files'); @@ -294,7 +292,6 @@ module.exports = function () { .pipe(gulp.dest(installFolder)) ; - } /*-------------- @@ -372,7 +369,7 @@ module.exports = function () { // Completion Message if(installFolder) { - console.log('Install complete! Navigate to \033[92m' + installFolder + '\033[0m and run "\033[92mgulp build\033[0m" to build'); + console.log('Install complete! Navigate to \033[92m' + answers.semanticRoot + '\033[0m and run "\033[92mgulp build\033[0m" to build'); } else { console.log('');