Skip to content

Commit b76b961

Browse files
refactor: migration to Angular 17
* chore: [nx migration] 15.0.0-migrate-to-inputs * chore: [nx migration] 15.0.0-prefix-outputs * chore: [nx migration] exclude-jest-config-from-ts-config * chore: [nx migration] update-configs-jest-28 * chore: [nx migration] add-jest-inputs * chore: [nx migration] add-eslint-inputs * chore: [nx migration] update-angular-cli-version-14-1-0 * chore: [nx migration] update-rxjs-7-5-0 * chore: [nx migration] update-angular-cli-version-14-2-0 * chore: [nx migration] 15-7-0-split-configuration-into-project-json-files * chore: [nx migration] 16.0.0-remove-nrwl-cli * chore: [nx migration] 16.0.0-update-nx-cloud-runner * chore: [nx migration] update-16-0-0-add-nx-packages * chore: [nx migration] 16-0-0-move-workspace-generators-into-local-plugin * chore: [nx migration] add-eslint-ignore * chore: [nx migration] update-16-0-0-add-nx-packages * chore: [nx migration] update-16-0-0-add-nx-packages * chore: [nx migration] update-16-0-0-add-nx-packages * chore: [nx migration] update-configs-jest-29 * chore: [nx migration] update-16-0-0-add-nx-packages * chore: [nx migration] install-required-packages * chore: [nx migration] update-angular-cli-version-15-0-0 * chore: [nx migration] remove-browserlist-config * chore: [nx migration] update-typescript-target * chore: [nx migration] update-workspace-config * chore: [nx migration] update-platform-server-exports * chore: [nx migration] update-angular-cli-version-15-1-0 * chore: [nx migration] update-angular-cli-version-15-2-0 * chore: [nx migration] update-16-0-0-add-nx-packages * chore: [nx migration] migration-v15 * docs: adds compatibility matrix * build: set node version to 18 * chore: [nx migration] 17.0.0-move-cache-directory * chore: [nx migration] 17.0.0-use-minimal-config-for-tasks-runner-options * chore: [nx migration] rm-default-collection-npm-scope * chore: [nx migration] add-test-setup-to-inputs-ignore * chore: [nx migration] move-options-to-target-defaults * chore: [nx migration] remove-ngcc-invocation * chore: [nx migration] update-server-executor-config * chore: [nx migration] update-angular-cli-version-16-0-0 * chore: [nx migration] update-angular-cli-version-16-1-0 * chore: [nx migration] explicitly-set-projects-to-update-buildable-deps * chore: [nx migration] update-angular-cli-version-16-2-0 * chore: [nx migration] update-angular-cli-version-17-0-0 * chore: [nx migration] rename-browser-target-to-build-target * chore: [nx migration] replace-nguniversal-builders * chore: [nx migration] replace-nguniversal-engines * chore: [nx migration] update-17-0-0-rename-to-eslint * chore: [nx migration] simplify-eslint-patterns * chore: [nx migration] block-template-entities * chore: [nx migration] migration-v17 * feat: migrate to angular 17
1 parent 1948bf0 commit b76b961

File tree

103 files changed

+20000
-13968
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+20000
-13968
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

