Skip to content

Commit 21f91dc

Browse files
feat!: upgrade project to nx 18 (#962)
1 parent df7239c commit 21f91dc

File tree

131 files changed

+4049
-8216
lines changed

Some content is hidden

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

131 files changed

+4049
-8216
lines changed

.eslintignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
node_modules
12
src/lib/**/files/**/*
23
**/src/lib/**/files/**/*
34
*.d.ts

.eslintrc.base.json

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
{
2+
"root": true,
3+
"ignorePatterns": ["**/*"],
4+
"plugins": ["@nx", "prettier"],
5+
"overrides": [
6+
{
7+
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
8+
"rules": {
9+
"@nx/enforce-module-boundaries": [
10+
"error",
11+
{
12+
"enforceBuildableLibDependency": true,
13+
"allow": [],
14+
"depConstraints": [
15+
{
16+
"sourceTag": "*",
17+
"onlyDependOnLibsWithTags": ["*"]
18+
}
19+
]
20+
}
21+
]
22+
}
23+
},
24+
{
25+
"files": ["*.ts", "*.tsx"],
26+
"extends": ["plugin:@nx/typescript"],
27+
"rules": {
28+
"no-console": "error",
29+
"@typescript-eslint/explicit-function-return-type": "error",
30+
"@typescript-eslint/no-explicit-any": "off",
31+
"@typescript-eslint/no-non-null-assertion": "off",
32+
"prettier/prettier": "error",
33+
"sort-imports": [
34+
"error",
35+
{
36+
"allowSeparatedGroups": false,
37+
"ignoreDeclarationSort": true,
38+
"ignoreMemberSort": true
39+
}
40+
]
41+
}
42+
},
43+
{
44+
"files": ["*.js", "*.jsx"],
45+
"extends": ["plugin:@nx/javascript"],
46+
"rules": {}
47+
},
48+
{
49+
"files": ["*.spec.ts", "*.spec.tsx", "*.spec.js", "*.spec.jsx"],
50+
"env": {
51+
"jest": true
52+
},
53+
"rules": {}
54+
}
55+
]
56+
}

.eslintrc.js

-26
This file was deleted.

.eslintrc.json

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"ignorePatterns": ["**/*"],
3+
"overrides": [
4+
{
5+
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
6+
"rules": {
7+
"@nx/enforce-module-boundaries": [
8+
"error",
9+
{
10+
"enforceBuildableLibDependency": true,
11+
"allow": [],
12+
"depConstraints": [
13+
{
14+
"sourceTag": "*",
15+
"onlyDependOnLibsWithTags": ["*"]
16+
}
17+
]
18+
}
19+
]
20+
}
21+
},
22+
{
23+
"files": ["*.ts", "*.tsx"],
24+
"rules": {}
25+
},
26+
{
27+
"files": ["*.js", "*.jsx"],
28+
"rules": {}
29+
},
30+
{
31+
"files": ["*.spec.ts", "*.spec.tsx", "*.spec.js", "*.spec.jsx"],
32+
"env": {
33+
"jest": true
34+
},
35+
"rules": {}
36+
}
37+
],
38+
"extends": ["./.eslintrc.base.json"]
39+
}

.github/dependabot.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
version: 2
77
updates:
8-
- package-ecosystem: "npm" # See documentation for possible values
9-
directory: "/" # Location of package manifests
8+
- package-ecosystem: 'npm' # See documentation for possible values
9+
directory: '/' # Location of package manifests
1010
schedule:
11-
interval: "daily"
11+
interval: 'daily'

.github/stale.yml

-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ markComment: >
4242

4343
# Limit the number of actions per hour, from 1-30. Default is 30
4444
limitPerRun: 30
45-
4645
# Limit to only `issues` or `pulls`
4746
# only: issues
4847

.github/workflows/ci-pr.yml

-87
This file was deleted.

.github/workflows/ci-root.yml

-20
This file was deleted.

.github/workflows/ci.yml

+28-77
Original file line numberDiff line numberDiff line change
@@ -1,88 +1,39 @@
1+
name: CI
2+
13
on:
24
push:
3-
paths-ignore:
4-
- 'documentation/**'
5-
branches: [develop]
5+
branches:
6+
- develop
7+
pull_request:
68

