diff --git a/generators/application/index.ts b/generators/application/index.ts index 1d780fd..05d0d44 100644 --- a/generators/application/index.ts +++ b/generators/application/index.ts @@ -75,6 +75,7 @@ export = class extends HtmlGenerator { install() { // Install the web + this.spawnCommandSync('gulp', ['purge']); this.spawnCommandSync('gulp', ['install']); // Try to populate settings diff --git a/generators/converter/index.ts b/generators/converter/index.ts index 96ce193..2ca053c 100644 --- a/generators/converter/index.ts +++ b/generators/converter/index.ts @@ -40,6 +40,7 @@ export = class extends HtmlGenerator { install() { this.destinationRoot(this.packageFolder); if (this.shouldInstall) { + this.spawnCommandSync('gulp', ['purge']); this.spawnCommandSync('gulp', ['install']); } this.spawnCommandSync('gulp', ['build']); diff --git a/generators/dataSource/index.ts b/generators/dataSource/index.ts index 3d4d242..72668d3 100644 --- a/generators/dataSource/index.ts +++ b/generators/dataSource/index.ts @@ -38,6 +38,7 @@ export = class extends HtmlGenerator { install() { this.destinationRoot(this.packageFolder); if (this.shouldInstall) { + this.spawnCommandSync('gulp', ['purge']); this.spawnCommandSync('gulp', ['install']); } this.spawnCommandSync('gulp', ['build']); diff --git a/generators/executionView/index.ts b/generators/executionView/index.ts index 6422556..94633a1 100644 --- a/generators/executionView/index.ts +++ b/generators/executionView/index.ts @@ -34,6 +34,7 @@ export = class extends HtmlGenerator { install() { this.destinationRoot(this.packageFolder); if (this.shouldInstall) { + this.spawnCommandSync('gulp', ['purge']); this.spawnCommandSync('gulp', ['install']); } this.spawnCommandSync('gulp', ['build']); diff --git a/generators/html.ts b/generators/html.ts index 714166c..022cead 100644 --- a/generators/html.ts +++ b/generators/html.ts @@ -89,11 +89,13 @@ export class HtmlGenerator extends Generator { // Install in the package this.destinationRoot(packagePath); + this.spawnCommandSync('gulp', ['purge']); let ls = this.spawnCommandSync('gulp', ['install']); // Install in all apps this.webAppFoldersPath.forEach((appFolderPath) => { this.destinationRoot(appFolderPath); + this.spawnCommandSync('gulp', ['purge']); this.spawnCommandSync('gulp', ['install']); }); diff --git a/generators/widget/index.ts b/generators/widget/index.ts index abe544d..e2c54c2 100644 --- a/generators/widget/index.ts +++ b/generators/widget/index.ts @@ -43,6 +43,7 @@ export = class extends HtmlGenerator { install() { this.destinationRoot(this.packageFolder); if (this.shouldInstall) { + this.spawnCommandSync('gulp', ['purge']); this.spawnCommandSync('gulp', ['install']); } this.spawnCommandSync('gulp', ['build']); diff --git a/generators/wizard/index.ts b/generators/wizard/index.ts index 7f96423..1134c35 100644 --- a/generators/wizard/index.ts +++ b/generators/wizard/index.ts @@ -42,6 +42,7 @@ export = class extends HtmlGenerator { install() { this.destinationRoot(this.packageFolder); if (this.shouldInstall) { + this.spawnCommandSync('gulp', ['purge']); this.spawnCommandSync('gulp', ['install']); } this.spawnCommandSync('gulp', ['build']); diff --git a/package.json b/package.json index f4ab404..0210ebe 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@criticalmanufacturing/generator-html", - "version": "7.1.0-3", + "version": "7.1.0-4", "description": "CMF HTML GUI Scaffolding", "files": [ "generators/*.js",