Skip to content

Commit

Permalink
Merge branch 'Nx-migration' into rename_devon4ts_node
Browse files Browse the repository at this point in the history
  • Loading branch information
Jose Tomas Hernandez Lopez committed Feb 23, 2024
2 parents bb920f3 + 21f91dc commit ee38993
Show file tree
Hide file tree
Showing 130 changed files with 4,021 additions and 8,168 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
8 changes: 4 additions & 4 deletions .github/workflows/devonfw-spellcheck.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: spellcheck
name: spellcheck
on:
push:
paths:
- '**.asciidoc'
- '**.adoc'
- '**.md'
- '**.asciidoc'
- '**.adoc'
- '**.md'
workflow_dispatch:
jobs:
spellchecker:
Expand Down
Loading

0 comments on commit ee38993

Please sign in to comment.