Skip to content

Commit

Permalink
feat(core): adds angular 15 support (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavankjadda authored Nov 21, 2022
1 parent 41973f7 commit 02ad2a9
Show file tree
Hide file tree
Showing 25 changed files with 4,584 additions and 3,019 deletions.
1 change: 1 addition & 0 deletions apps/breadcrumb-demo-e2e/project.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"name": "breadcrumb-demo-e2e",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "apps/breadcrumb-demo-e2e/src",
"projectType": "application",
Expand Down
1 change: 1 addition & 0 deletions apps/breadcrumb-demo/project.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"name": "breadcrumb-demo",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"projectType": "application",
"generators": {
Expand Down
4 changes: 3 additions & 1 deletion apps/breadcrumb-demo/tsconfig.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../dist/out-tsc",
"types": []
"types": [],
"target": "ES2022",
"useDefineForClassFields": false
},
"files": ["src/main.ts", "src/polyfills.ts"],
"exclude": ["**/*.spec.ts", "**/*.test.ts", "jest.config.ts"]
Expand Down
1 change: 1 addition & 0 deletions apps/demo/project.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"name": "demo",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"projectType": "application",
"generators": {
Expand Down
4 changes: 3 additions & 1 deletion apps/demo/tsconfig.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../dist/out-tsc",
"types": []
"types": [],
"target": "ES2022",
"useDefineForClassFields": false
},
"files": ["src/main.ts", "src/polyfills.ts"],
"include": ["src/**/*.d.ts"],
Expand Down
1 change: 1 addition & 0 deletions apps/got-demo-e2e/project.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"name": "got-demo-e2e",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "apps/got-demo-e2e/src",
"projectType": "application",
Expand Down
1 change: 1 addition & 0 deletions apps/got-demo/project.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"name": "got-demo",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"projectType": "application",
"generators": {
Expand Down
4 changes: 3 additions & 1 deletion apps/got-demo/tsconfig.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../dist/out-tsc",
"types": []
"types": [],
"target": "ES2022",
"useDefineForClassFields": false
},
"files": ["src/main.ts", "src/polyfills.ts"],
"include": ["src/**/*.d.ts"],
Expand Down
1 change: 1 addition & 0 deletions apps/simple-demo-e2e/project.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"name": "simple-demo-e2e",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "apps/simple-demo-e2e/src",
"projectType": "application",
Expand Down
1 change: 1 addition & 0 deletions apps/simple-demo/project.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"name": "simple-demo",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"projectType": "application",
"generators": {},
Expand Down
4 changes: 3 additions & 1 deletion apps/simple-demo/tsconfig.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../dist/out-tsc",
"types": []
"types": [],
"target": "ES2022",
"useDefineForClassFields": false
},
"files": ["src/main.ts", "src/polyfills.ts"],
"exclude": ["**/*.spec.ts", "**/*.test.ts", "jest.config.ts"]
Expand Down
19 changes: 17 additions & 2 deletions apps/ssr/project.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"name": "ssr",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"projectType": "application",
"sourceRoot": "apps/ssr/src",
Expand Down Expand Up @@ -76,7 +77,7 @@
},
"test": {
"executor": "@nrwl/jest:jest",
"outputs": ["coverage/apps/ssr"],
"outputs": ["{workspaceRoot}/coverage/apps/ssr"],
"options": {
"jestConfig": "apps/ssr/jest.config.ts",
"passWithNoTests": true
Expand Down Expand Up @@ -105,7 +106,21 @@
"extractLicenses": false
}
},
"defaultConfiguration": "production"
"defaultConfiguration": "production",
"production": {
"outputHashing": "media",
"fileReplacements": [
{
"replace": "apps/ssr/src/environments/environment.ts",
"with": "apps/ssr/src/environments/environment.prod.ts"
}
]
},
"development": {
"optimization": false,
"sourceMap": true,
"extractLicenses": false
}
},
"serve-ssr": {
"executor": "@nguniversal/builders:ssr-dev-server",
Expand Down
2 changes: 1 addition & 1 deletion apps/ssr/src/main.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ if (environment.production) {
}

export { AppServerModule } from './app/app.server.module';
export { renderModule, renderModuleFactory } from '@angular/platform-server';
export { renderModuleFactory } from '@angular/platform-server';
3 changes: 2 additions & 1 deletion apps/ssr/tsconfig.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"compilerOptions": {
"outDir": "../../dist/out-tsc",
"types": [],
"target": "es2020"
"target": "ES2022",
"useDefineForClassFields": false
},
"files": ["src/main.ts", "src/polyfills.ts"],
"include": ["src/**/*.d.ts"],
Expand Down
4 changes: 3 additions & 1 deletion apps/ssr/tsconfig.server.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
"compilerOptions": {
"outDir": "./../dist/out-tsc/apps/ssr-server",
"module": "commonjs",
"types": ["node"]
"types": ["node"],
"target": "ES2022",
"useDefineForClassFields": false
},
"files": ["src/main.server.ts", "server.ts"],
"angularCompilerOptions": {
Expand Down
1 change: 1 addition & 0 deletions apps/with-gaurd-check-e2e/project.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"name": "with-gaurd-check-e2e",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "apps/with-gaurd-check-e2e/src",
"projectType": "application",
Expand Down
3 changes: 2 additions & 1 deletion apps/with-gaurd-check/project.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"name": "with-gaurd-check",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"projectType": "application",
"sourceRoot": "apps/with-gaurd-check/src",
Expand Down Expand Up @@ -82,7 +83,7 @@
},
"test": {
"executor": "@nrwl/jest:jest",
"outputs": ["coverage/apps/with-gaurd-check"],
"outputs": ["{workspaceRoot}/coverage/apps/with-gaurd-check"],
"options": {
"jestConfig": "apps/with-gaurd-check/jest.config.ts",
"passWithNoTests": true
Expand Down
4 changes: 3 additions & 1 deletion apps/with-gaurd-check/tsconfig.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../dist/out-tsc",
"types": []
"types": [],
"target": "ES2022",
"useDefineForClassFields": false
},
"files": ["src/main.ts", "src/polyfills.ts"],
"include": ["src/**/*.d.ts"],
Expand Down
1 change: 1 addition & 0 deletions libs/xng-breadcrumb/project.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"name": "xng-breadcrumb",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"projectType": "library",
"sourceRoot": "libs/xng-breadcrumb/src",
Expand Down
5 changes: 3 additions & 2 deletions libs/xng-breadcrumb/tsconfig.lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../dist/out-tsc",
"target": "es2020",
"target": "ES2022",
"declaration": true,
"declarationMap": true,
"inlineSources": true,
"types": [],
"lib": ["dom", "es2018"]
"lib": ["dom", "es2018"],
"useDefineForClassFields": false
},
"angularCompilerOptions": {
"skipTemplateCodegen": true,
Expand Down
4 changes: 3 additions & 1 deletion libs/xng-breadcrumb/tsconfig.lib.prod.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{
"extends": "./tsconfig.lib.json",
"compilerOptions": {
"declarationMap": false
"declarationMap": false,
"target": "ES2022",
"useDefineForClassFields": false
},
"angularCompilerOptions": {
"compilationMode": "partial"
Expand Down
Loading

0 comments on commit 02ad2a9

Please sign in to comment.