7-
name: Build
9+
permissions:
10+
actions: read
11+
contents: read
812

913
jobs:
10-
# JOB to run change detection
11-
changes:
14+
main:
1215
runs-on: ubuntu-latest
13-
# Set job outputs to values from filter step
14-
outputs:
15-
common: ${{ steps.filter.outputs.common }}
16-
config: ${{ steps.filter.outputs.config }}
17-
mailer: ${{ steps.filter.outputs.mailer }}
18-
schematics: ${{ steps.filter.outputs.schematics }}
1916
steps:
20-
- uses: actions/checkout@v2
21-
- uses: dorny/paths-filter@v2
22-
id: filter
17+
- uses: actions/checkout@v4
2318
with:
24-
filters: |
25-
common:
26-
- 'packages/common/**'
27-
config:
28-
- 'packages/config/**'
29-
mailer:
30-
- 'packages/mailer/**'
31-
schematics:
32-
- 'packages/schematics/**'
19+
fetch-depth: 0
3320

34-
# JOB to build common code
35-
common:
36-
needs: changes
37-
if: ${{ needs.changes.outputs.common == 'true' }}
38-
runs-on: ubuntu-latest
39-
steps:
40-
- name: Checkout code
41-
uses: actions/checkout@v2
42-
- name: build
43-
run: |
44-
cd packages/common
45-
pnpm install --no-frozen-lockfile
46-
pnpm run build
21+
# Connect your workspace on nx.app and uncomment this to enable task distribution.
22+
# The "--stop-agents-after" is optional, but allows idle agents to shut down once the "build" targets have been requested
23+
# - run: pnpm exec nx-cloud start-ci-run --distribute-on="5 linux-medium-js" --stop-agents-after="build"
4724

48-
# JOB to build config code
49-
config:
50-
needs: changes
51-
if: ${{ needs.changes.outputs.config == 'true' }}
52-
runs-on: ubuntu-latest
53-
steps:
54-
- name: Checkout code
55-
uses: actions/checkout@v2
56-
- name: build
57-
run: |
58-
cd packages/config
59-
pnpm install --no-frozen-lockfile
60-
pnpm run build
61-
62-
# JOB to build mailer code
63-
mailer:
64-
needs: changes
65-
if: ${{ needs.changes.outputs.mailer == 'true' }}
66-
runs-on: ubuntu-latest
67-
steps:
68-
- name: Checkout code
69-
uses: actions/checkout@v2
70-
- name: build
71-
run: |
72-
cd packages/mailer
73-
pnpm install --no-frozen-lockfile
74-
pnpm run build
25+
- uses: pnpm/action-setup@v2
26+
with:
27+
version: 8
28+
# Cache node_modules
29+
- uses: actions/setup-node@v3
30+
with:
31+
node-version: 20
32+
cache: 'pnpm'
33+
- run: pnpm install --frozen-lockfile
34+
- uses: nrwl/nx-set-shas@v4
35+
with:
36+
main-branch-name: develop
7537

76-
# JOB to build schematics code
77-
schematics:
78-
needs: changes
79-
if: ${{ needs.changes.outputs.schematics == 'true' }}
80-
runs-on: ubuntu-latest
81-
steps:
82-
- name: Checkout code
83-
uses: actions/checkout@v2
84-
- name: build
85-
run: |
86-
cd packages/schematics
87-
pnpm install --no-frozen-lockfile
88-
pnpm run build
38+
- run: pnpm exec nx format:check
39+
- run: pnpm exec nx affected -t lint test build

.github/workflows/devonfw-spellcheck.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
name: spellcheck
1+
name: spellcheck
22
on:
33
push:
44
paths:
5-
- '**.asciidoc'
6-
- '**.adoc'
7-
- '**.md'
5+
- '**.asciidoc'
6+
- '**.adoc'
7+
- '**.md'
88
workflow_dispatch:
99
jobs:
1010
spellchecker:

0 commit comments

Comments
 (0)