Skip to content

Commit df076da

Browse files
committed
chore: initialize repository
0 parents  commit df076da

Some content is hidden

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

51 files changed

+1419
-0
lines changed

.commitlintrc.js

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2+
const {COMMIT_TYPES: TYPES, COMMIT_SCOPES: SCOPES} = require('./rules.js');
3+
4+
module.exports = {
5+
extends: ['@commitlint/config-conventional'],
6+
rules: {
7+
'type-enum': [2, 'always', Object.keys(TYPES) ],
8+
'scope-enum': async () => [2,'always', Object.keys(SCOPES)],
9+
},
10+
};
11+

.editorconfig

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
indent_style = space
6+
indent_size = 2
7+
end_of_line = lf
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
insert_final_newline = false
13+
trim_trailing_whitespace = false

.github/ISSUE_TEMPLATE.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<!-- trunk-ignore-all(markdownlint/MD041) -->
2+
Please help us process issues more efficiently by filing an
3+
issue using one of the following templates:
4+
5+
<https://github.com/ebizbase/dev-infras/issues/new/choose>
6+
7+
Thank you!

.github/ISSUE_TEMPLATE/bug_report.md

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: 'bug'
6+
assignees: ''
7+
---
8+
## Describe the bug
9+
A clear and concise description of what the bug is.
10+
11+
## To Reproduce
12+
Steps to reproduce the behavior:
13+
1. Go to '...'
14+
2. Click on '....'
15+
3. Scroll down to '....'
16+
4. See error
17+
18+
## Expected behavior
19+
A clear and concise description of what you expected to happen.
20+
21+
## Screenshots
22+
If applicable, add screenshots to help explain your problem.
23+
24+
## Desktop (please complete the following information)
25+
- OS: [e.g. iOS]
26+
- Browser [e.g. chrome, safari]
27+
- Version [e.g. 22]
28+
29+
## Smartphone (please complete the following information)
30+
- Device: [e.g. iPhone6]
31+
- OS: [e.g. iOS8.1]
32+
- Browser [e.g. stock browser, safari]
33+
- Version [e.g. 22]
34+
35+
## Additional context
36+
Add any other context about the problem here.

.github/ISSUE_TEMPLATE/config.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
blank_issues_enabled: false
+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: 'feature'
6+
assignees: ''
7+
---
8+
9+
## Is your feature request related to a problem? Please describe
10+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
11+
12+
## Describe the solution you'd like
13+
A clear and concise description of what you want to happen.
14+
15+
## Describe alternatives you've considered
16+
A clear and concise description of any alternative solutions or features you've considered.

.github/PULL_REQUEST_TEMPLATE.md

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<!-- trunk-ignore-all(markdownlint/MD041) -->
2+
## Feature PR Checklist
3+
Please check if your PR fulfills the following requirements:
4+
5+
- [] The commit message follows our guidelines: <https://github.com/ebizbase/dev-infras/blob/main/CONTRIBUTING.md#commit-message-guidelines>
6+
- [] Tests for the changes have been added
7+
- [] Docs have been added / updated
8+
9+
## PR Type
10+
- [] Feature
11+
- [] BugFix
12+
- [] Other
13+
14+
## Does this PR introduce a breaking change?
15+
- [ ] Yes
16+
- [ ] No
17+
18+
## What is the current behavior?
19+
<!-- Please describe the current behavior that you are modifying, or link to a relevant issue. -->
20+
21+
## What is the new behavior?
22+
<!-- Please describe the new behavior or changes that you are adding. -->
23+
<!-- If this PR contains a breaking change, please describe the impact and migration path for existing applications below. -->
24+
25+
## Other information
26+
<!-- Any other information that is important to this PR such as screenshots of how the component looks before and after the change. -->

.github/actions/setup/README.md

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Setup Project Composite Action
2+
3+
This composite action sets up a project with Node.js, pnpm, and Docker Buildx.
4+
5+
Version: 0.0.0 <!-- x-release-please-version -->
6+
7+
## Inputs
8+
9+
- `dependencies`: Install dependencies (default: `false`)
10+
- `docker-buildx`: Install Docker Buildx (default: `false`)
11+
12+
## Example Usage
13+
14+
```yaml
15+
name: CI
16+
17+
on:
18+
push:
19+
branches:
20+
- main
21+
22+
jobs:
23+
build:
24+
runs-on: ubuntu-latest
25+
26+
steps:
27+
- name: Checkout repository
28+
uses: actions/checkout@v2
29+
30+
- name: Setup project
31+
uses: ebizbase/ebizbase/actions/setup
32+
with:
33+
dependencies: true
34+
docker-buildx: true
35+
```

