Skip to content

Commit 816b6b2

Browse files
authored
Merge pull request #345 from prc5/v3.0.0
V3.0.0
2 parents e844c15 + a7d1c73 commit 816b6b2

66 files changed

Lines changed: 3987 additions & 390 deletions

File tree

Some content is hidden

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

.eslintignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
dist
2+
node_modules
3+
storybook-static
4+
.storybook
5+
coverage
6+
rollup.config.js
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**Desktop (please complete the following information):**
27+
- OS: [e.g. iOS]
28+
- Browser [e.g. chrome, safari]
29+
- Version [e.g. 22]
30+
31+
**Smartphone (please complete the following information):**
32+
- Device: [e.g. iPhone6]
33+
- OS: [e.g. iOS8.1]
34+
- Browser [e.g. stock browser, safari]
35+
- Version [e.g. 22]
36+
37+
**Additional context**
38+
Add any other context about the problem here.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

.github/workflows/docs.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Deploy docs
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v3
14+
15+
- name: Set up Node
16+
uses: actions/setup-node@v3
17+
with:
18+
node-version: "16"
19+
cache: "yarn"
20+
21+
- name: Configure AWS Credentials
22+
uses: aws-actions/configure-aws-credentials@v1
23+
with:
24+
aws-access-key-id: ${{ secrets.PROD_AWS_ACCESS_KEY_ID }}
25+
aws-secret-access-key: ${{ secrets.PROD_AWS_SECRET_ACCESS_KEY }}
26+
aws-region: ${{ secrets.PROD_AWS_REGION }}
27+
28+
- name: Install packages
29+
run: yarn install
30+
31+
- name: Deploy docs
32+
run: yarn deploy
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.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 packages
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- beta
8+
- alpha
9+
10+
defaults:
11+
run:
12+
shell: sh
13+
14+
jobs:
15+
release:
16+
name: Release
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Wait on tests
20+
uses: lewagon/wait-on-check-action@v1.1.2
21+
with:
22+
ref: ${{ github.ref }}
23+
check-name: "Run tests"
24+
repo-token: ${{ secrets.GITHUB_TOKEN }}
25+
wait-interval: 10
26+
27+
- name: Checkout
28+
uses: actions/checkout@v3
29+
30+
- name: Set up Node
31+
uses: actions/setup-node@v3
32+
with:
33+
node-version: "16"
34+
cache: "yarn"
35+
36+
- name: Install packages
37+
run: yarn install
38+
39+
- name: Build
40+
run: yarn build
41+
42+
- name: Publish
43+
run: yarn release
44+
env:
45+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/tests.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Tests
2+
3+
on: push
4+
5+
jobs:
6+
tests:
7+
name: Run tests
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v3
12+
13+
- name: Set up Node.js
14+
uses: actions/setup-node@v3
15+
with:
16+
node-version: "16"
17+
cache: "yarn"
18+
19+
- name: Install packages
20+
run: yarn install
21+
22+
- name: Build
23+
run: yarn build
24+
25+
- name: Lint
26+
run: yarn lint
27+
28+
- name: Typecheck
29+
run: yarn typecheck
30+
31+
- name: Clear Jest
32+
run: yarn jest --clearCache
33+
34+
- name: Test
35+
run: yarn test --coverage
36+
37+
# - name: Send Report
38+
# uses: paambaati/codeclimate-action@v3.0.0
39+
# env:
40+
# CC_TEST_REPORTER_ID: 7d1e3713df373ab2c9efce24b85c16efa2bd953aae32bd9d278004784d71291e
41+
# with:
42+
# coverageLocations: ${{github.workspace}}/coverage/lcov.info:lcov

.gitignore

Lines changed: 36 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,51 @@
1+
# See http://help.github.com/ignore-files/ for more about ignoring files.
12

2-
# See https://help.github.com/ignore-files/ for more about ignoring files.
3+
# compiled output
4+
build
5+
dist
6+
tmp
7+
out-tsc
8+
storybook-static
39

410
# dependencies
511
node_modules
612

7-
# builds
8-
build
9-
dist
10-
.rpt2_cache
13+
# IDEs and editors
14+
/.idea
15+
.project
16+
.classpath
17+
.c9/
18+
*.launch
19+
.settings/
20+
*.sublime-workspace
21+
22+
# IDE - VSCode
23+
.vscode/*
24+
!.vscode/settings.json
25+
!.vscode/tasks.json
26+
!.vscode/launch.json
27+
!.vscode/extensions.json
1128

1229
# misc
13-
.DS_Store
14-
.env
30+
/.sass-cache
31+
/connect.lock
32+
/libpeerconnection.log
33+
testem.log
34+
/typings
35+
.eslintcache
36+
.idea
37+
.vscode
1538
.env.local
1639
.env.development.local
1740
.env.test.local
1841
.env.production.local
19-
2042
npm-debug.log*
2143
yarn-debug.log*
2244
yarn-error.log*
2345

24-
storybook-static
25-
.vscode
46+
# System Files
47+
*.DS_Store
48+
Thumbs.db
49+
50+
# testing
51+
coverage

.npmignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
node_modules
2+
__tests__
3+
coverage
4+
jest.config.ts
5+
storybook-static
6+
.storybook
7+
stories

.releaserc.json

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
{
2+
"branches": [
3+
"+([0-9])?(.{+([0-9]),x}).x",
4+
{
5+
"name": "master"
6+
},
7+
{
8+
"name": "beta",
9+
"prerelease": true
10+
},
11+
{
12+
"name": "alpha",
13+
"prerelease": true
14+
}
15+
],
16+
"release": {
17+
"plugins": [
18+
[
19+
"@semantic-release/commit-analyzer",
20+
{
21+
"releaseRules": [
22+
{
23+
"scope": "no-release",
24+
"release": false
25+
},
26+
{
27+
"breaking": true,
28+
"release": "major"
29+
},
30+
{
31+
"type": "feat",
32+
"release": "minor"
33+
},
34+
{
35+
"type": "refactor",
36+
"scope": "core-*",
37+
"release": "minor"
38+
},
39+
{
40+
"type": "*",
41+
"release": "patch"
42+
}
43+
]
44+
}
45+
],
46+
[
47+
"@semantic-release/changelog",
48+
{
49+
"changelogFile": "CHANGELOG.md"
50+
}
51+
],
52+
"@semantic-release/release-notes-generator",
53+
"@semantic-release/npm",
54+
[
55+
"@semantic-release/git",
56+
{
57+
"assets": ["CHANGELOG.md"]
58+
}
59+
],
60+
"@semantic-release/github"
61+
]
62+
}
63+
}

.storybook/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module.exports = {
2-
stories: ["../src/**/*.stories.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)"],
2+
stories: ["../src/**/*.stories.mdx", "../src/**/*.stories.@(js|ts|tsx)"],
33
addons: [
44
"@storybook/addon-links",
55
"@storybook/addon-essentials",

0 commit comments

Comments
 (0)