Browse Source

NPM Update should only update default theme folder (not whole theme path) #2101

pull/2136/head
jlukic 10 years ago
parent
commit
3d2fec4461
2 changed files with 2 additions and 9 deletions
  1. 7
      tasks/config/project/install.js
  2. 4
      tasks/install.js

7
tasks/config/project/install.js

@ -743,13 +743,6 @@ module.exports = {
preserveFiles : false
},
// copy for node_modules
modules: {
forceDelete : true,
excludeHiddenUnix : true,
preserveFiles : false
},
// copy for site theme
site: {
forceDelete : false,

4
tasks/install.js

@ -92,7 +92,7 @@ module.exports = function () {
themeImport : path.join(updateFolder, folders.themeImport),
definition : path.join(currentConfig.paths.source.definitions),
site : path.join(currentConfig.paths.source.site),
theme : path.join(currentConfig.paths.source.themes)
theme : path.join(currentConfig.paths.source.themes, folders.defaultTheme)
}
;
@ -126,7 +126,7 @@ module.exports = function () {
;
console.info('Adding new site theme files...');
wrench.copyDirSyncRecursive(source.site, updatePaths.site, settings.wrench.site);
wrench.copyDirSyncRecursive(source.site, updatePaths.site, settings.wrench.merge);
console.info('Updating version...');

Loading…
Cancel
Save