Skip to content

Commit

Permalink
Core repo
Browse files Browse the repository at this point in the history
  • Loading branch information
hugocxl committed Nov 12, 2023
1 parent 8bc9cf1 commit a29bf14
Show file tree
Hide file tree
Showing 17 changed files with 2,046 additions and 28 deletions.
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)
11 changes: 11 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": true,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "master",
"updateInternalDependencies": "patch",
"ignore": []
}
78 changes: 78 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
name: 'Bug Report'
description: 'File a bug report'
body:
- type: 'markdown'
attributes:
value: |
Thanks for creating an issue 😄!
Please search open/closed issues before submitting. Someone
might have asked the same thing before 😉!
We're all volunteers here, so help us help you by taking the time to
accurately fill out this template. ❤️
- type: 'textarea'
id: 'description'
attributes:
label: 'Description'
description: 'A brief description of the issue.'
placeholder: |
When I ____, I expected ____ to happen but ____ happened instead.
validations:
required: true
- type: 'input'
id: 'reproduction'
attributes:
label: 'Link to Reproduction'
description: |
A link to a Stackblitz reproduction which demonstrates the bug
placeholder: 'https://stackblitz.com/edit/vitejs-vite-lfwyue?file=src%2FApp.tsx&terminal=dev'
validations:
required: true
- type: 'textarea'
id: 'steps'
attributes:
label: 'Steps to reproduce'
description: |
Explain how to cause the issue in the provided reproduction.
value: |
1. Go to '...'
2. Click on '...'
3. Scroll down to '...'
4. See error
- type: 'input'
id: 'framework'
attributes:
label: 'JS Framework'
description: 'The JS framework used in your project. Specify JS/TS.'
placeholder: 'React (TS)'
- type: 'input'
id: 'version'
attributes:
label: 'Version'
description: 'The version of @kbox-labs/react-echarts you use.'
placeholder: 'x.x.x'
validations:
required: true
- type: 'input'
id: 'browser'
attributes:
label: 'Browser'
description: 'The browser(s) this issue occurred with.'
placeholder: 'Google Chrome 93'
- type: 'checkboxes'
id: 'operating-system'
attributes:
label: 'Operating System'
description: 'The operating system(s) this issue occurred with.'
options:
- label: 'macOS'
- label: 'Windows'
- label: 'Linux'
- type: 'textarea'
id: 'additional-information'
attributes:
label: 'Additional Information'
description: |
Use this section to provide any additional information you might have
like screenshots, notes, or links to ideas.
30 changes: 30 additions & 0 deletions .github/ISSUE_TEMPLATE/documentation_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: 'Documentation Request'
description: 'Request for documentation to be added/altered'
labels: ['needs triage', 'Topic: Documentation 📚']
body:
- type: 'markdown'
attributes:
value: |
Thanks for filing a documentation request!
If you have an idea for a new documentation topic, noticed that
something is not properly documented, or feel that something is
incorrect with the current documentation, you're in the right place!
- type: 'input'
id: 'subject'
attributes:
label: 'Subject'
description:
'What is the subject (component, function, topic) of this request?'
placeholder: 'Presets'
validations:
required: true
- type: 'textarea'
id: 'description'
attributes:
label: 'Description'
description:
"What about the subject's documentation should be added or changed?"
placeholder: 'Add a usage example of RadioGroup in action'
validations:
required: true
52 changes: 52 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: 'Feature Request'
description: 'Request a feature or enhancement'
labels: ['needs triage']
body:
- type: 'markdown'
attributes:
value: |
Thanks for filing an issue 😄!
Please search open/closed issues before submitting. Someone
might have asked the same thing before 😉!
- type: 'textarea'
id: 'description'
attributes:
label: 'Description'
description: 'Please describe your request in one or two sentences.'
validations:
required: true
- type: 'textarea'
id: 'justification'
attributes:
label: 'Problem Statement/Justification'
description: |
Please provide valid reason(s) why this should be added to Chakra UI
If this feature is related to a problem you've noticed, mention it as
well.
validations:
required: true
- type: 'textarea'
id: 'proposed-solution'
attributes:
label: 'Proposed Solution or API'
description: |
Please provide code snippets, gists, or links to the ideal
design or API.
validations:
required: true
- type: 'textarea'
id: 'alternatives'
attributes:
label: 'Alternatives'
description: |
What alternative solutions have you considered before making this
request?
- type: 'textarea'
id: 'additional-information'
attributes:
label: 'Additional Information'
description: |
What resources (links, screenshots, etc.) do you have to assist this
effort?
27 changes: 27 additions & 0 deletions .github/composite-actions/install/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: 'Install'
description: 'Sets up Node.js and runs install'

