Skip to content

Commit 73478f2

Browse files
committed
feat(liferay-cli): update Angular version/configuration
1 parent 0511e69 commit 73478f2

File tree

2 files changed

+44
-36
lines changed

2 files changed

+44
-36
lines changed

projects/js-toolkit/packages/liferay-cli/src/dependencies.json

Lines changed: 24 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,32 @@
11
{
22
"facet-angular": {
33
"dependencies": {
4-
"@angular/animations": "10.2.2",
5-
"@angular/common": "10.2.2",
6-
"@angular/compiler": "10.2.2",
7-
"@angular/core": "10.2.2",
8-
"@angular/forms": "10.2.2",
9-
"@angular/platform-browser": "10.2.2",
10-
"@angular/platform-browser-dynamic": "10.2.2",
11-
"@angular/router": "10.2.2",
12-
"rxjs": "6.6.3",
13-
"tslib": "2.0.3",
14-
"zone.js": "0.10.3"
4+
"@angular/animations": "~12.2.0",
5+
"@angular/common": "~12.2.0",
6+
"@angular/compiler": "~12.2.0",
7+
"@angular/core": "~12.2.0",
8+
"@angular/forms": "~12.2.0",
9+
"@angular/platform-browser": "~12.2.0",
10+
"@angular/platform-browser-dynamic": "~12.2.0",
11+
"@angular/router": "~12.2.0",
12+
"components-lib": "../components-app/dist/components-lib",
13+
"rxjs": "~6.6.0",
14+
"tslib": "^2.3.0",
15+
"zone.js": "~0.11.4"
1516
},
1617
"devDependencies": {
17-
"@angular/cli": "10.2.0",
18-
"@angular/compiler-cli": "10.2.2",
19-
"@angular-devkit/build-angular": "0.1002.0",
20-
"@types/jasmine": "3.5.14",
21-
"@types/jasminewd2": "2.0.8",
22-
"@types/node": "12.11.1",
23-
"codelyzer": "6.0.1",
24-
"jasmine-core": "3.6.0",
25-
"jasmine-spec-reporter": "5.0.2",
26-
"karma": "5.0.9",
27-
"karma-chrome-launcher": "3.1.0",
28-
"karma-coverage-istanbul-reporter": "3.0.3",
29-
"karma-jasmine": "4.0.1",
30-
"karma-jasmine-html-reporter": "1.5.4",
31-
"protractor": "7.0.0",
32-
"ts-node": "8.3.0",
33-
"tslint": "6.1.3",
34-
"typescript": "4.0.5"
18+
"@angular/cli": "~12.2.12",
19+
"@angular/compiler-cli": "~12.2.0",
20+
"@angular-devkit/build-angular": "~12.2.12",
21+
"@types/jasmine": "~3.8.0",
22+
"@types/node": "^12.11.1",
23+
"jasmine-core": "~3.8.0",
24+
"karma": "~6.3.0",
25+
"karma-chrome-launcher": "~3.1.0",
26+
"karma-coverage": "~2.0.3",
27+
"karma-jasmine": "~4.0.0",
28+
"karma-jasmine-html-reporter": "~1.7.0",
29+
"typescript": "~4.3.5"
3530
}
3631
},
3732
"facet-react": {

projects/js-toolkit/packages/liferay-cli/src/new/facet-angular/templates/tsconfig.json.ejs

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,29 @@
11
{
2+
"angularCompilerOptions": {
3+
"enableI18nLegacyMessageIdFormat": false,
4+
"strictInjectionParameters": true,
5+
"strictInputAccessModifiers": true,
6+
"strictTemplates": true
7+
},
8+
"compileOnSave": false,
29
"compilerOptions": {
3-
"emitDecoratorMetadata": true,
10+
"baseUrl": "./",
11+
"declaration": false,
12+
"downlevelIteration": true,
413
"experimentalDecorators": true,
5-
"inlineSources": true,
6-
"lib": ["es2015", "dom"],
14+
"forceConsistentCasingInFileNames": true,
15+
"importHelpers": true,
16+
"lib": [
17+
"es2015",
18+
"dom"
19+
],
720
"module": "commonjs",
821
"moduleResolution": "node",
9-
"noImplicitAny": true,
10-
"noStrictGenericChecks": true,
11-
"outDir": "build",
22+
"noFallthroughCasesInSwitch": true,
23+
"noImplicitReturns": true,
24+
"outDir": "./build",
1225
"sourceMap": true,
13-
"suppressImplicitAnyIndexErrors": true,
26+
"strict": true,
1427
"target": "es5",
1528
"typeRoots": ["./node_modules/@types/"]
1629
},

0 commit comments

Comments
 (0)