Skip to content

Commit 8a4ab9e

Browse files
committed
chore: resetup monorepo
1 parent 7764e81 commit 8a4ab9e

Some content is hidden

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

40 files changed

+5221
-2423
lines changed

.changeset/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changesets
2+
3+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4+
with multi-package repos, or single-package repos to help you version and publish your code. You can
5+
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6+
7+
We have a quick list of common questions to get you started engaging with this project in
8+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

.changeset/config.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/changesets/changesets/main/packages/config/schema.json",
3+
"access": "public",
4+
"baseBranch": "main",
5+
"changelog": ["@changesets/changelog-github", { "repo": "adbayb/esonar" }],
6+
"commit": false,
7+
"ignore": ["@examples/*"],
8+
"updateInternalDependencies": "patch",
9+
"___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": {
10+
"onlyUpdatePeerDependentsWhenOutOfRange": true,
11+
"updateInternalDependents": "out-of-range"
12+
}
13+
}

.changeset/welcome.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"esonar": minor
3+
"@esonar/core": minor
4+
---
5+
6+
v0.1.0 release 🚀
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
name: "🐛 Bug Report"
3+
about: Report a reproducible bug or regression.
4+
title: "Bug: "
5+
labels: ["bug", "triage"]
6+
---
7+
8+
## Description
9+
10+
<!--
11+
Please provide a clear and concise description of what the bug is with the current and expected behavior(s). Include
12+
screenshots if needed. Please test using the latest version of the relevant package to make sure your issue has not already been fixed.
13+
-->
14+
15+
## Reproduction
16+
17+
<!--
18+
Issues without reproduction steps or code examples may be immediately closed as not actionable. Your bug will get fixed much faster if we can run your code. You may provide a screenshot of the application if you think it is relevant to your bug report. Here are some tips for providing a minimal example: https://stackoverflow.com/help/mcve.
19+
-->
20+
21+
## Environment
22+
23+
<!--
24+
Please provide the environment you discovered this bug in.
25+
It must include following informations:
26+
- OS [eg. Android, iOS, mac OS, Windows, ...]
27+
- Browser [eg. Chrome@110, Safari@16, ...]
28+
-->
29+
30+
## Additional context
31+
32+
<!--
33+
Add any other context about the problem (eg. issue URL, related issues, documentation, etc...)
34+
-->

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: 🤔 Questions and Help
4+
about: Issues are dedicated to bugs, if you have any question, please use the dedicated GitHub discussion category.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<!--
2+
Thanks for submitting a pull request!
3+
We appreciate you spending the time to work on these changes. Before requesting reviews, please make sure that:
4+
5+
1. Your contribution follows coding conventions
6+
2. Some valuable tests have been added
7+
3. For non-internal change, a changelog entry is added
8+
9+
Learn more about contributing [here](https://github.com/adbayb/esonar/blob/main/CONTRIBUTING.md)
10+
-->
11+
12+
## Description
13+
14+
Please include a concise summary of the change with the relevant context and main highlights:
15+
16+
- [ ] What I've done 1
17+
- [ ] What I've done 2...
18+
19+
## Screenshots
20+
21+
| Before | After |
22+
| ------ | ----- |
23+
| Image | Image |
24+
25+
## Resources
26+
27+
- Issue (GitHub, ...)
28+
- Specification (ADRs, RFCs, ...)
29+
- ...

.github/renovate.json

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"extends": [
4+
":automergeAll",
5+
":automergePr",
6+
":automergeRequireAllStatusChecks",
7+
":enableVulnerabilityAlerts",
8+
":label(dependencies)",
9+
":maintainLockFilesMonthly",
10+
":prConcurrentLimit10",
11+
":rebaseStalePrs",
12+
":semanticCommits",
13+
":semanticCommitScopeDisabled",
14+
":semanticPrefixFixDepsChoreOthers",
15+
":timezone(Europe/Paris)",
16+
"npm:unpublishSafe",
17+
"replacements:all",
18+
"schedule:monthly",
19+
"workarounds:all"
20+
],
21+
"commitBodyTable": true,
22+
"platformAutomerge": false,
23+
"ignoreDeps": [],
24+
"packageRules": [
25+
{
26+
"matchPackagePatterns": ["*"],
27+
"rangeStrategy": "auto"
28+
},
29+
{
30+
"matchDepTypes": ["devDependencies"],
31+
"rangeStrategy": "pin"
32+
},
33+
{
34+
"matchDepTypes": ["dependencies"],
35+
"rangeStrategy": "bump"
36+
},
37+
{
38+
"description": "Synchronize CircleCI Docker image version with the Node.js one",
39+
"matchPackageNames": ["cimg/node"],
40+
"versioning": "node"
41+
},
42+
{
43+
"groupName": "package dependencies",
44+
"matchManagers": ["npm"],
45+
"matchDepTypes": [
46+
"dependencies",
47+
"devDependencies",
48+
"optionalDependencies",
49+
"peerDependencies"
50+
]
51+
},
52+
{
53+
"groupName": "infrastructure dependencies",
54+
"matchManagers": [
55+
"circleci",
56+
"github-actions",
57+
"dockerfile",
58+
"terraform",
59+
"terraform-version",
60+
"docker-compose",
61+
"kubernetes"
62+
]
63+
},
64+
{
65+
"groupName": "engine dependencies",
66+
"matchPackagePatterns": ["node", "pnpm"]
67+
}
68+
]
69+
}