.eslintrc.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"root": true,
33
"ignorePatterns": ["**/*"],
4-
"plugins": ["@nrwl/nx"],
4+
"plugins": ["@nx"],
55
"overrides": [
66
{
77
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
88
"rules": {
9-
"@nrwl/nx/enforce-module-boundaries": [
9+
"@nx/enforce-module-boundaries": [
1010
"error",
1111
{
1212
"enforceBuildableLibDependency": true,
@@ -23,12 +23,12 @@
2323
},
2424
{
2525
"files": ["*.ts", "*.tsx"],
26-
"extends": ["plugin:@nrwl/nx/typescript"],
26+
"extends": ["plugin:@nx/typescript"],
2727
"rules": {}
2828
},
2929
{
3030
"files": ["*.js", "*.jsx"],
31-
"extends": ["plugin:@nrwl/nx/javascript"],
31+
"extends": ["plugin:@nx/javascript"],
3232
"rules": {}
3333
}
3434
]

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: Use Node.js
1515
uses: actions/setup-node@v3
1616
with:
17-
node-version: '16'
17+
node-version: '18'
1818

1919
- uses: c-hive/gha-yarn-cache@v2
2020

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: Use Node.js
1515
uses: actions/setup-node@v3
1616
with:
17-
node-version: '16'
17+
node-version: '18'
1818
registry-url: 'https://registry.npmjs.org'
1919
scope: '@geometricpanda'
2020

.gitignore

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,14 @@ testem.log
3737
# System Files
3838
.DS_Store
3939
Thumbs.db
40-
4140
.angular
41+
.nx/cache
4242

4343
# Local Netlify folder
4444
.netlify
45+
46+
# Yarn
47+
.yarn/*
48+
!.yarn/releases
49+
!.yarn/plugins
50+
.pnp.*

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@
22

33
/dist
44
/coverage
5+
6+
/.nx/cache

.yarn/releases/yarn-4.0.2.cjs

Lines changed: 893 additions & 0 deletions
Large diffs are not rendered by default.

.yarnrc.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
nodeLinker: node-modules
2+
3+
yarnPath: .yarn/releases/yarn-4.0.2.cjs

angular.json

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

apps/tilt-angular-docs/.browserslistrc

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

apps/tilt-angular-docs/.eslintrc.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{
66
"files": ["*.ts"],
77
"extends": [
8-
"plugin:@nrwl/nx/angular",
8+
"plugin:@nx/angular",
99
"plugin:@angular-eslint/template/process-inline-templates"
1010
],
1111
"rules": {
@@ -29,7 +29,7 @@
2929
},
3030
{
3131
"files": ["*.html"],
32-
"extends": ["plugin:@nrwl/nx/angular-template"],
32+
"extends": ["plugin:@nx/angular-template"],
3333
"rules": {}
3434
}
3535
]

apps/tilt-angular-docs/jest.config.ts

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,16 @@ export default {
33
displayName: 'tilt-angular-docs',
44
preset: '../../jest.preset.js',
55
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
6-
globals: {
7-
'ts-jest': {
8-
tsconfig: '<rootDir>/tsconfig.spec.json',
9-
stringifyContentPathRegex: '\\.(html|svg)$',
10-
},
11-
},
6+
globals: {},
127
coverageDirectory: '../../coverage/apps/tilt-angular-docs',
138
transform: {
14-
'^.+\\.(ts|mjs|js|html)$': 'jest-preset-angular',
9+
'^.+\\.(ts|mjs|js|html)$': [
10+
'jest-preset-angular',
11+
{
12+
tsconfig: '<rootDir>/tsconfig.spec.json',
13+
stringifyContentPathRegex: '\\.(html|svg)$',
14+
},
15+
],
1516
},
1617
transformIgnorePatterns: ['node_modules/(?!.*\\.mjs$)'],
1718
snapshotSerializers: [

apps/tilt-angular-docs/project.json

Lines changed: 43 additions & 95 deletions
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,71 @@
11
{
2+
"name": "tilt-angular-docs",
3+
"$schema": "../../node_modules/nx/schemas/project-schema.json",
24
"projectType": "application",
3-
"sourceRoot": "apps/tilt-angular-docs/src",
45
"prefix": "app",
6+
"sourceRoot": "apps/tilt-angular-docs/src",
7+
"tags": [],
58
"targets": {
69
"build": {
7-
"executor": "@angular-devkit/build-angular:browser",
10+
"executor": "@angular-devkit/build-angular:application",
811
"outputs": [
912
"{options.outputPath}"
1013
],
1114
"options": {
12-
"outputPath": "dist/apps/tilt-angular-docs/browser",
15+
"allowedCommonJsDependencies": [
16+
"@fortawesome/free-brands-svg-icons/faNpm",
17+
"@fortawesome/free-solid-svg-icons/faGamepad",
18+
"@fortawesome/free-solid-svg-icons/faHouseChimney",
19+
"@fortawesome/free-solid-svg-icons/faBook",
20+
"@fortawesome/free-solid-svg-icons/faImage",
21+
"@fortawesome/free-brands-svg-icons/faGithubAlt",
22+
"@fortawesome/free-brands-svg-icons/faCcMastercard",
23+
"@fortawesome/free-solid-svg-icons/faTimes"
24+
],
25+
"outputPath": "dist/apps/tilt-angular-docs",
1326
"index": "apps/tilt-angular-docs/src/index.html",
14-
"main": "apps/tilt-angular-docs/src/main.ts",
15-
"polyfills": "apps/tilt-angular-docs/src/polyfills.ts",
27+
"browser": "apps/tilt-angular-docs/src/main.ts",
28+
"polyfills": [
29+
"zone.js"
30+
],
1631
"tsConfig": "apps/tilt-angular-docs/tsconfig.app.json",
1732
"assets": [
1833
"apps/tilt-angular-docs/src/favicon.ico",
1934
"apps/tilt-angular-docs/src/assets",
20-
{
21-
"glob": "_redirects",
22-
"input": "apps/tilt-angular-docs",
23-
"output": "/"
24-
}
35+
"apps/tilt-angular-docs/src/_redirects"
2536
],
2637
"styles": [
2738
"apps/tilt-angular-docs/src/styles.css"
2839
],
29-
"scripts": []
40+
"scripts": [],
41+
"server": "apps/tilt-angular-docs/src/main.server.ts",
42+
"prerender": {
43+
"routesFile": "apps/tilt-angular-docs/routes.txt"
44+
},
45+
"ssr": {
46+
"entry": "apps/tilt-angular-docs/server.ts"
47+
}
3048
},
3149
"configurations": {
3250
"production": {
3351
"budgets": [
3452
{
3553
"type": "initial",
36-
"maximumWarning": "500kb",
54+
"maximumWarning": "510kb",
3755
"maximumError": "1mb"
3856
},
3957
{
4058
"type": "anyComponentStyle",
41-
"maximumWarning": "2kb",
59+
"maximumWarning": "3kb",
4260
"maximumError": "4kb"
4361
}
4462
],
45-
"fileReplacements": [
46-
{
47-
"replace": "apps/tilt-angular-docs/src/environments/environment.ts",
48-
"with": "apps/tilt-angular-docs/src/environments/environment.prod.ts"
49-
}
50-
],
5163
"outputHashing": "all"
5264
},
5365
"development": {
54-
"buildOptimizer": false,
5566
"optimization": false,
56-
"vendorChunk": true,
5767
"extractLicenses": false,
58-
"sourceMap": true,
59-
"namedChunks": true
68+
"sourceMap": true
6069
}
6170
},
6271
"defaultConfiguration": "production"
@@ -65,95 +74,34 @@
6574
"executor": "@angular-devkit/build-angular:dev-server",
6675
"configurations": {
6776
"production": {
68-
"browserTarget": "tilt-angular-docs:build:production"
77+
"buildTarget": "tilt-angular-docs:build:production"
6978
},
7079
"development": {
71-
"browserTarget": "tilt-angular-docs:build:development"
80+
"buildTarget": "tilt-angular-docs:build:development"
7281
}
7382
},
7483
"defaultConfiguration": "development"
7584
},
7685
"extract-i18n": {
7786
"executor": "@angular-devkit/build-angular:extract-i18n",
7887
"options": {
79-
"browserTarget": "tilt-angular-docs:build"
88+
"buildTarget": "tilt-angular-docs:build"
8089
}
8190
},
8291
"lint": {
83-
"executor": "@nrwl/linter:eslint",
84-
"options": {
85-
"lintFilePatterns": [
86-
"apps/tilt-angular-docs/**/*.ts",
87-
"apps/tilt-angular-docs/**/*.html"
88-
]
89-
}
92+
"executor": "@nx/eslint:lint",
93+
"outputs": [
94+
"{options.outputFile}"
95+
]
9096
},
9197
"test": {
92-
"executor": "@nrwl/jest:jest",
98+
"executor": "@nx/jest:jest",
9399
"outputs": [
94-
"coverage/apps/tilt-angular-docs"
100+
"{workspaceRoot}/coverage/{projectRoot}"
95101
],
96102
"options": {
97-
"jestConfig": "apps/tilt-angular-docs/jest.config.ts",
98-
"passWithNoTests": true
103+
"jestConfig": "apps/tilt-angular-docs/jest.config.ts"
99104
}
100-
},
101-
"server": {
102-
"executor": "@angular-devkit/build-angular:server",
103-
"options": {
104-
"outputPath": "dist/apps/tilt-angular-docs/server",
105-
"main": "apps/tilt-angular-docs/src/ssr.server.ts",
106-
"tsConfig": "apps/tilt-angular-docs/tsconfig.server.json"
107-
},
108-
"configurations": {
109-
"production": {
110-
"outputHashing": "media",
111-
"fileReplacements": [
112-
{
113-
"replace": "apps/tilt-angular-docs/src/environments/environment.ts",
114-
"with": "apps/tilt-angular-docs/src/environments/environment.prod.ts"
115-
}
116-
]
117-
},
118-
"development": {
119-
"optimization": false,
120-
"sourceMap": true,
121-
"extractLicenses": false
122-
}
123-
},
124-
"defaultConfiguration": "production"
125-
},
126-
"serve-ssr": {
127-
"executor": "@nguniversal/builders:ssr-dev-server",
128-
"configurations": {
129-
"development": {
130-
"browserTarget": "tilt-angular-docs:build:development",
131-
"serverTarget": "tilt-angular-docs:server:development"
132-
},
133-
"production": {
134-
"browserTarget": "tilt-angular-docs:build:production",
135-
"serverTarget": "tilt-angular-docs:server:production"
136-
}
137-
},
138-
"defaultConfiguration": "development"
139-
},
140-
"prerender": {
141-
"executor": "@nguniversal/builders:prerender",
142-
"options": {
143-
"routesFile": "apps/tilt-angular-docs/routes.txt"
144-
},
145-
"configurations": {
146-
"development": {
147-
"browserTarget": "tilt-angular-docs:build:development",
148-
"serverTarget": "tilt-angular-docs:server:development"
149-
},
150-
"production": {
151-
"browserTarget": "tilt-angular-docs:build:production",
152-
"serverTarget": "tilt-angular-docs:server:production"
153-
}
154-
},
155-
"defaultConfiguration": "development"
156105
}
157-
},
158-
"tags": []
106+
}
159107
}

0 commit comments

Comments
 (0)