Browse Source

More name consolidation #2101

pull/2136/head
jlukic 9 years ago
parent
commit
588d785edf
2 changed files with 9 additions and 15 deletions
  1. 12
      tasks/config/project/install.js
  2. 12
      tasks/install.js

12
tasks/config/project/install.js

@ -730,26 +730,20 @@ module.exports = {
/* Copy Install Folders */
wrench: {
// copy during npm update (default theme / definition)
update: {
// overwrite existing files update & install (default theme / definition)
overwrite: {
forceDelete : true,
excludeHiddenUnix : true,
preserveFiles : false
},
// only create files that don't exist (site theme)
// only create files that don't exist (site theme update)
merge: {
forceDelete : false,
excludeHiddenUnix : true,
preserveFiles : true
}
// copy during first npm install
install: {
forceDelete : true,
excludeHiddenUnix : true,
preserveFiles : false
},
}
}

12
tasks/install.js

@ -104,13 +104,13 @@ module.exports = function () {
console.log('Updating Semantic UI from ' + currentConfig.version + ' to ' + release.version);
console.info('Updating ui definitions...');
wrench.copyDirSyncRecursive(source.definitions, updatePaths.definition, settings.wrench.update);
wrench.copyDirSyncRecursive(source.definitions, updatePaths.definition, settings.wrench.overwrite);
console.info('Updating default theme...');
wrench.copyDirSyncRecursive(source.themes, updatePaths.theme, settings.wrench.update);
wrench.copyDirSyncRecursive(source.themes, updatePaths.theme, settings.wrench.overwrite);
console.info('Updating tasks...');
wrench.copyDirSyncRecursive(source.tasks, updatePaths.tasks, settings.wrench.update);
wrench.copyDirSyncRecursive(source.tasks, updatePaths.tasks, settings.wrench.overwrite);
console.info('Updating gulpfile.js');
gulp.src(source.userGulpFile)
@ -268,11 +268,11 @@ module.exports = function () {
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);
wrench.copyDirSyncRecursive(source.definitions, installPaths.definition, settings.wrench.overwrite);
wrench.copyDirSyncRecursive(source.themes, installPaths.theme, settings.wrench.overwrite);
console.info('Copying gulp tasks');
wrench.copyDirSyncRecursive(source.tasks, installPaths.tasks, settings.wrench.install);
wrench.copyDirSyncRecursive(source.tasks, installPaths.tasks, settings.wrench.overwrite);
// copy theme import
console.info('Adding theme files');

Loading…
Cancel
Save