.github/workflows/integrate.yml

Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
name: Continuous Integration
2+
3+
on:
4+
push:
5+
6+
jobs:
7+
install:
8+
timeout-minutes: 5
9+
name: Install
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout the code
13+
uses: actions/checkout@v3
14+
- uses: pnpm/action-setup@v2
15+
- name: Get node version
16+
run: echo "version=$(cat .nvmrc)" >> $GITHUB_OUTPUT
17+
id: node
18+
- name: Setup node ${{ steps.node.outputs.version }}
19+
uses: actions/setup-node@v3
20+
with:
21+
node-version: ${{ steps.node.outputs.version }}
22+
cache: pnpm
23+
- name: Setup cache
24+
id: cache
25+
uses: actions/cache@v3
26+
with:
27+
path: |
28+
./node_modules
29+
./turbo
30+
key: ${{ runner.os }}-cache-${{ github.sha }}
31+
restore-keys: |
32+
${{ runner.os }}-cache-
33+
- name: Install dependencies
34+
run: pnpm install --frozen-lockfile
35+
build:
36+
timeout-minutes: 5
37+
needs: install
38+
name: Build
39+
runs-on: ubuntu-latest
40+
steps:
41+
- name: Checkout code
42+
uses: actions/checkout@v3
43+
- uses: pnpm/action-setup@v2
44+
- name: Get node version
45+
run: echo "version=$(cat .nvmrc)" >> $GITHUB_OUTPUT
46+
id: node
47+
- name: Setup node ${{ steps.node.outputs.version }}
48+
uses: actions/setup-node@v3
49+
with:
50+
node-version: ${{ steps.node.outputs.version }}
51+
cache: pnpm
52+
- name: Setup cache
53+
id: cache
54+
uses: actions/cache@v3
55+
with:
56+
path: |
57+
./node_modules
58+
./turbo
59+
key: ${{ runner.os }}-cache-${{ github.sha }}
60+
restore-keys: |
61+
${{ runner.os }}-cache-
62+
- name: Install dependencies
63+
run: pnpm install --frozen-lockfile
64+
- name: Build
65+
run: pnpm build
66+
check:
67+
timeout-minutes: 5
68+
needs: build
69+
name: Check
70+
runs-on: ubuntu-latest
71+
steps:
72+
- name: Checkout the code
73+
uses: actions/checkout@v3
74+
- uses: pnpm/action-setup@v2
75+
- name: Get node version
76+
run: echo "version=$(cat .nvmrc)" >> $GITHUB_OUTPUT
77+
id: node
78+
- name: Setup node ${{ steps.node.outputs.version }}
79+
uses: actions/setup-node@v3
80+
with:
81+
node-version: ${{ steps.node.outputs.version }}
82+
cache: pnpm
83+
- name: Setup cache
84+
id: cache
85+
uses: actions/cache@v3
86+
with:
87+
path: |
88+
./node_modules
89+
./turbo
90+
key: ${{ runner.os }}-cache-${{ github.sha }}
91+
restore-keys: |
92+
${{ runner.os }}-cache-
93+
- name: Install dependencies
94+
run: pnpm install --frozen-lockfile
95+
- name: Check (static analysis including linters, types, and commit message)
96+
run: pnpm check
97+
test:
98+
timeout-minutes: 5
99+
needs: build
100+
name: Test
101+
runs-on: ubuntu-latest
102+
steps:
103+
- name: Checkout the code
104+
uses: actions/checkout@v3
105+
- uses: pnpm/action-setup@v2
106+
- name: Get node version
107+
run: echo "version=$(cat .nvmrc)" >> $GITHUB_OUTPUT
108+
id: node
109+
- name: Setup node ${{ steps.node.outputs.version }}
110+
uses: actions/setup-node@v3
111+
with:
112+
node-version: ${{ steps.node.outputs.version }}
113+
cache: pnpm
114+
- name: Setup cache
115+
id: cache
116+
uses: actions/cache@v3
117+
with:
118+
path: |
119+
./node_modules
120+
./turbo
121+
key: ${{ runner.os }}-cache-${{ github.sha }}
122+
restore-keys: |
123+
${{ runner.os }}-cache-
124+
- name: Install dependencies
125+
run: pnpm install --frozen-lockfile
126+
- name: Check (code execution)
127+
run: pnpm test