.github/actions/setup/action.yaml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Setup project
2+
description: Setup project with node pnpm docker-buildx
3+
inputs:
4+
dependencies:
5+
description: Install dependencies
6+
required: false
7+
buildx:
8+
description: Install docker buildx
9+
required: false
10+
runs:
11+
using: composite
12+
steps:
13+
- name: Setup Node.js
14+
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4
15+
with:
16+
node-version: lts/*
17+
18+
- uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4
19+
if: ${{ inputs.dependencies == 'true' }}
20+
with:
21+
path: ~/.bun/install/cache
22+
key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lockb') }}
23+
restore-keys: |
24+
${{ runner.os }}-bun-
25+
26+
- name: Setup Bun
27+
if: ${{ inputs.dependencies == 'true' }}
28+
uses: oven-sh/setup-bun@4bc047ad259df6fc24a6c9b0f9a0cb08cf17fbe5 # v2
29+
30+
- name: Install npm dependencies
31+
if: ${{ inputs.dependencies == 'true' }}
32+
shell: bash
33+
run: bun install --frozen-lockfile
34+
35+
- name: Install docker buildx
36+
if: ${{ inputs.buildx == 'true' }}
37+
uses: docker/setup-buildx-action@c47758b77c9736f4b2ef4073d4d51994fabfe349 # v3

.github/pr-size.yaml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Configuration for PR Size Labeler
2+
3+
# List of files to exclude from size calculation
4+
# Files matching these patterns will not be considered when calculating PR size
5+
exclude_files:
6+
- pnpm-lock.yaml
7+
8+
# Configuration for labeling based on the size of the Pull Request
9+
# Each entry defines a size label, along with thresholds for diff and file count
10+
label_configs:
11+
# Configuration for 'extra small' PRs
12+
- size: xs
13+
diff: 25 # Threshold for the total lines of code changed (additions + deletions)
14+
files: 1 # Threshold for the total number of files changed
15+
labels: [size/xs] # Labels to be applied for this size
16+
17+
# Configuration for 'small' PRs
18+
- size: s
19+
diff: 150
20+
files: 10
21+
labels: [size/s]
22+
23+
# Configuration for 'medium' PRs
24+
- size: m
25+
diff: 600
26+
files: 25
27+
labels: [size/m, pairing-wanted]
28+
29+
# Configuration for 'large' PRs
30+
- size: l
31+
diff: 2500
32+
files: 50
33+
labels: [size/l, pairing-wanted]
34+
35+
# Configuration for 'extra large' PRs
36+
- size: xl
37+
diff: 5000
38+
files: 100
39+
labels: [size/xl, pairing-wanted]

.github/renovate.json

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"extends": ["config:recommended"],
4+
"baseBranches": ["main"],
5+
"rangeStrategy": "replace",
6+
"pinDigests": true,
7+
"prConcurrentLimit": 5,
8+
"semanticCommits": "enabled",
9+
"semanticCommitScope": "deps",
10+
"semanticCommitType": "chore",
11+
"dependencyDashboard": true,
12+
"branchPrefix": "renovate/",
13+
"dependencyDashboardAutoclose": true,
14+
"commitBodyTable": true,
15+
"schedule": ["before 1am"],
16+
"automerge": false,
17+
"lockFileMaintenance": {
18+
"enabled": true
19+
},
20+
"packageRules": [
21+
{
22+
"groupName": "All patch dependencies",
23+
"matchPackageNames": ["*"],
24+
"matchUpdateTypes": ["patch"],
25+
"automerge": true
26+
},
27+
{
28+
"groupName": "Linting packages",
29+
"matchPackageNames": [
30+
"@types/eslint",
31+
"babel-eslint",
32+
"@babel/eslint-parser",
33+
"@eslint/**",
34+
"@eslint-community/**",
35+
"@stylistic/eslint-plugin**",
36+
"@types/eslint__**",
37+
"@typescript-eslint/**",
38+
"typescript-eslint",
39+
"eslint**",
40+
"@commitlint/**"
41+
]
42+
},
43+
{
44+
"groupName": "Testing libraries",
45+
"matchPackageNames": ["/jest/", "/ts-jest/", "/@playwright/test/"]
46+
},
47+
{
48+
"groupName": "Nx packages",
49+
"matchPackageNames": ["/^@nx//", "/nx/", "@nx/jest"]
50+
}
51+
]
52+
}

.github/workflows/analysis.yaml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Analysis
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- main
8+
pull_request:
9+
branches:
10+
- main
11+
merge_group:
12+
schedule:
13+
- cron: 0 0 * * *
14+
15+
permissions:
16+
contents: read
17+
security-events: write
18+
19+
jobs:
20+
codeql:
21+
name: CodeQL Runner
22+
runs-on: ubuntu-latest
23+
steps:
24+
- name: Checkout
25+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
26+
- name: Initialize CodeQL
27+
uses: github/codeql-action/init@ea9e4e37992a54ee68a9622e985e60c8e8f12d9f # v3
28+
with:
29+
languages: javascript
30+
- name: Perform CodeQL Analysis
31+
uses: github/codeql-action/analyze@ea9e4e37992a54ee68a9622e985e60c8e8f12d9f # v3

0 commit comments

Comments
 (0)