Skip to content

Commit

Permalink
Merge branch 'Nx-migration' of https://github.com/devonfw/devon4ts in…
Browse files Browse the repository at this point in the history
…to Nx-migration
  • Loading branch information
sjimenez77 committed Feb 28, 2024
2 parents df7239c + eb2177b commit fdbb6b1
Show file tree
Hide file tree
Showing 146 changed files with 4,175 additions and 8,305 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules
src/lib/**/files/**/*
**/src/lib/**/files/**/*
*.d.ts
Expand Down
56 changes: 56 additions & 0 deletions .eslintrc.base.json
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": {}
}
]
}
26 changes: 0 additions & 26 deletions .eslintrc.js

This file was deleted.

39 changes: 39 additions & 0 deletions .eslintrc.json
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"]
}
6 changes: 3 additions & 3 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

version: 2
updates:
- package-ecosystem: "npm" # See documentation for possible values
directory: "/" # Location of package manifests
- package-ecosystem: 'npm' # See documentation for possible values
directory: '/' # Location of package manifests
schedule:
interval: "daily"
interval: 'daily'
1 change: 0 additions & 1 deletion .github/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ markComment: >

# Limit the number of actions per hour, from 1-30. Default is 30
limitPerRun: 30

# Limit to only `issues` or `pulls`
# only: issues

Expand Down
87 changes: 0 additions & 87 deletions .github/workflows/ci-pr.yml

This file was deleted.

20 changes: 0 additions & 20 deletions .github/workflows/ci-root.yml

This file was deleted.

105 changes: 28 additions & 77 deletions .github/workflows/ci.yml
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
13 changes: 0 additions & 13 deletions .github/workflows/devonfw-spellcheck.yml

This file was deleted.

Loading

0 comments on commit fdbb6b1

Please sign in to comment.