diff --git a/README.md b/README.md index b709dfb..094a7c9 100644 --- a/README.md +++ b/README.md @@ -90,7 +90,6 @@ export class GridConfigGenerator implements IConfigGenerator { ### Shared File The engine creates a `shared.json` file which holds all of the common files path and content, used in every sample application. These files are: * index.html -* polyfills.ts * styles.scss * .angular-cli.json * main.ts diff --git a/src/generators/SharedAssetsGenerator.ts b/src/generators/SharedAssetsGenerator.ts index 91d06df..ee4c24b 100644 --- a/src/generators/SharedAssetsGenerator.ts +++ b/src/generators/SharedAssetsGenerator.ts @@ -34,7 +34,6 @@ export class SharedAssetsGenerator { private _generateSharedAssets(args: SharedAssetsGeneratorArgs) { const INDEX_FILE_PATH = path.join(process.cwd(), (this.options.projectDir ?? ""), "src/index.html"); - const POLYPFILLS_FILE_PATH = path.join(process.cwd(), (this.options.projectDir ?? ""), "src/polyfills.ts"); let indexFile = fs.readFileSync(INDEX_FILE_PATH, "utf8"); let angularJsonFile = fs.readFileSync(args.angularJsonFilePath, "utf8"); @@ -42,7 +41,6 @@ export class SharedAssetsGenerator { let environmentFile = fs.readFileSync(ENVIRONMENT_FILE_PATH, "utf8"); let environmentProdFile = fs.readFileSync(ENVIRONMENT_PROD_FILE_PATH, "utf8"); let files = new Array(); - let polyfillsFile = fs.readFileSync(POLYPFILLS_FILE_PATH, "utf8"); let tsConfigFile = fs.readFileSync(TS_CONFIG_FILE_PATH, "utf8"); let tsConfigAppFile = fs.readFileSync(TS_APP_CONFIG_FILE_PATH, "utf8"); let stackblitzConfigFile = fs.readFileSync(STACKBLITZ_CONFIG_FILE_PATH, "utf8"); @@ -65,7 +63,6 @@ export class SharedAssetsGenerator { files.push(new LiveEditingFile(SAMPLE_ENVIRONMENTS_FOLDER + "environment.prod.ts", environmentProdFile)); } files.push(new LiveEditingFile(SAMPLE_SRC_FOLDER + "index.html", indexFile)); - files.push(new LiveEditingFile(SAMPLE_SRC_FOLDER + "polyfills.ts", polyfillsFile)); files.push(new LiveEditingFile(SAMPLE_SRC_FOLDER + args.stylesFileName, args.stylesFileContent)); files.push(new LiveEditingFile("angular.json", angularJsonFile)); files.push(new LiveEditingFile(SAMPLE_SRC_FOLDER + "main.ts", mainTsFile)); diff --git a/src/services/DependencyResolver.ts b/src/services/DependencyResolver.ts index e0de3b7..37571f5 100644 --- a/src/services/DependencyResolver.ts +++ b/src/services/DependencyResolver.ts @@ -34,30 +34,17 @@ const SHARED_DEPENDENCIES = [ "@angular/platform-browser-dynamic", "@angular/router", "rxjs", - "zone.js", "igniteui-angular", // needed for all samples because of styles.scss - "jszip", // dependency for igniteui-angular - - // For polyfills - "classlist.js", - "core-js", - "hammerjs", - "@types/hammerjs", - "intl", - "web-animations-js" + "jszip" // dependency for igniteui-angular ]; const DEFAULT_DEPENDENCIES = [ "@angular/animations", "@angular/forms", "@angular/router", - "classlist.js", - "hammerjs", - "web-animations-js", "jszip", "immediate", - "intl", "tslib", "sass" ]; @@ -124,7 +111,7 @@ export class DevDependencyResolver { for (let key in this._devDependencies) { if (key in SHARED_DEV_DEPENDENCIES) { let version = this._devDependencies[key]; - result[key] = version.replace("~", "").replace("^", ""); + result[key] = version.replace("~", ""); } } diff --git a/src/templates/angular.json.template b/src/templates/angular.json.template index 5aa667c..d577e46 100644 --- a/src/templates/angular.json.template +++ b/src/templates/angular.json.template @@ -27,9 +27,6 @@ "base": "dist/example-app", }, "index": "src/index.html", - "polyfills": [ - "src/polyfills.ts" - ], "tsConfig": "tsconfig.app.json", "inlineStyleLanguage": "scss", "assets": ["src/favicon.ico", "src/assets"], @@ -93,7 +90,6 @@ "builder": "@angular/build:karma", "options": { "main": "src/test.ts", - "polyfills": "src/polyfills.ts", "tsConfig": "tsconfig.spec.json", "karmaConfig": "karma.conf.js", "inlineStyleLanguage": "scss", diff --git a/src/templates/environment.ts.template b/src/templates/environment.ts.template index 66998ae..cde8b82 100644 --- a/src/templates/environment.ts.template +++ b/src/templates/environment.ts.template @@ -5,12 +5,3 @@ export const environment = { production: false, }; - -/* - * For easier debugging in development mode, you can import the following file - * to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`. - * - * This import should be commented out in production mode because it will have a negative impact - * on performance if an error is thrown. - */ -// import 'zone.js/plugins/zone-error'; // Included with Angular CLI. diff --git a/src/templates/package.json.template b/src/templates/package.json.template index 3305b20..570a765 100644 --- a/src/templates/package.json.template +++ b/src/templates/package.json.template @@ -20,10 +20,7 @@ "@angular/platform-browser-dynamic": "^21.0.0", "@angular/router": "^21.0.0", "@juggle/resize-observer": "^3.3.1", - "@types/hammerjs": "^2.0.39", "@microsoft/signalr": "^8.0.7", - "core-js": "2.6.2", - "hammerjs": "^2.0.8", "igniteui-angular": "^21.0.0", "igniteui-angular-charts": "^20.2.0", "igniteui-angular-core": "^20.2.0", @@ -35,12 +32,10 @@ "igniteui-dockmanager": "^1.17.0", "igniteui-webcomponents": "^6.2.0", "immediate": "^3.2.3", - "intl": "^1.2.5", "rxjs": "^7.8.2", "tailwindcss": "^4.1.10", "@tailwindcss/postcss": "^4.1.10", - "tslib": "^2.6.1", - "zone.js": "~0.15.0"{dependencies} + "tslib": "^2.6.1"{dependencies} }, "devDependencies": { "@angular/build": "^21.0.0", diff --git a/src/templates/tsconfig.app.json.template b/src/templates/tsconfig.app.json.template index ff396d4..84f1f99 100644 --- a/src/templates/tsconfig.app.json.template +++ b/src/templates/tsconfig.app.json.template @@ -5,6 +5,6 @@ "outDir": "./out-tsc/app", "types": [] }, - "files": ["src/main.ts", "src/polyfills.ts"], + "files": ["src/main.ts"], "include": ["src/**/*.d.ts"] }