Skip to content

Commit 2fe6ce2

Browse files
committed
fix(igx-ts): update the template
1 parent 64f2735 commit 2fe6ce2

23 files changed

Lines changed: 218 additions & 226 deletions

packages/igx-templates/igx-ts/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/projects/_base/files/__dot__gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# See http://help.github.com/ignore-files/ for more about ignoring files.
1+
# See https://docs.github.com/get-started/getting-started-with-git/ignoring-files for more about ignoring files.
22

33
# Compiled output
44
/dist
@@ -36,6 +36,7 @@ yarn-error.log
3636
/libpeerconnection.log
3737
testem.log
3838
/typings
39+
__screenshots__/
3940

4041
# System files
4142
.DS_Store
Lines changed: 125 additions & 114 deletions
Original file line numberDiff line numberDiff line change
@@ -1,127 +1,138 @@
11
{
2-
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3-
"version": 1,
4-
"newProjectRoot": "projects",
5-
"projects": {
6-
"<%=dashName%>": {
7-
"projectType": "application",
8-
"schematics": {
9-
"@schematics/angular:component": {
10-
"style": "scss"
11-
}
12-
},
13-
"root": "",
14-
"sourceRoot": "src",
15-
"prefix": "app",
16-
"architect": {
17-
"build": {
18-
"builder": "@angular/build:application",
19-
"options": {
20-
"outputPath": "dist/<%=dashName%>",
2+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3+
"version": 1,
4+
"newProjectRoot": "projects",
5+
"projects": {
6+
"<%=dashName%>": {
7+
"projectType": "application",
8+
"schematics": {
9+
"@schematics/angular:component": {
10+
"style": "scss"
11+
}
12+
},
13+
"root": "",
14+
"sourceRoot": "src",
15+
"prefix": "app",
16+
"architect": {
17+
"build": {
18+
"builder": "@angular/build:application",
19+
"options": {
20+
"outputPath": "dist/<%=dashName%>",
2121
"index": "src/index.html",
22-
"browser": "src/main.ts",
23-
"polyfills": [
24-
"zone.js"
25-
],
26-
"tsConfig": "tsconfig.app.json",
27-
"inlineStyleLanguage": "scss",
28-
"assets": [
29-
"src/favicon.ico",
30-
"src/assets"
31-
],
32-
"styles": [
33-
"src/styles.scss"<%=DefaultTheme%>
34-
],
35-
"scripts": [
22+
"browser": "src/main.ts",
23+
"polyfills": [
24+
"zone.js",
25+
"@angular/localize/init"
26+
],
27+
"tsConfig": "tsconfig.app.json",
28+
"inlineStyleLanguage": "scss",
29+
"assets": [
30+
{
31+
"glob": "**/*",
32+
"input": "public"
33+
}
34+
],
35+
"styles": [
36+
"src/styles.scss"<%=DefaultTheme%>
37+
],
38+
"scripts": [
3639
"./node_modules/hammerjs/hammer.min.js"
3740
],
38-
"stylePreprocessorOptions": {
39-
"includePaths": [
40-
"node_modules"
41-
]
42-
}
43-
},
44-
"configurations": {
45-
"production": {
46-
"budgets": [
47-
{
48-
"type": "initial",
49-
"maximumWarning": "5mb",
50-
"maximumError": "40mb"
51-
},
52-
{
53-
"type": "anyComponentStyle",
54-
"maximumWarning": "8kb",
41+
"stylePreprocessorOptions": {
42+
"includePaths": [
43+
"node_modules"
44+
]
45+
}
46+
},
47+
"configurations": {
48+
"production": {
49+
"budgets": [
50+
{
51+
"type": "initial",
52+
"maximumWarning": "5mb",
53+
"maximumError": "40mb"
54+
},
55+
{
56+
"type": "anyComponentStyle",
57+
"maximumWarning": "8kB",
5558
"maximumError": "2mb"
56-
}
57-
],
58-
"outputHashing": "all"
59-
},
60-
"development": {
61-
"optimization": false,
62-
"extractLicenses": false,
63-
"sourceMap": true
64-
}
65-
},
66-
"defaultConfiguration": "production"
67-
},
68-
"serve": {
69-
"builder": "@angular/build:dev-server",
70-
"configurations": {
71-
"production": {
72-
"buildTarget": "<%=dashName%>:build:production"
73-
},
74-
"development": {
75-
"buildTarget": "<%=dashName%>:build:development"
76-
}
77-
},
78-
"defaultConfiguration": "development"
79-
},
80-
"extract-i18n": {
81-
"builder": "@angular-devkit/build-angular:extract-i18n",
82-
"options": {
59+
}
60+
],
61+
"outputHashing": "all"
62+
},
63+
"development": {
64+
"optimization": false,
65+
"extractLicenses": false,
66+
"sourceMap": true,
67+
"fileReplacements": [
68+
{
69+
"replace": "src/environments/environment.ts",
70+
"with": "src/environments/environment.development.ts"
71+
}
72+
]
73+
}
74+
},
75+
"defaultConfiguration": "production"
76+
},
77+
"serve": {
78+
"builder": "@angular/build:dev-server",
79+
"configurations": {
80+
"production": {
81+
"buildTarget": "<%=dashName%>:build:production"
82+
},
83+
"development": {
84+
"buildTarget": "<%=dashName%>:build:development"
85+
}
86+
},
87+
"defaultConfiguration": "development"
88+
},
89+
"extract-i18n": {
90+
"builder": "@angular/build:extract-i18n",
91+
"options": {
8392
"buildTarget": "<%=dashName%>:build"
8493
}
85-
},
86-
"test": {
87-
"builder": "@angular-devkit/build-angular:karma",
88-
"options": {
89-
"polyfills": [
90-
"zone.js",
91-
"zone.js/testing"
92-
],
93-
"tsConfig": "tsconfig.spec.json",
94-
"inlineStyleLanguage": "scss",
95-
"assets": [
96-
"src/favicon.ico",
97-
"src/assets"
98-
],
99-
"styles": [
100-
"src/styles.scss"
101-
],
102-
"scripts": [],
94+
},
95+
"test": {
96+
"builder": "@angular/build:karma",
97+
"options": {
98+
"polyfills": [
99+
"zone.js",
100+
"zone.js/testing",
101+
"@angular/localize/init"
102+
],
103+
"tsConfig": "tsconfig.spec.json",
104+
"inlineStyleLanguage": "scss",
105+
"assets": [
106+
{
107+
"glob": "**/*",
108+
"input": "public"
109+
}
110+
],
111+
"styles": [
112+
"src/styles.scss"
113+
],
103114
"stylePreprocessorOptions": {
104-
"includePaths": [
105-
"node_modules"
106-
]
107-
}
108-
}
109-
},
110-
"lint": {
111-
"builder": "@angular-eslint/builder:lint",
112-
"options": {
113-
"lintFilePatterns": [
114-
"src/**/*.ts",
115-
"src/**/*.html"
116-
]
117-
}
118-
}
119-
}
120-
}
121-
},
115+
"includePaths": [
116+
"node_modules"
117+
]
118+
}
119+
}
120+
},
121+
"lint": {
122+
"builder": "@angular-eslint/builder:lint",
123+
"options": {
124+
"lintFilePatterns": [
125+
"src/**/*.ts",
126+
"src/**/*.html"
127+
]
128+
}
129+
}
130+
}
131+
}
132+
},
122133
"cli": {
123134
"schematicCollections": [
124-
"@angular-eslint/schematics"
135+
"angular-eslint"
125136
]
126137
}
127138
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
3+
<file source-language="en-US" datatype="plaintext" original="ng2.template">
4+
<body>
5+
</body>
6+
</file>
7+
</xliff>

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

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,24 @@
33
"version": "0.0.0",
44
"scripts": {
55
"ng": "ng",
6-
"start": "ng serve -o",
6+
"start": "ng serve -о",
77
"build": "ng build",
88
"watch": "ng build --watch --configuration development",
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": {
1426
"@angular/animations": "~21.1.5",
@@ -19,7 +31,9 @@
1931
"@angular/platform-browser": "~21.1.5",
2032
"@angular/platform-browser-dynamic": "~21.1.5",
2133
"@angular/router": "~21.1.5",
34+
"@igniteui/material-icons-extended": "^3.1.0",
2235
"hammerjs": "~2.0.8",
36+
"fflate": "~0.8.1",
2337
"igniteui-angular": "~21.1.0",
2438
"minireset.css": "~0.0.7",
2539
"rxjs": "~7.8.1",
@@ -28,9 +42,11 @@
2842
},
2943
"devDependencies": {
3044
"@angular/build": "~21.1.5",
31-
"@angular-devkit/build-angular": "~21.1.5",
3245
"@angular/cli": "~21.1.5",
3346
"@angular/compiler-cli": "~21.1.5",
47+
"@angular/localize": "~21.1.5",
48+
"@igniteui/angular-schematics": "~21.1.1490",
49+
"@types/hammerjs": "~2.0.40",
3450
"@types/jasmine": "~5.1.4",
3551
"angular-eslint": "~21.2.0",
3652
"eslint": "~9.39.1",

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

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

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

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

0 commit comments

Comments
 (0)