Skip to content

Commit 6cb175a

Browse files
committed
fix(igx-ts-legacy): update the base template
1 parent 64f2735 commit 6cb175a

24 files changed

Lines changed: 152 additions & 168 deletions

packages/igx-templates/igx-ts-legacy/projects/_base/files/__dot__editorconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ trim_trailing_whitespace = true
1010

1111
[*.ts]
1212
quote_type = single
13+
ij_typescript_use_double_quotes = false
1314

1415
[*.md]
1516
max_line_length = off

packages/igx-templates/igx-ts-legacy/projects/_base/files/__dot__gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ yarn-error.log
3636
/libpeerconnection.log
3737
testem.log
3838
/typings
39+
__screenshots__/
3940

4041
# System files
4142
.DS_Store

packages/igx-templates/igx-ts-legacy/projects/_base/files/angular.json

Lines changed: 31 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@
1313
"@schematics/angular:application": {
1414
"strict": true,
1515
"standalone": false
16+
},
17+
"@schematics/angular:directive": {
18+
"standalone": false
19+
},
20+
"@schematics/angular:pipe": {
21+
"standalone": false
1622
}
1723
},
1824
"root": "",
@@ -25,7 +31,9 @@
2531
"outputPath": "dist/<%=dashName%>",
2632
"index": "src/index.html",
2733
"browser": "src/main.ts",
28-
"polyfills": ["src/polyfills.ts"],
34+
"polyfills": [
35+
"zone.js"
36+
],
2937
"tsConfig": "tsconfig.app.json",
3038
"inlineStyleLanguage": "scss",
3139
"assets": [
@@ -39,7 +47,9 @@
3947
"./node_modules/hammerjs/hammer.min.js"
4048
],
4149
"stylePreprocessorOptions": {
42-
"includePaths": ["node_modules"]
50+
"includePaths": [
51+
"node_modules"
52+
]
4353
}
4454
},
4555
"configurations": {
@@ -56,19 +66,19 @@
5666
"maximumError": "2mb"
5767
}
5868
],
59-
"fileReplacements": [
60-
{
61-
"replace": "src/environments/environment.ts",
62-
"with": "src/environments/environment.prod.ts"
63-
}
64-
],
6569
"outputHashing": "all"
6670
},
6771
"development": {
6872
"optimization": false,
6973
"extractLicenses": false,
7074
"sourceMap": true,
71-
"namedChunks": true
75+
"namedChunks": true,
76+
"fileReplacements": [
77+
{
78+
"replace": "src/environments/environment.ts",
79+
"with": "src/environments/environment.development.ts"
80+
}
81+
]
7282
}
7383
},
7484
"defaultConfiguration": "production"
@@ -86,39 +96,40 @@
8696
"defaultConfiguration": "development"
8797
},
8898
"extract-i18n": {
89-
"builder": "@angular-devkit/build-angular:extract-i18n",
99+
"builder": "@angular/build:extract-i18n",
90100
"options": {
91101
"buildTarget": "<%=dashName%>:build"
92102
}
93103
},
94104
"test": {
95-
"builder": "@angular-devkit/build-angular:karma",
105+
"builder": "@angular/build:karma",
96106
"options": {
97107
"polyfills": [
98108
"zone.js",
99109
"zone.js/testing"
100110
],
101111
"tsConfig": "tsconfig.spec.json",
102112
"inlineStyleLanguage": "scss",
113+
"assets": [
114+
"src/favicon.ico",
115+
"src/assets"
116+
],
103117
"styles": [
104118
"src/styles.scss"
105119
],
106120
"scripts": [
107121
"./node_modules/hammerjs/hammer.min.js"
108122
],
109-
"assets": [
110-
"src/favicon.ico",
111-
"src/assets"
112-
],
113123
"stylePreprocessorOptions": {
114-
"includePaths": ["node_modules"]
124+
"includePaths": [
125+
"node_modules"
126+
]
115127
}
116128
}
117129
},
118130
"lint": {
119131
"builder": "@angular-eslint/builder:lint",
120132
"options": {
121-
"eslintConfig": "eslint.config.js",
122133
"lintFilePatterns": [
123134
"src/**/*.ts",
124135
"src/**/*.html"
@@ -129,6 +140,8 @@
129140
}
130141
},
131142
"cli": {
132-
"schematicCollections": ["@angular-eslint/schematics"]
143+
"schematicCollections": [
144+
"angular-eslint"
145+
]
133146
}
134147
}

packages/igx-templates/igx-ts-legacy/projects/_base/files/package.json

