Browse Source

Remove mkdir on node_modules, add logs

pull/1785/head
jlukic 10 years ago
parent
commit
d06c2dbd75
2 changed files with 6 additions and 10 deletions
  1. 1
      tasks/config/project/install.js
  2. 15
      tasks/install.js

1
tasks/config/project/install.js

@ -233,7 +233,6 @@ module.exports = {
definitions : './src/definitions', definitions : './src/definitions',
gulpFile : './gulpfile.js', gulpFile : './gulpfile.js',
lessImport : './src/semantic.less', lessImport : './src/semantic.less',
modules : './node_modules/',
site : './src/_site', site : './src/_site',
tasks : './tasks', tasks : './tasks',
themeConfig : './src/theme.config.example', themeConfig : './src/theme.config.example',

15
tasks/install.js

@ -235,7 +235,6 @@ module.exports = function () {
installPaths = extend(false, {}, installPaths, { installPaths = extend(false, {}, installPaths, {
definition : folders.definitions, definition : folders.definitions,
lessImport : folders.lessImport, lessImport : folders.lessImport,
modules : folders.modules,
tasks : folders.tasks, tasks : folders.tasks,
theme : folders.themes, theme : folders.themes,
themeImport : folders.themeImport themeImport : folders.themeImport
@ -260,21 +259,20 @@ module.exports = function () {
mkdirp.sync(installFolder); mkdirp.sync(installFolder);
mkdirp.sync(installPaths.definition); mkdirp.sync(installPaths.definition);
mkdirp.sync(installPaths.theme); mkdirp.sync(installPaths.theme);
mkdirp.sync(installPaths.modules);
mkdirp.sync(installPaths.tasks); mkdirp.sync(installPaths.tasks);
} }
catch(error) { 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'); 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.log('Installing to \033[92m' + answers.semanticRoot + '\033[0m');
console.info('Copying definitions to ', installPaths.definition); console.info('Copying UI definitions');
wrench.copyDirSyncRecursive(source.definitions, installPaths.definition, settings.wrench.install); wrench.copyDirSyncRecursive(source.definitions, installPaths.definition, settings.wrench.install);
wrench.copyDirSyncRecursive(source.themes, installPaths.theme, settings.wrench.install); wrench.copyDirSyncRecursive(source.themes, installPaths.theme, settings.wrench.install);
// Using peer dependencies console.info('Copying gulp tasks');
// console.info('Copying build tools', installPaths.tasks); wrench.copyDirSyncRecursive(source.tasks, installPaths.tasks, settings.wrench.install);
// wrench.copyDirSyncRecursive(source.tasks, installPaths.tasks, settings.wrench.install);
// copy theme import // copy theme import
console.info('Adding theme files'); console.info('Adding theme files');
@ -294,7 +292,6 @@ module.exports = function () {
.pipe(gulp.dest(installFolder)) .pipe(gulp.dest(installFolder))
; ;
} }
/*-------------- /*--------------
@ -372,7 +369,7 @@ module.exports = function () {
// Completion Message // Completion Message
if(installFolder) { 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 { else {
console.log(''); console.log('');

|||||||
100:0
Loading…
Cancel
Save