Skip to content

Commit 546a55b

Browse files
authored
feat: ci/cd (#17)
Adds CI/CD using Github Actions for: CI 🧪 Documentation 📚 Issue Close Require 🔒 Issue Labeled 🔖 Lock Closed Issues 🔒 Publish Any Commit 🚀 Release (experimental) 📦 Semantic Pull Request 🔍 Adds templates for issues and pull requests Fixes necessary formatting, linter errors and test cases
1 parent ad417f4 commit 546a55b

File tree

122 files changed

+2281
-525
lines changed

Some content is hidden

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

122 files changed

+2281
-525
lines changed

.eslintignore

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
node_modules
2+
dist
3+
build
4+
.react-server
5+
.vercel
6+
packages/react-server-router/react-server-router.d.ts
7+
*.mdx
8+
*.md
9+
*.json
10+
*-lock.*

.eslintrc.cjs

-72
This file was deleted.

.eslintrc.json

+77
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"es2021": true,
5+
"node": true
6+
},
7+
"globals": {
8+
"Deno": "readonly"
9+
},
10+
"extends": [
11+
"eslint:recommended",
12+
"plugin:react/recommended",
13+
"plugin:react/jsx-runtime",
14+
"plugin:jsx-a11y/recommended",
15+
"plugin:prettier/recommended"
16+
],
17+
"overrides": [
18+
{
19+
"env": {
20+
"node": true
21+
},
22+
"files": [".eslintrc.{js,cjs}"],
23+
"parserOptions": {
24+
"sourceType": "script"
25+
}
26+
},
27+
{
28+
"env": {
29+
"node": true
30+
},
31+
"files": ["*.{ts,tsx}"],
32+
"extends": [
33+
"eslint:recommended",
34+
"plugin:@typescript-eslint/recommended"
35+
],
36+
"parser": "@typescript-eslint/parser",
37+
"plugins": ["@typescript-eslint"],
38+
"rules": {
39+
"@typescript-eslint/no-unused-vars": [
40+
"error",
41+
{ "argsIgnorePattern": "^_" }
42+
],
43+
"@typescript-eslint/no-explicit-any": "off",
44+
"@typescript-eslint/explicit-module-boundary-types": "off"
45+
}
46+
}
47+
],
48+
"parser": "@babel/eslint-parser",
49+
"parserOptions": {
50+
"requireConfigFile": false,
51+
"babelOptions": {
52+
"presets": ["@babel/preset-react"],
53+
"plugins": ["@babel/plugin-syntax-import-assertions"]
54+
},
55+
"ecmaFeatures": {
56+
"jsx": true
57+
},
58+
"sourceType": "module"
59+
},
60+
"plugins": ["react", "simple-import-sort", "prettier", "jsx-a11y"],
61+
"settings": {
62+
"react": {
63+
"version": "19.0.0"
64+
}
65+
},
66+
"rules": {
67+
"react/prop-types": "off",
68+
"simple-import-sort/imports": [
69+
"error",
70+
{
71+
"groups": [["^\\u0000"], ["^node:"], ["^react"], ["^[^.]"], ["^\\."]]
72+
}
73+
],
74+
"no-async-promise-executor": "off",
75+
"prettier/prettier": ["error", { "endOfLine": "auto" }]
76+
}
77+
}

.github/ISSUE_TEMPLATE/bug_report.yml

