Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
20 changes: 20 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"$schema": "https://raw.githubusercontent.com/changesets/changesets/main/packages/config/schema.json",
"access": "public",
"baseBranch": "main",
"changelog": [
"@changesets/changelog-github",
{ "repo": "pfaffmann/react-geogebra" }
],
"commit": false,
"ignore": ["@examples/*"],
"privatePackages": {
"tag": true,
"version": true
},
"updateInternalDependencies": "patch",
"___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": {
"onlyUpdatePeerDependentsWhenOutOfRange": true,
"updateInternalDependents": "out-of-range"
}
}
5 changes: 5 additions & 0 deletions .changeset/welcome.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"react-geogebra": minor
---

v0.1.0 release 🚀
4 changes: 4 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
root = true

[*]
indent_size = 4
34 changes: 34 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
name: "🐛 Bug Report"
about: Report a reproducible bug or regression.
title: "Bug: "
labels: ["bug", "triage"]
---

## Description

<!--
Please provide a clear and concise description of what the bug is with the current and expected behavior(s). Include
screenshots if needed. Please test using the latest version of the relevant package to make sure your issue has not already been fixed.
-->

## Reproduction

<!--
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.
-->

## Environment

<!--
Please provide the environment you discovered this bug in.
It must include following informations:
- OS [eg. Android, iOS, mac OS, Windows, ...]
- Browser [eg. Chrome@110, Safari@16, ...]
-->

## Additional context

<!--
Add any other context about the problem (eg. issue URL, related issues, documentation, etc...)
-->
4 changes: 4 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
blank_issues_enabled: false
contact_links:
- name: 🤔 Questions and Help
about: Issues are dedicated to bugs, if you have any question, please use the dedicated GitHub discussion category.
29 changes: 29 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<!--
Thanks for submitting a pull request!
We appreciate you spending the time to work on these changes. Before requesting reviews, please make sure that:

1. Your contribution follows coding conventions
2. Some valuable tests have been added
3. For non-internal change, a changelog entry is added

Learn more about contributing [here](https://github.com/pfaffmann/react-geogebra/blob/main/CONTRIBUTING.md)
-->

## Description

Please include a concise summary of the change with the relevant context and main highlights:

- [ ] What I've done 1
- [ ] What I've done 2...

## Screenshots

| Before | After |
| ------ | ----- |
| Image | Image |

## Resources

- Issue (GitHub, ...)
- Specification (ADRs, RFCs, ...)
- ...
69 changes: 69 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
":automergeAll",
":automergePr",
":automergeRequireAllStatusChecks",
":enableVulnerabilityAlerts",
":label(dependencies)",
":maintainLockFilesMonthly",
":prConcurrentLimit10",
":rebaseStalePrs",
":semanticCommits",
":semanticCommitScopeDisabled",
":semanticPrefixFixDepsChoreOthers",
":timezone(Europe/Paris)",
"npm:unpublishSafe",
"replacements:all",
"schedule:monthly",
"workarounds:all"
],
"commitBodyTable": true,
"platformAutomerge": false,
"ignoreDeps": [],
"packageRules": [
{
"matchPackagePatterns": ["*"],
"rangeStrategy": "auto"
},
{
"matchDepTypes": ["devDependencies"],
"rangeStrategy": "pin"
},
{
"matchDepTypes": ["dependencies"],
"rangeStrategy": "bump"
},
{
"description": "Synchronize CircleCI Docker image version with the Node.js one",
"matchPackageNames": ["cimg/node"],
"versioning": "node"
},
{
"groupName": "package dependencies",
"matchManagers": ["npm"],
"matchDepTypes": [
"dependencies",
"devDependencies",
"optionalDependencies",
"peerDependencies"
]
},
{
"groupName": "infrastructure dependencies",
"matchManagers": [
"circleci",
"github-actions",
"dockerfile",
"terraform",
"terraform-version",
"docker-compose",
"kubernetes"
]
},
{
"groupName": "engine dependencies",
"matchPackagePatterns": ["node", "pnpm"]
}
]
}
50 changes: 50 additions & 0 deletions .github/workflows/continuous_delivery.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Continous delivery

on:
push:
branches:
- main

concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
integrate:
uses: ./.github/workflows/workflow.yml
release:
timeout-minutes: 5
needs: integrate
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
pull-requests: write
steps:
- uses: actions/checkout@v6
- uses: pnpm/action-setup@v5
- uses: actions/setup-node@v6
with:
cache: pnpm
node-version-file: ".nvmrc"
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Publish pre-release version(s)
if: "!contains(github.event.head_commit.message, 'chore: release package(s)')"
run: |
pnpm --filter="!." --filter="!./(applications|examples|tools)/*" --recursive exec pnpm version "$(pnpm show ./ version)-next-${GITHUB_SHA::7}" --no-git-tag-version
pnpm --filter="!." --filter="!./(applications|examples|tools)/*" --recursive exec pnpm publish --tag next --no-git-checks
- name: Create release pull request
if: "!contains(github.event.head_commit.message, 'chore: release package(s)')"
uses: changesets/action@v1
with:
commit: "chore: release package(s)"
title: "chore: release package(s)"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish stable version(s)
if: "contains(github.event.head_commit.message, 'chore: release package(s)')"
uses: changesets/action@v1
with:
version: pnpm release:version
publish: pnpm release:publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9 changes: 9 additions & 0 deletions .github/workflows/continuous_integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: Continuous integration

on:
push:
branches-ignore: main

jobs:
main:
uses: ./.github/workflows/workflow.yml
47 changes: 47 additions & 0 deletions .github/workflows/conventional_commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Conventional commit

on:
pull_request:
types: [opened, edited]

jobs:
main:
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v6
id: check_pr_rule
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
types: |
build
chore
ci
docs
feat
fix
perf
refactor
revert
style
test
requireScope: false
subjectPattern: ^(?![A-Z]).+$
subjectPatternError: The subject must start with a lowercase character
- uses: marocchino/sticky-pull-request-comment@v3
if: always() && (steps.check_pr_rule.outputs.error_message != null)
with:
header: check_pr_comment
message: |
Pull request titles must follow the [Conventional Commits specification](https://www.conventionalcommits.org/).
Please adjust your title following:
```
${{ steps.check_pr_rule.outputs.error_message }}
```
# Delete a previous comment when the issue has been resolved
- if: ${{ steps.check_pr_rule.outputs.error_message == null }}
uses: marocchino/sticky-pull-request-comment@v2
with:
header: check_pr_comment
delete: true
Loading
Loading