-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'Nx-migration' of https://github.com/devonfw/devon4ts in…
…to Nx-migration
- Loading branch information
Showing
146 changed files
with
4,175 additions
and
8,305 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
node_modules | ||
src/lib/**/files/**/* | ||
**/src/lib/**/files/**/* | ||
*.d.ts | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
{ | ||
"root": true, | ||
"ignorePatterns": ["**/*"], | ||
"plugins": ["@nx", "prettier"], | ||
"overrides": [ | ||
{ | ||
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"], | ||
"rules": { | ||
"@nx/enforce-module-boundaries": [ | ||
"error", | ||
{ | ||
"enforceBuildableLibDependency": true, | ||
"allow": [], | ||
"depConstraints": [ | ||
{ | ||
"sourceTag": "*", | ||
"onlyDependOnLibsWithTags": ["*"] | ||
} | ||
] | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"files": ["*.ts", "*.tsx"], | ||
"extends": ["plugin:@nx/typescript"], | ||
"rules": { | ||
"no-console": "error", | ||
"@typescript-eslint/explicit-function-return-type": "error", | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"@typescript-eslint/no-non-null-assertion": "off", | ||
"prettier/prettier": "error", | ||
"sort-imports": [ | ||
"error", | ||
{ | ||
"allowSeparatedGroups": false, | ||
"ignoreDeclarationSort": true, | ||
"ignoreMemberSort": true | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"files": ["*.js", "*.jsx"], | ||
"extends": ["plugin:@nx/javascript"], | ||
"rules": {} | ||
}, | ||
{ | ||
"files": ["*.spec.ts", "*.spec.tsx", "*.spec.js", "*.spec.jsx"], | ||
"env": { | ||
"jest": true | ||
}, | ||
"rules": {} | ||
} | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"ignorePatterns": ["**/*"], | ||
"overrides": [ | ||
{ | ||
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"], | ||
"rules": { | ||
"@nx/enforce-module-boundaries": [ | ||
"error", | ||
{ | ||
"enforceBuildableLibDependency": true, | ||
"allow": [], | ||
"depConstraints": [ | ||
{ | ||
"sourceTag": "*", | ||
"onlyDependOnLibsWithTags": ["*"] | ||
} | ||
] | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"files": ["*.ts", "*.tsx"], | ||
"rules": {} | ||
}, | ||
{ | ||
"files": ["*.js", "*.jsx"], | ||
"rules": {} | ||
}, | ||
{ | ||
"files": ["*.spec.ts", "*.spec.tsx", "*.spec.js", "*.spec.jsx"], | ||
"env": { | ||
"jest": true | ||
}, | ||
"rules": {} | ||
} | ||
], | ||
"extends": ["./.eslintrc.base.json"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,88 +1,39 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
paths-ignore: | ||
- 'documentation/**' | ||
branches: [develop] | ||
branches: | ||
- develop | ||
pull_request: | ||
|
||
name: Build | ||
permissions: | ||
actions: read | ||
contents: read | ||
|
||
jobs: | ||
# JOB to run change detection | ||
changes: | ||
main: | ||
runs-on: ubuntu-latest | ||
# Set job outputs to values from filter step | ||
outputs: | ||
common: ${{ steps.filter.outputs.common }} | ||
config: ${{ steps.filter.outputs.config }} | ||
mailer: ${{ steps.filter.outputs.mailer }} | ||
schematics: ${{ steps.filter.outputs.schematics }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: dorny/paths-filter@v2 | ||
id: filter | ||
- uses: actions/checkout@v4 | ||
with: | ||
filters: | | ||
common: | ||
- 'packages/common/**' | ||
config: | ||
- 'packages/config/**' | ||
mailer: | ||
- 'packages/mailer/**' | ||
schematics: | ||
- 'packages/schematics/**' | ||
fetch-depth: 0 | ||
|
||
# JOB to build common code | ||
common: | ||
needs: changes | ||
if: ${{ needs.changes.outputs.common == 'true' }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: build | ||
run: | | ||
cd packages/common | ||
pnpm install --no-frozen-lockfile | ||
pnpm run build | ||
# Connect your workspace on nx.app and uncomment this to enable task distribution. | ||
# The "--stop-agents-after" is optional, but allows idle agents to shut down once the "build" targets have been requested | ||
# - run: pnpm exec nx-cloud start-ci-run --distribute-on="5 linux-medium-js" --stop-agents-after="build" | ||
|
||
# JOB to build config code | ||
config: | ||
needs: changes | ||
if: ${{ needs.changes.outputs.config == 'true' }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: build | ||
run: | | ||
cd packages/config | ||
pnpm install --no-frozen-lockfile | ||
pnpm run build | ||
# JOB to build mailer code | ||
mailer: | ||
needs: changes | ||
if: ${{ needs.changes.outputs.mailer == 'true' }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: build | ||
run: | | ||
cd packages/mailer | ||
pnpm install --no-frozen-lockfile | ||
pnpm run build | ||
- uses: pnpm/action-setup@v2 | ||
with: | ||
version: 8 | ||
# Cache node_modules | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 20 | ||
cache: 'pnpm' | ||
- run: pnpm install --frozen-lockfile | ||
- uses: nrwl/nx-set-shas@v4 | ||
with: | ||
main-branch-name: develop | ||
|
||
# JOB to build schematics code | ||
schematics: | ||
needs: changes | ||
if: ${{ needs.changes.outputs.schematics == 'true' }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: build | ||
run: | | ||
cd packages/schematics | ||
pnpm install --no-frozen-lockfile | ||
pnpm run build | ||
- run: pnpm exec nx format:check | ||
- run: pnpm exec nx affected -t lint test build |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.