runs:
using: composite
steps:
- name: Setup PNPM
uses: pnpm/action-setup@master
with:
version: 8

- name: Setup Node.js
uses: actions/setup-node@main
with:
node-version: 18
registry-url: https://registry.npmjs.org/
cache: 'pnpm'

- name: Setup Git Configuration
shell: bash
run: |
git config --global user.email "[email protected]"
git config --global user.name "hugocxl"
- name: Install dependencies
shell: bash
run: pnpm i --no-frozen-lockfile
28 changes: 28 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<!---
Thanks for creating a Pull Request 💖!
Please read the following before submitting:
- PRs that adds new external dependencies might take a while to review.
- Keep your PR as small as possible.
- Limit your PR to one type (docs, feature, refactoring, ci, or bugfix)
-->

Closes # <!-- Github issue # here -->

## 📝 Description

> Add a brief description
## ⛳️ Current behavior (updates)

> Please describe the current behavior that you are modifying
## 🚀 New behavior

> Please describe the behavior or changes this PR adds
## 💣 Is this a breaking change (Yes/No)

<!-- If Yes, please describe the impact and migration path for existing Panda users. -->

## 📝 Additional Information
56 changes: 56 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Publish

on:
push:
paths:
- '.changeset/**'
- 'packages/**'
branches:
- master

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Install
uses: ./.github/composite-actions/install

- name: Build packages
run: pnpm build

- name: Publish packages
id: changesets
uses: changesets/action@v1
with:
publish: pnpm release
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

- name: Release to dev tag
if: steps.changesets.outputs.published != 'true'
run: |
git checkout master
pnpm changeset version --snapshot dev
pnpm changeset publish --tag dev
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

create_timestamp:
runs-on: ubuntu-latest

outputs:
timestamp: ${{ steps.set_timestamp.outputs.timestamp }}

steps:
- name: Set Timestamp
id: set_timestamp
run: |
echo "::set-output name=timestamp::$(date +'%s' | cut -c1-8)"
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

pnpm lint-staged --allow-empty && pnpm test
3 changes: 3 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"recommendations": ["dbaeumer.vscode-eslint"]
}
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# CHANGELOG

All notable changes to this project will be documented in this file.
51 changes: 51 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
## Code of Conduct

### Our Pledge

We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, caste, color, religion, or sexual identity and orientation.

We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.

### Our Standards

Examples of behavior that contributes to a positive environment for our community include:

- Demonstrating empathy and kindness toward other people
- Being respectful of differing opinions, viewpoints, and experiences
- Giving and gracefully accepting constructive feedback
- Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
- Focusing on what is best not just for us as individuals, but for the overall community

Examples of unacceptable behavior include:

- The use of sexualized language or imagery, and sexual attention or advances of any kind
- Trolling, insulting or derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others’ private information, such as a physical or email address, without their explicit permission
- Other conduct which could reasonably be considered inappropriate in a professional setting

### Enforcement Responsibilities

Project maintainers are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.

Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.

### Scope

This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.

### Enforcement

All project maintainers are obligated to respect the privacy and security of the reporter of any incident.

Project maintainers who do not follow or enforce the Code of Conduct in good
faith may face temporary or permanent repercussions as determined by other
members of the project's leadership.

### Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.1,
available at [https://www.contributor-covenant.org/version/2/1/code_of_conduct/][version]

[homepage]: http://contributor-covenant.org
[version]: https://www.contributor-covenant.org/version/2/1
21 changes: 0 additions & 21 deletions LICENSE

This file was deleted.

Loading

0 comments on commit a29bf14

Please sign in to comment.