Skip to content

Commit

Permalink
feat: ci/cd
Browse files Browse the repository at this point in the history
  • Loading branch information
lazarv committed Sep 1, 2024
1 parent ad417f4 commit d092712
Show file tree
Hide file tree
Showing 122 changed files with 2,281 additions and 525 deletions.
10 changes: 10 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
node_modules
dist
build
.react-server
.vercel
packages/react-server-router/react-server-router.d.ts
*.mdx
*.md
*.json
*-lock.*
72 changes: 0 additions & 72 deletions .eslintrc.cjs

This file was deleted.

77 changes: 77 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
{
"env": {
"browser": true,
"es2021": true,
"node": true
},
"globals": {
"Deno": "readonly"
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:react/jsx-runtime",
"plugin:jsx-a11y/recommended",
"plugin:prettier/recommended"
],
"overrides": [
{
"env": {
"node": true
},
"files": [".eslintrc.{js,cjs}"],
"parserOptions": {
"sourceType": "script"
}
},
{
"env": {
"node": true
},
"files": ["*.{ts,tsx}"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"rules": {
"@typescript-eslint/no-unused-vars": [
"error",
{ "argsIgnorePattern": "^_" }
],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/explicit-module-boundary-types": "off"
}
}
],
"parser": "@babel/eslint-parser",
"parserOptions": {
"requireConfigFile": false,
"babelOptions": {
"presets": ["@babel/preset-react"],
"plugins": ["@babel/plugin-syntax-import-assertions"]
},
"ecmaFeatures": {
"jsx": true
},
"sourceType": "module"
},
"plugins": ["react", "simple-import-sort", "prettier", "jsx-a11y"],
"settings": {
"react": {
"version": "19.0.0"
}
},
"rules": {
"react/prop-types": "off",
"simple-import-sort/imports": [
"error",
{
"groups": [["^\\u0000"], ["^node:"], ["^react"], ["^[^.]"], ["^\\."]]
}
],
"no-async-promise-executor": "off",
"prettier/prettier": ["error", { "endOfLine": "auto" }]
}
}
86 changes: 86 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
# This issue template is based on https://github.com/vitejs/vite/tree/main/.github/ISSUE_TEMPLATE
name: "\U0001F41E Bug report"
description: Report an issue with @lazarv/react-server
labels: [pending triage]
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this bug report!
- type: textarea
id: bug-description
attributes:
label: Describe the bug
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!
placeholder: I am doing ... What I expect is ... What actually happening is ...
validations:
required: true
- type: input
id: reproduction
attributes:
label: Reproduction
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.
placeholder: Reproduction URL
- type: textarea
id: reproduction-steps
attributes:
label: Steps to reproduce
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.
placeholder: Run `npm install` followed by `npm run dev`
- type: textarea
id: system-info
attributes:
label: System Info
description: Output of `npx envinfo --system --npmPackages '{@lazarv/react-server,@lazarv/react-server-*,react,react-dom,react-server-dom-webpack,vite}' --binaries --browsers`
render: shell
placeholder: System, Binaries, Browsers
validations:
required: true
- type: dropdown
id: package-manager
attributes:
label: Used Package Manager
description: Select the used package manager
options:
- npm
- yarn
- pnpm
validations:
required: true
- type: textarea
id: logs
attributes:
label: Logs
description: |
Optional if provided reproduction. Please try not to insert an image but copy paste the log text.
1. Run `react-server` or `react-server build` with the `DEBUG=*` environment variable set.
2. Provide the error log here in the format below.
````
<details>
<summary>Click to expand!</summary>
```shell
// paste the log text here
```
</details>
````
- type: checkboxes
id: checkboxes
attributes:
label: Validations
description: Before submitting the issue, please make sure you do the following
options:
- label: Follow our [Code of Conduct](https://github.com/lazarv/react-server/blob/main/CODE_OF_CONDUCT.md)
required: true
- label: Read the [Contributing Guidelines](https://github.com/lazarv/react-server/blob/main/CONTRIBUTING.md).
required: true
- label: Read the [docs](https://react-server.dev).
required: true
- 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.
required: true
- label: Check that this is a concrete bug. For Q&A open a [GitHub Discussion](https://github.com/lazarv/react-server/discussions).
required: true
- label: The provided reproduction is a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) of the bug.
required: true
6 changes: 6 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# This issue template is based on https://github.com/vitejs/vite/tree/main/.github/ISSUE_TEMPLATE
blank_issues_enabled: false
contact_links:
- name: Questions & Discussions
url: https://github.com/lazarv/react-server/discussions
about: Use GitHub discussions for message-board style questions and discussions.
44 changes: 44 additions & 0 deletions .github/ISSUE_TEMPLATE/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# This issue template is based on https://github.com/vitejs/vite/tree/main/.github/ISSUE_TEMPLATE
name: "\U0001F4DA Documentation"
description: Suggest a change or new page to be added to react-server.dev
labels: [documentation]
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this issue!
- type: checkboxes
id: documentation_is
attributes:
label: Documentation is
options:
- label: Missing
- label: Outdated
- label: Confusing
- label: Not sure?
- type: textarea
id: description
attributes:
label: Explain in Detail
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!
placeholder: The description of ... page is not clear. I thought it meant ... but it wasn't.
validations:
required: true
- type: textarea
id: suggestion
attributes:
label: Your Suggestion for Changes
validations:
required: true
- type: input
id: reproduction
attributes:
label: Reproduction
description: If you have a reproduction, please provide a link to a repo that can reproduce the problem you ran into.
placeholder: Reproduction URL
- type: textarea
id: reproduction-steps
attributes:
label: Steps to reproduce
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.
placeholder: Run `npm install` followed by `npm run dev`
48 changes: 48 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# This issue template is based on https://github.com/vitejs/vite/tree/main/.github/ISSUE_TEMPLATE
name: "\U0001F680 New feature proposal"
description: Propose a new feature to be added to @lazarv/react-server
labels: ["enhancement: pending triage"]
body:
- type: markdown
attributes:
value: |
Thanks for your interest in the project and taking the time to fill out this feature report!
- type: textarea
id: feature-description
attributes:
label: Description
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!"
placeholder: As a developer using @lazarv/react-server I want [goal / wish] so that [benefit].
validations:
required: true
- type: textarea
id: suggested-solution
attributes:
label: Suggested solution
description: "In module [xy] we could provide following implementation..."
validations:
required: true
- type: textarea
id: alternative
attributes:
label: Alternative
description: Clear and concise description of any alternative solutions or features you've considered.
- type: textarea
id: additional-context
attributes:
label: Additional context
description: Any other context or screenshots about the feature request here.
- type: checkboxes
id: checkboxes
attributes:
label: Validations
description: Before submitting the issue, please make sure you do the following
options:
- label: Follow our [Code of Conduct](https://github.com/lazarv/react-server/blob/main/CODE_OF_CONDUCT.md)
required: true
- label: Read the [Contributing Guidelines](https://github.com/lazarv/react-server/blob/main/CONTRIBUTING.md).
required: true
- label: Read the [docs](https://react-server.dev).
required: true
- label: Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
required: true
12 changes: 12 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!-- 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? -->

<!----------------------------------------------------------------------
Before creating the pull request, please make sure you do the following:
- Read the Contributing Guidelines at https://github.com/lazarv/react-server/blob/main/CONTRIBUTING.md.
- 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.
- Update the corresponding documentation if needed.
- Include relevant tests that fail without this PR but pass with it.
Thank you for contributing to @lazarv/react-server!
----------------------------------------------------------------------->
Loading

0 comments on commit d092712

Please sign in to comment.