+86
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
# This issue template is based on https://github.com/vitejs/vite/tree/main/.github/ISSUE_TEMPLATE
2+
name: "\U0001F41E Bug report"
3+
description: Report an issue with @lazarv/react-server
4+
labels: [pending triage]
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
Thanks for taking the time to fill out this bug report!
10+
- type: textarea
11+
id: bug-description
12+
attributes:
13+
label: Describe the bug
14+
description: A clear and concise description of what the bug is. If you intend to submit a PR for this issue, tell us in the description. Thanks!
15+
placeholder: I am doing ... What I expect is ... What actually happening is ...
16+
validations:
17+
required: true
18+
- type: input
19+
id: reproduction
20+
attributes:
21+
label: Reproduction
22+
description: Please provide a link to a repo that can reproduce the problem you ran into. Please provide a [minimal reproduction](https://stackoverflow.com/help/minimal-reproducible-example) if possible.
23+
placeholder: Reproduction URL
24+
- type: textarea
25+
id: reproduction-steps
26+
attributes:
27+
label: Steps to reproduce
28+
description: Please provide any reproduction steps that may need to be described. E.g. if it happens only when running the dev or build script make sure it's clear which one to use.
29+
placeholder: Run `npm install` followed by `npm run dev`
30+
- type: textarea
31+
id: system-info
32+
attributes:
33+
label: System Info
34+
description: Output of `npx envinfo --system --npmPackages '{@lazarv/react-server,@lazarv/react-server-*,react,react-dom,react-server-dom-webpack,vite}' --binaries --browsers`
35+
render: shell
36+
placeholder: System, Binaries, Browsers
37+
validations:
38+
required: true
39+
- type: dropdown
40+
id: package-manager
41+
attributes:
42+
label: Used Package Manager
43+
description: Select the used package manager
44+
options:
45+
- npm
46+
- yarn
47+
- pnpm
48+
validations:
49+
required: true
50+
- type: textarea
51+
id: logs
52+
attributes:
53+
label: Logs
54+
description: |
55+
Optional if provided reproduction. Please try not to insert an image but copy paste the log text.
56+
57+
1. Run `react-server` or `react-server build` with the `DEBUG=*` environment variable set.
58+
2. Provide the error log here in the format below.
59+
60+
````
61+
<details>
62+
<summary>Click to expand!</summary>
63+
64+
```shell
65+
// paste the log text here
66+
```
67+
</details>
68+
````
69+
- type: checkboxes
70+
id: checkboxes
71+
attributes:
72+
label: Validations
73+
description: Before submitting the issue, please make sure you do the following
74+
options:
75+
- label: Follow our [Code of Conduct](https://github.com/lazarv/react-server/blob/main/CODE_OF_CONDUCT.md)
76+
required: true
77+
- label: Read the [Contributing Guidelines](https://github.com/lazarv/react-server/blob/main/CONTRIBUTING.md).
78+
required: true
79+
- label: Read the [docs](https://react-server.dev).
80+
required: true
81+
- label: Check that there isn't [already an issue](https://github.com/lazarv/react-server/issues) that reports the same bug to avoid creating a duplicate.
82+
required: true
83+
- label: Check that this is a concrete bug. For Q&A open a [GitHub Discussion](https://github.com/lazarv/react-server/discussions).
84+
required: true
85+
- label: The provided reproduction is a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) of the bug.
86+
required: true

.github/ISSUE_TEMPLATE/config.yml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# This issue template is based on https://github.com/vitejs/vite/tree/main/.github/ISSUE_TEMPLATE
2+
blank_issues_enabled: false
3+
contact_links:
4+
- name: Questions & Discussions
5+
url: https://github.com/lazarv/react-server/discussions
6+
about: Use GitHub discussions for message-board style questions and discussions.

.github/ISSUE_TEMPLATE/docs.yml

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# This issue template is based on https://github.com/vitejs/vite/tree/main/.github/ISSUE_TEMPLATE
2+
name: "\U0001F4DA Documentation"
3+
description: Suggest a change or new page to be added to react-server.dev
4+
labels: [documentation]
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
Thanks for taking the time to fill out this issue!
10+
- type: checkboxes
11+
id: documentation_is
12+
attributes:
13+
label: Documentation is
14+
options:
15+
- label: Missing
16+
- label: Outdated
17+
- label: Confusing
18+
- label: Not sure?
19+
- type: textarea
20+
id: description
21+
attributes:
22+
label: Explain in Detail
23+
description: A clear and concise description of your suggestion. If you intend to submit a PR for this issue, tell us in the description. Thanks!
24+
placeholder: The description of ... page is not clear. I thought it meant ... but it wasn't.
25+
validations:
26+
required: true
27+
- type: textarea
28+
id: suggestion
29+
attributes:
30+
label: Your Suggestion for Changes
31+
validations:
32+
required: true
33+
- type: input
34+
id: reproduction
35+
attributes:
36+
label: Reproduction
37+
description: If you have a reproduction, please provide a link to a repo that can reproduce the problem you ran into.
38+
placeholder: Reproduction URL
39+
- type: textarea
40+
id: reproduction-steps
41+
attributes:
42+
label: Steps to reproduce
43+
description: Please provide any reproduction steps that may need to be described. E.g. if it happens only when running the dev or build script make sure it's clear which one to use.
44+
placeholder: Run `npm install` followed by `npm run dev`
+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# This issue template is based on https://github.com/vitejs/vite/tree/main/.github/ISSUE_TEMPLATE
2+
name: "\U0001F680 New feature proposal"
3+
description: Propose a new feature to be added to @lazarv/react-server
4+
labels: ["enhancement: pending triage"]
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
Thanks for your interest in the project and taking the time to fill out this feature report!
10+
- type: textarea
11+
id: feature-description
12+
attributes:
13+
label: Description
14+
description: "Clear and concise description of the problem. Please make the reason and usecases as detailed as possible. If you intend to submit a PR for this issue, tell us in the description. Thanks!"
15+
placeholder: As a developer using @lazarv/react-server I want [goal / wish] so that [benefit].
16+
validations:
17+
required: true
18+
- type: textarea
19+
id: suggested-solution
20+
attributes:
21+
label: Suggested solution
22+
description: "In module [xy] we could provide following implementation..."
23+
validations:
24+
required: true
25+
- type: textarea
26+
id: alternative
27+
attributes:
28+
label: Alternative
29+
description: Clear and concise description of any alternative solutions or features you've considered.
30+
- type: textarea
31+
id: additional-context
32+
attributes:
33+
label: Additional context
34+
description: Any other context or screenshots about the feature request here.
35+
- type: checkboxes
36+
id: checkboxes
37+
attributes:
38+
label: Validations
39+
description: Before submitting the issue, please make sure you do the following
40+
options:
41+
- label: Follow our [Code of Conduct](https://github.com/lazarv/react-server/blob/main/CODE_OF_CONDUCT.md)
42+
required: true
43+
- label: Read the [Contributing Guidelines](https://github.com/lazarv/react-server/blob/main/CONTRIBUTING.md).
44+
required: true
45+
- label: Read the [docs](https://react-server.dev).
46+
required: true
47+
- label: Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
48+
required: true

.github/PULL_REQUEST_TEMPLATE.md

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!-- What is this PR solving? Write a clear description or reference the issues it solves (e.g. `fixes #123`). What other alternatives have you explored? Are there any parts you think require more attention from reviewers? -->
2+
3+
<!----------------------------------------------------------------------
4+
Before creating the pull request, please make sure you do the following:
5+
6+
- Read the Contributing Guidelines at https://github.com/lazarv/react-server/blob/main/CONTRIBUTING.md.
7+
- Check that there isn't already a PR that solves the problem the same way. If you find a duplicate, please help us reviewing it.
8+
- Update the corresponding documentation if needed.
9+
- Include relevant tests that fail without this PR but pass with it.
10+
11+
Thank you for contributing to @lazarv/react-server!
12+
----------------------------------------------------------------------->

0 commit comments

Comments
 (0)