Lines changed: 25 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,28 @@
99
"test": "node --max-old-space-size=8192 ./node_modules/@angular/cli/bin/ng test",
1010
"lint": "ng lint"
1111
},
12+
"prettier": {
13+
"printWidth": 100,
14+
"singleQuote": true,
15+
"overrides": [
16+
{
17+
"files": "*.html",
18+
"options": {
19+
"parser": "angular"
20+
}
21+
}
22+
]
23+
},
1224
"private": true,
1325
"dependencies": {
14-
"@angular/animations": "~21.1.5",
15-
"@angular/common": "~21.1.5",
16-
"@angular/compiler": "~21.1.5",
17-
"@angular/core": "~21.1.5",
18-
"@angular/forms": "~21.1.5",
19-
"@angular/platform-browser": "~21.1.5",
20-
"@angular/platform-browser-dynamic": "~21.1.5",
21-
"@angular/router": "~21.1.5",
26+
"@angular/animations": "~21.2.0",
27+
"@angular/common": "~21.2.0",
28+
"@angular/compiler": "~21.2.0",
29+
"@angular/core": "~21.2.0",
30+
"@angular/forms": "~21.2.0",
31+
"@angular/platform-browser": "~21.2.0",
32+
"@angular/platform-browser-dynamic": "~21.2.0",
33+
"@angular/router": "~21.2.0",
2234
"hammerjs": "~2.0.8",
2335
"igniteui-angular": "~21.1.0",
2436
"minireset.css": "~0.0.7",
@@ -27,13 +39,12 @@
2739
"zone.js": "~0.15.0"
2840
},
2941
"devDependencies": {
30-
"@angular/build": "~21.1.5",
31-
"@angular-devkit/build-angular": "~21.1.5",
32-
"@angular/cli": "~21.1.5",
33-
"@angular/compiler-cli": "~21.1.5",
42+
"@angular/build": "~21.2.0",
43+
"@angular/cli": "~21.2.0",
44+
"@angular/compiler-cli": "~21.2.0",
3445
"@types/jasmine": "~5.1.4",
3546
"angular-eslint": "~21.2.0",
36-
"eslint": "~9.39.1",
47+
"eslint": "~9.39.2",
3748
"igniteui-cli": "~<%=cliVersion%>",
3849
"jasmine-core": "~5.12.1",
3950
"karma": "~6.4.4",
@@ -42,6 +53,6 @@
4253
"karma-jasmine": "~5.1.0",
4354
"karma-jasmine-html-reporter": "~2.1.0",
4455
"typescript": "~5.9.3",
45-
"typescript-eslint": "~8.47.0"
56+
"typescript-eslint": "~8.50.1"
4657
}
4758
}

packages/igx-templates/igx-ts-legacy/projects/_base/files/src/app/app.module.ts renamed to packages/igx-templates/igx-ts-legacy/projects/_base/files/src/app/app-module.ts

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,27 @@
1-
import { NgModule } from '@angular/core';
1+
import { NgModule, provideBrowserGlobalErrorListeners } from '@angular/core';
22
import { BrowserModule, HammerModule } from '@angular/platform-browser';
33
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
44
import { AppRoutingModule } from './app-routing.module';
5-
import { AppComponent } from './app.component';
5+
import { App } from './app';
6+
import { NotFound } from './error-routing/not-found/not-found';
7+
import { UncaughtError } from './error-routing/error/uncaught-error';
68

79
@NgModule({
810
declarations: [
9-
AppComponent,
11+
App,
12+
NotFound,
13+
UncaughtError
1014
],
1115
imports: [
1216
BrowserModule,
1317
HammerModule,
1418
AppRoutingModule,
1519
BrowserAnimationsModule
1620
],
17-
providers: [],
18-
bootstrap: [AppComponent]
21+
providers: [
22+
provideBrowserGlobalErrorListeners()
23+
],
24+
bootstrap: [App]
1925
})
2026
export class AppModule {
2127
}

packages/igx-templates/igx-ts-legacy/projects/_base/files/src/app/app-routing.module.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import { NgModule } from '@angular/core';
22
import { RouterModule, Routes } from '@angular/router';
33

4-
import { PageNotFoundComponent } from './error-routing/not-found/not-found.component';
5-
import { UncaughtErrorComponent } from './error-routing/error/uncaught-error.component';
4+
import { NotFound } from './error-routing/not-found/not-found';
5+
import { UncaughtError } from './error-routing/error/uncaught-error';
66
import { ErrorRoutingModule } from './error-routing/error-routing.module';
77

88
export const routes: Routes = [
9-
{ path: 'error', component: UncaughtErrorComponent },
10-
{ path: '**', component: PageNotFoundComponent } // must always be last
9+
{ path: 'error', component: UncaughtError },
10+
{ path: '**', component: NotFound } // must always be last
1111
];
1212

1313
@NgModule({

packages/igx-templates/igx-ts-legacy/projects/_base/files/src/app/app.component.spec.ts

Lines changed: 0 additions & 24 deletions
This file was deleted.

packages/igx-templates/igx-ts-legacy/projects/_base/files/src/app/app.component.ts

Lines changed: 0 additions & 11 deletions
This file was deleted.

packages/igx-templates/igx-ts-legacy/projects/_base/files/src/app/app.component.html renamed to packages/igx-templates/igx-ts-legacy/projects/_base/files/src/app/app.html

File renamed without changes.

packages/igx-templates/igx-ts-legacy/projects/_base/files/src/app/app.component.scss renamed to packages/igx-templates/igx-ts-legacy/projects/_base/files/src/app/app.scss

File renamed without changes.

0 commit comments

Comments
 (0)