.github/workflows/pull_request.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Check pull request
2+
3+
on:
4+
pull_request:
5+
types: [opened, edited]
6+
7+
jobs:
8+
pr_title:
9+
timeout-minutes: 5
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: amannn/action-semantic-pull-request@v5
13+
id: check_pr_rule
14+
env:
15+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
16+
with:
17+
types: |
18+
build
19+
chore
20+
ci
21+
docs
22+
feat
23+
fix
24+
perf
25+
refactor
26+
revert
27+
style
28+
test
29+
requireScope: false
30+
subjectPattern: ^(?![A-Z]).+$
31+
subjectPatternError: The subject must start with a lowercase character
32+
# Create a sticky comment to display the detailed error
33+
- uses: marocchino/sticky-pull-request-comment@v2
34+
if: always() && (steps.check_pr_rule.outputs.error_message != null)
35+
with:
36+
header: check_pr_comment
37+
message: |
38+
Pull request titles must follow the [Conventional Commits specification](https://www.conventionalcommits.org/).
39+
Please adjust your title following:
40+
```
41+
${{ steps.check_pr_rule.outputs.error_message }}
42+
```
43+
# Delete a previous comment when the issue has been resolved
44+
- if: ${{ steps.check_pr_rule.outputs.error_message == null }}
45+
uses: marocchino/sticky-pull-request-comment@v2
46+
with:
47+
header: check_pr_comment
48+
delete: true

.github/workflows/release.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
concurrency: ${{ github.workflow }}-${{ github.ref }}
9+
10+
jobs:
11+
release:
12+
timeout-minutes: 5
13+
runs-on: ubuntu-latest
14+
permissions:
15+
contents: write
16+
pull-requests: write
17+
steps:
18+
- uses: actions/checkout@v3
19+
- uses: pnpm/action-setup@v2
20+
- name: Get node version
21+
run: echo "version=$(cat .nvmrc)" >> $GITHUB_OUTPUT
22+
id: node
23+
- name: Setup node ${{ steps.node.outputs.version }}
24+
uses: actions/setup-node@v3
25+
with:
26+
node-version: ${{ steps.node.outputs.version }}
27+
cache: pnpm
28+
- name: Setup .npmrc
29+
run: |
30+
cat << EOF > "$HOME/.npmrc"
31+
//registry.npmjs.org/:_authToken=$NPM_TOKEN
32+
EOF
33+
env:
34+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
35+
- name: Install dependencies
36+
run: pnpm install --frozen-lockfile
37+
- name: Create release pull request
38+
uses: changesets/action@v1
39+
with:
40+
commit: "chore: release package(s)"
41+
title: "chore: release package(s)"
42+
version: pnpm release:version
43+
publish: pnpm release:publish
44+
env:
45+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)