Skip to content

Commit ec62c9f

Browse files
committed
Merge branch 'feat/angular18'
2 parents e531c57 + 51e34bb commit ec62c9f

Some content is hidden

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

46 files changed

+6000
-8456
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## [Unreleased]
44

5+
### BREAKING CHANGES
6+
7+
- **Dependency**: Require Angular 18
8+
59
## [17.0.3] - 2024-05-30
610

711
### Fix

apps/demo/.eslintrc.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": ["../.eslintrc.json"],
2+
"extends": ["../../.eslintrc.json"],
33
"ignorePatterns": ["!**/*"],
44
"overrides": [
55
{
@@ -13,15 +13,15 @@
1313
"error",
1414
{
1515
"type": "attribute",
16-
"prefix": "org",
16+
"prefix": "app",
1717
"style": "camelCase"
1818
}
1919
],
2020
"@angular-eslint/component-selector": [
2121
"error",
2222
{
2323
"type": "element",
24-
"prefix": "org",
24+
"prefix": "app",
2525
"style": "kebab-case"
2626
}
2727
]

apps/demo/jest.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/* eslint-disable */
22
export default {
33
displayName: 'demo',
4-
preset: '../jest.preset.js',
4+
preset: '../../jest.preset.js',
55
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
6-
coverageDirectory: '../coverage/demo',
6+
coverageDirectory: '../../coverage/apps/demo',
77
transform: {
88
'^.+\\.(ts|mjs|js|html)$': [
99
'jest-preset-angular',

apps/demo/project.json

Lines changed: 14 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,27 @@
11
{
22
"name": "demo",
3-
"$schema": "../node_modules/nx/schemas/project-schema.json",
3+
"$schema": "../../node_modules/nx/schemas/project-schema.json",
44
"projectType": "application",
5-
"prefix": "demo-context-menu",
5+
"prefix": "app",
66
"sourceRoot": "apps/demo/src",
77
"tags": [],
88
"targets": {
99
"build": {
10-
"executor": "@angular-devkit/build-angular:browser",
10+
"executor": "@angular-devkit/build-angular:application",
1111
"outputs": ["{options.outputPath}"],
1212
"options": {
13-
"outputPath": "dist/demo",
13+
"outputPath": "dist/apps/demo",
1414
"index": "apps/demo/src/index.html",
15-
"main": "apps/demo/src/main.ts",
15+
"browser": "apps/demo/src/main.ts",
1616
"polyfills": ["zone.js"],
1717
"tsConfig": "apps/demo/tsconfig.app.json",
18-
"assets": ["apps/demo/src/favicon.ico", "apps/demo/src/assets"],
18+
"inlineStyleLanguage": "scss",
19+
"assets": [
20+
{
21+
"glob": "**/*",
22+
"input": "apps/demo/public"
23+
}
24+
],
1925
"styles": ["apps/demo/src/styles.scss"],
2026
"scripts": []
2127
},
@@ -36,12 +42,9 @@
3642
"outputHashing": "all"
3743
},
3844
"development": {
39-
"buildOptimizer": false,
4045
"optimization": false,
41-
"vendorChunk": true,
4246
"extractLicenses": false,
43-
"sourceMap": true,
44-
"namedChunks": true
47+
"sourceMap": true
4548
}
4649
},
4750
"defaultConfiguration": "production"
@@ -65,24 +68,14 @@
6568
}
6669
},
6770
"lint": {
68-
"executor": "@nx/eslint:lint",
69-
"outputs": ["{options.outputFile}"],
70-
"options": {
71-
"lintFilePatterns": ["apps/demo/**/*.ts", "apps/demo/**/*.html"]
72-
}
71+
"executor": "@nx/eslint:lint"
7372
},
7473
"test": {
7574
"executor": "@nx/jest:jest",
7675
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
7776
"options": {
7877
"jestConfig": "apps/demo/jest.config.ts"
7978
}
80-
},
81-
"serve-static": {
82-
"executor": "@nx/web:file-server",
83-
"options": {
84-
"buildTarget": "demo:build"
85-
}
8679
}
8780
}
8881
}

apps/demo/src/app-demo/app-demo.component.spec.ts

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

apps/demo/src/app/app.component.spec.ts

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

apps/demo/tsconfig.app.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"extends": "./tsconfig.json",
33
"compilerOptions": {
4-
"outDir": "../dist/out-tsc",
4+
"outDir": "../../dist/out-tsc",
55
"types": []
66
},
77
"files": ["src/main.ts"],

apps/demo/tsconfig.editor.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"extends": "./tsconfig.json",
33
"include": ["src/**/*.ts"],
4-
"compilerOptions": {
5-
"types": ["jest", "node"]
6-
}
4+
"compilerOptions": {},
5+
"exclude": ["jest.config.ts", "src/**/*.test.ts", "src/**/*.spec.ts"]
76
}

apps/demo/tsconfig.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"compilerOptions": {
33
"target": "es2022",
44
"useDefineForClassFields": false,
5+
"esModuleInterop": true,
56
"forceConsistentCasingInFileNames": true,
67
"strict": true,
78
"noImplicitOverride": true,
@@ -13,13 +14,13 @@
1314
"include": [],
1415
"references": [
1516
{
16-
"path": "./tsconfig.app.json"
17+
"path": "./tsconfig.editor.json"
1718
},
1819
{
19-
"path": "./tsconfig.spec.json"
20+
"path": "./tsconfig.app.json"
2021
},
2122
{
22-
"path": "./tsconfig.editor.json"
23+
"path": "./tsconfig.spec.json"
2324
}
2425
],
2526
"extends": "../../tsconfig.base.json",

apps/demo/tsconfig.spec.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"extends": "./tsconfig.json",
33
"compilerOptions": {
4-
"outDir": "../dist/out-tsc",
4+
"outDir": "../../dist/out-tsc",
55
"module": "commonjs",
66
"target": "es2016",
77
"types": ["jest", "node"]

0 commit comments

Comments
 (0)