Skip to content

Commit a7f9d26

Browse files
committed
chore: TSDX
1 parent cdacd71 commit a7f9d26

Some content is hidden

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

73 files changed

+10407
-4153
lines changed

.babelrc

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

.eslintrc

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

.github/workflows/publish.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,23 @@ on:
66
pull_request:
77

88
jobs:
9-
# test:
10-
# name: 'node ${{ matrix.node }} ${{ matrix.os }} '
11-
# runs-on: '${{ matrix.os }}'
12-
# strategy:
13-
# matrix:
14-
# os: [ubuntu-latest]
15-
# node: [12]
16-
# steps:
17-
# - uses: actions/setup-node@v1
18-
# with:
19-
# node-version: ${{ matrix.node }}
20-
# - uses: actions/checkout@v2
21-
# with:
22-
# fetch-depth: 1
23-
# - run: npm i -g yarn
24-
# - run: yarn --frozen-lockfile
25-
# - run: yarn test:ci
9+
test:
10+
name: 'node ${{ matrix.node }} ${{ matrix.os }} '
11+
runs-on: '${{ matrix.os }}'
12+
strategy:
13+
matrix:
14+
os: [ubuntu-latest]
15+
node: [12, 14, 16]
16+
steps:
17+
- uses: actions/setup-node@v1
18+
with:
19+
node-version: ${{ matrix.node }}
20+
- uses: actions/checkout@v2
21+
with:
22+
fetch-depth: 1
23+
- run: npm i -g yarn
24+
- run: yarn --frozen-lockfile
25+
- run: yarn test:ci
2626

2727
publish-module:
2828
name: 'Publish Module to NPM'

.github/workflows/size.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: size
2+
on: [pull_request]
3+
jobs:
4+
size:
5+
runs-on: ubuntu-latest
6+
env:
7+
CI_JOB_NUMBER: 1
8+
steps:
9+
- uses: actions/checkout@v1
10+
- uses: andresz1/size-limit-action@v1
11+
with:
12+
github_token: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,24 @@
1-
2-
# See https://help.github.com/ignore-files/ for more about ignoring files.
3-
4-
# dependencies
5-
node_modules
6-
7-
# builds
8-
build
9-
dist
10-
artifacts
11-
.rpt2_cache
12-
d3/index.js
13-
14-
# misc
1+
.cache
2+
.DS_Store
153
.DS_Store
164
.env
17-
.env.local
185
.env.development.local
19-
.env.test.local
6+
.env.local
207
.env.production.local
8+
.env.test.local
9+
.history
2110
.next
22-
11+
.rpt2_cache
12+
*.log
13+
artifacts
14+
build
15+
d3/index.js
16+
dist
17+
dist
18+
node_modules
19+
node_modules
2320
npm-debug.log*
21+
size-plugin.json
22+
stats.html
2423
yarn-debug.log*
2524
yarn-error.log*
26-
.history
27-
stats.html
28-
size-plugin.json

.nvmrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

.storybook/main.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module.exports = {
2+
stories: ['../stories/**/*.stories.@(ts|tsx|js|jsx)'],
3+
addons: ['@storybook/addon-links', '@storybook/addon-essentials'],
4+
// https://storybook.js.org/docs/react/configure/typescript#mainjs-configuration
5+
typescript: {
6+
check: true, // type-check stories during Storybook build
7+
}
8+
};

.storybook/preview.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// https://storybook.js.org/docs/react/writing-stories/parameters#global-parameters
2+
export const parameters = {
3+
// https://storybook.js.org/docs/react/essentials/actions#automatically-matching-args
4+
actions: { argTypesRegex: '^on.*' },
5+
};

.travis.yml

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

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
"titleBar.inactiveBackground": "#a08600", // change this color!
55
"titleBar.activeForeground": "#ffffff", // change this color!
66
"titleBar.inactiveForeground": "#ffffff" // change this color!
7-
}
7+
},
8+
"typescript.tsdk": "node_modules/typescript/lib"
89
}

0 commit comments

Comments
 (0)