Skip to content

Commit ddde72a

Browse files
JakeAdlerdomoritz
andauthored
feat!: rewrite react-vega (#613)
* rewrite react-vega * chore: add commitlint and test workflow * address feedback * Updated README and examples * Update LICENSE Co-authored-by: Dominik Moritz <[email protected]> * Update README.md Co-authored-by: Dominik Moritz <[email protected]> * jest -> vitest + other feedback items * Add exports * remove pretty-quick * add tsc to precommit hook * remove husky + update license --------- Co-authored-by: Dominik Moritz <[email protected]>
1 parent 861a746 commit ddde72a

File tree

81 files changed

+14625
-19890
lines changed

Some content is hidden

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

81 files changed

+14625
-19890
lines changed

.eslintignore

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

.eslintrc.js

Lines changed: 0 additions & 131 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ updates:
1515
day: sunday
1616
time: "23:00"
1717
timezone: PST8PDT
18-
open-pull-requests-limit: 10
18+
open-pull-requests-limit: 10
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: "Deploy Storybook"
2+
on:
3+
push:
4+
branches:
5+
- "main"
6+
7+
jobs:
8+
publish-storybook:
9+
permissions:
10+
id-token: "write"
11+
pages: "write"
12+
13+
environment:
14+
name: "github-pages"
15+
url: "${{ steps.deployment.outputs.page_url }}"
16+
17+
runs-on: "ubuntu-latest"
18+
steps:
19+
- id: "checkout"
20+
name: "Check out Git repository"
21+
uses: "actions/checkout@v4"
22+
23+
- id: "setup-node"
24+
name: "Set up Node.js"
25+
uses: "actions/setup-node@v4"
26+
27+
- id: "install-dependencies"
28+
name: "Install Node.js dependencies"
29+
run: npm install
30+
31+
- id: "build"
32+
name: "Build Storybook"
33+
run: |
34+
npm run build
35+
npm run build-demo
36+
37+
- id: "upload-storybook"
38+
name: "Upload Pages artifact"
39+
uses: "actions/upload-pages-artifact@v3"
40+
with:
41+
path: "storybook/"
42+
43+
- id: "deployment"
44+
name: "Deploy Storybook to GitHub Pages"
45+
uses: "actions/deploy-pages@v4"

.github/workflows/test.yml

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,19 @@
1-
name: Build and test
1+
name: Node.js CI
22

3-
on:
4-
push:
5-
branches: [ master ]
6-
pull_request:
3+
on: [push]
74

85
jobs:
96
build:
7+
108
runs-on: ubuntu-latest
119

1210
steps:
13-
- uses: actions/checkout@v3
14-
15-
- name: Use Node.js
16-
uses: actions/setup-node@v3
17-
with:
18-
node-version: 16.10
19-
cache: 'yarn'
20-
- name: Install dependencies
21-
run: yarn install
22-
- name: Build
23-
run: yarn build
24-
- name: Test
25-
run: yarn test
26-
- name: Upload coverage to Codecov
27-
uses: codecov/[email protected]
11+
- uses: actions/checkout@v4
12+
- name: Use Node.js
13+
uses: actions/setup-node@v4
14+
with:
15+
node-version: 'latest'
16+
- run: npm ci
17+
- run: npm run build
18+
- run: npm run lint
19+
- run: npm test

.gitignore

Lines changed: 25 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,30 @@
1-
# Runtime data
2-
pids
3-
*.pid
4-
*.seed
5-
6-
# Directory for instrumented libs generated by jscoverage/JSCover
7-
lib-cov
8-
9-
# node-waf configuration
10-
.lock-wscript
11-
12-
# Misc
13-
.env
14-
Dockerfile
15-
docker-compose.yml
16-
17-
.DS_Store
18-
*.DS_Store
19-
*.sublime-workspace
20-
211
# Logs
22-
logs/
2+
logs
233
*.log
24-
*.tsbuildinfo
25-
26-
# Cache
27-
tmp
28-
.publish
29-
.sass-cache
30-
.bundle/
31-
.happo/
32-
.idea/
33-
.next/
34-
.cache
35-
.eslintcache
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
storybook
13+
coverage
14+
dist-ssr
15+
*.local
16+
17+
18+
# Editor directories and files
19+
.vscode/*
20+
!.vscode/extensions.json
3621
.idea
37-
.npm
38-
.vscode
39-
.yarnclean
40-
41-
# Directories
42-
build/
43-
coverage/
44-
dist/
45-
esm/
46-
lib/
47-
public/
48-
node_modules/
49-
tmp/
50-
51-
# Custom
52-
*.map
53-
*.min.js
54-
test-changelog.md
55-
56-
# Lock files, libs should not have lock files
57-
npm-shrinkwrap.json
58-
package-lock.json
22+
.DS_Store
23+
*.suo
24+
*.ntvs*
25+
*.njsproj
26+
*.sln
27+
*.sw?
5928

60-
# Storybook output
29+
*storybook.log
6130
storybook-static

.husky/commit-msg

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

.husky/pre-commit

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

.ladle/config.mjs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/** @type {import('@ladle/react').UserConfig} */
2+
export default {
3+
outDir: "storybook",
4+
base: "/react-vega/",
5+
viteConfig: "vite.config.demo.ts",
6+
expandStoryTree: true,
7+
};

.prettierignore

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

0 commit comments

Comments
 (0)