Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
sjimenez77 committed Dec 18, 2023
0 parents commit 642abaf
Show file tree
Hide file tree
Showing 226 changed files with 17,773 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Editor configuration, see http://editorconfig.org
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
max_line_length = off
trim_trailing_whitespace = false
4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
src/lib/**/files/**/*
**/src/lib/**/files/**/*
*.d.ts
**/*.d.ts
26 changes: 26 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
module.exports = {
ignorePatterns: ['**/files/src/**/*.ts', '*.d.ts', '**/*.d.ts', '**/files/**/*.ts'],
parser: '@typescript-eslint/parser',
parserOptions: {
project: 'tsconfig.json',
sourceType: 'module',
},
plugins: ['@typescript-eslint/eslint-plugin', 'prettier'],
extends: [
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
],
root: true,
env: {
node: true,
jest: true,
},
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',
},
};
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "npm" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "daily"
59 changes: 59 additions & 0 deletions .github/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# Configuration for probot-stale - https://github.com/probot/stale

# Number of days of inactivity before an Issue or Pull Request becomes stale
daysUntilStale: 30

# Number of days of inactivity before an Issue or Pull Request with the stale label is closed.
# Set to false to disable. If disabled, issues still need to be closed manually, but will remain marked as stale.
daysUntilClose: 7

# Only issues or pull requests with all of these labels are check if stale. Defaults to `[]` (disabled)
onlyLabels: []

# Issues or Pull Requests with these labels will never be considered stale. Set to `[]` to disable
exemptLabels:
- dependencies

# Set to true to ignore issues in a project (defaults to false)
exemptProjects: false

# Set to true to ignore issues in a milestone (defaults to false)
exemptMilestones: false

# Set to true to ignore issues with an assignee (defaults to false)
exemptAssignees: false

# Label to use when marking as stale
staleLabel: wontfix

# Comment to post when marking as stale. Set to `false` to disable
markComment: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.
# Comment to post when removing the stale label.
# unmarkComment: >
# Your comment here.

# Comment to post when closing a stale Issue or Pull Request.
# closeComment: >
# Your comment here.

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

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

# Optionally, specify configuration settings that are specific to just 'issues' or 'pulls':
# pulls:
# daysUntilStale: 30
# markComment: >
# This pull request has been automatically marked as stale because it has not had
# recent activity. It will be closed if no further activity occurs. Thank you
# for your contributions.

# issues:
# exemptLabels:
# - confirmed
87 changes: 87 additions & 0 deletions .github/workflows/ci-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
on:
push:
paths-ignore:
- 'documentation/**'
branches: [develop]

name: Build

jobs:
# JOB to run change detection
changes:
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: dorny/paths-filter@v2
id: filter
with:
filters: |
common:
- 'packages/common/**'
config:
- 'packages/config/**'
mailer:
- 'packages/mailer/**'
schematics:
- 'packages/schematics/**'
# 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
yarn install
yarn run 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
yarn install
yarn 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
yarn install
yarn run build
# 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
yarn install
yarn run build
20 changes: 20 additions & 0 deletions .github/workflows/ci-root.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: CI

on:
push:
branches: [ develop ]
pull_request:
branches: [ develop ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Install dependencies with YARN
run: yarn install

- name: Build the app
run: yarn run build
88 changes: 88 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
on:
push:
paths-ignore:
- 'documentation/**'
branches: [develop]

name: Build

jobs:
# JOB to run change detection
changes:
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
with:
filters: |
common:
- 'packages/common/**'
config:
- 'packages/config/**'
mailer:
- 'packages/mailer/**'
schematics:
- 'packages/schematics/**'
# 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
yarn install
yarn run 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
yarn install
yarn 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
yarn install
yarn run build
# 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
yarn install
yarn run build
14 changes: 14 additions & 0 deletions .github/workflows/devonfw-auto-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Auto merge dependabot PRs

on:
pull_request_target:

jobs:
auto-merge:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ahmadnassri/action-dependabot-auto-merge@v2
with:
target: minor
github-token: ${{ secrets.GHA_TOKEN }}
13 changes: 13 additions & 0 deletions .github/workflows/devonfw-spellcheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: spellcheck
on:
push:
paths:
- '**.asciidoc'
- '**.adoc'
- '**.md'
workflow_dispatch:
jobs:
spellchecker:
uses: devonfw/.github/.github/workflows/devonfw-spellchecker.yml@master
secrets:
RESUSABLE_GH_ACTION_TOKEN: ${{ secrets.GHA_TOKEN }}
17 changes: 17 additions & 0 deletions .github/workflows/devonfw-sync-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Sync Docs
on:
push:
paths:
- '**.asciidoc'
- '**.md'
branches:
- develop
workflow_dispatch:
jobs:
spellchecker:
uses: devonfw/.github/.github/workflows/devonfw-sync-docs.yml@master
secrets:
RESUSABLE_GH_ACTION_TOKEN: ${{ secrets.GHA_TOKEN }}
RESUSABLE_BUILD_USER: ${{ secrets.BUILD_USER }}
RESUSABLE_BUILD_USER_PASSWD: ${{ secrets.BUILD_USER_PASSWD }}
RESUSABLE_BUILD_USER_EMAIL: ${{ secrets.BUILD_USER_EMAIL }}
Loading

0 comments on commit 642abaf

Please sign in to comment.