Skip to content

Commit ad847d1

Browse files
gabrielcsapotesting
authored andcommitted
[2.0.0]
- adds an in_progress state to differentiate between unknown and in_progress. - migrates to esm - updates all libraries to latest - bug: fixes issue where ignore was not properly being treated - rewrite to typescript
1 parent 7acb9f9 commit ad847d1

File tree

152 files changed

+3975
-20154
lines changed

Some content is hidden

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

152 files changed

+3975
-20154
lines changed

.babelrc

Lines changed: 0 additions & 12 deletions
This file was deleted.

.github/workflows/ci.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: CI
4+
5+
# Controls when the workflow will run
6+
on: [push, pull_request]
7+
8+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
9+
jobs:
10+
test:
11+
name: "Test"
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v1
16+
- uses: volta-cli/action@v1
17+
with:
18+
node-version: ${{ matrix.node }}
19+
- name: install dependencies
20+
run: npm i
21+
- name: lint
22+
run: npm run lint
23+
- name: build
24+
run: npm run build
25+
- name: test
26+
run: npm test
27+
env:
28+
CI: true

.github/workflows/pages.yaml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Deploy example output to Github Pages
2+
3+
on:
4+
# Runs on pushes targeting the default branch
5+
push:
6+
branches: ["main"]
7+
8+
# Allows you to run this workflow manually from the Actions tab
9+
workflow_dispatch:
10+
11+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
12+
permissions:
13+
contents: read
14+
pages: write
15+
id-token: write
16+
17+
# Allow one concurrent deployment
18+
concurrency:
19+
group: "pages"
20+
cancel-in-progress: true
21+
22+
jobs:
23+
# Build job
24+
build:
25+
runs-on: ubuntu-latest
26+
steps:
27+
- name: Checkout
28+
uses: actions/checkout@v3
29+
- name: Setup Pages
30+
uses: actions/configure-pages@v1
31+
- uses: volta-cli/action@v1
32+
- run: npm install
33+
- run: npm run build
34+
- run: npm run build-storybook
35+
- run: node ./bin/build.mjs
36+
- run: cd website && npm install && npm run build
37+
- name: Upload artifact
38+
uses: actions/upload-pages-artifact@v1
39+
with:
40+
path: website/build
41+
42+
# Deployment job
43+
deploy:
44+
environment:
45+
name: github-pages
46+
url: ${{ steps.deployment.outputs.page_url }}
47+
runs-on: ubuntu-latest
48+
needs: build
49+
steps:
50+
- name: Deploy to GitHub Pages
51+
id: deployment
52+
uses: actions/deploy-pages@v1

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,6 @@ packed
99
npm-debug.log
1010
test/fixtures/build
1111
build
12+
dist
13+
website/static/storybook
14+
website/static/example

.prettierignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
coverage
2+
docs
3+
dist
4+
build
5+
.docusaurus
6+
website/static

.prettierrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

.storybook/.babelrc

Lines changed: 0 additions & 12 deletions
This file was deleted.

.storybook/config.js

Lines changed: 0 additions & 12 deletions
This file was deleted.

.storybook/main.cjs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
module.exports = {
2+
stories: ["../src/**/*.stories.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)"],
3+
addons: [
4+
"@storybook/addon-links",
5+
"@storybook/addon-essentials",
6+
"@storybook/addon-interactions",
7+
],
8+
framework: "@storybook/react",
9+
core: {
10+
builder: "webpack5",
11+
},
12+
};

.storybook/preview.cjs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
module.exports = {
2+
actions: { argTypesRegex: "^on[A-Z].*" },
3+
controls: {
4+
matchers: {
5+
color: /(background|color)$/i,
6+
date: /Date$/,
7+
},
8+
},
9+
};

0 commit comments

Comments
 (0)