Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions .eslintignore

This file was deleted.

131 changes: 0 additions & 131 deletions .eslintrc.js

This file was deleted.

18 changes: 0 additions & 18 deletions .github/dependabot.yml

This file was deleted.

45 changes: 45 additions & 0 deletions .github/workflows/ladle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: "Publish Ladle Storybook"
on:
push:
branches:
- "main"

jobs:
publish-storybook:
permissions:
id-token: "write"
pages: "write"

environment:
name: "github-pages"
url: "${{ steps.deployment.outputs.page_url }}"

runs-on: "ubuntu-latest"
steps:
- id: "checkout"
name: "Check out Git repository"
uses: "actions/checkout@v4"

- id: "setup-node"
name: "Set up Node.js"
uses: "actions/setup-node@v4"

- id: "install-dependencies"
name: "Install Node.js dependencies"
run: npm install

- id: "build"
name: "Build Ladle Storybook"
run: |
npm run build
npm run build-demo

- id: "upload-storybook"
name: "Upload Pages artifact"
uses: "actions/upload-pages-artifact@v3"
with:
path: "storybook/"

- id: "deployment"
name: "Deploy Storybook to GitHub Pages"
uses: "actions/deploy-pages@v4"
31 changes: 11 additions & 20 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,18 @@
name: Build and test
name: Node.js CI

on:
push:
branches: [ master ]
pull_request:
on: [push]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 16.10
cache: 'yarn'
- name: Install dependencies
run: yarn install
- name: Build
run: yarn build
- name: Test
run: yarn test
- name: Upload coverage to Codecov
uses: codecov/[email protected]
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
- run: npm ci
- run: npm run build
- run: npm test
81 changes: 25 additions & 56 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,61 +1,30 @@
# Runtime data
pids
*.pid
*.seed

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# node-waf configuration
.lock-wscript

# Misc
.env
Dockerfile
docker-compose.yml

.DS_Store
*.DS_Store
*.sublime-workspace

# Logs
logs/
logs
*.log
*.tsbuildinfo

# Cache
tmp
.publish
.sass-cache
.bundle/
.happo/
.idea/
.next/
.cache
.eslintcache
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
storybook
coverage
dist-ssr
*.local


# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.npm
.vscode
.yarnclean

# Directories
build/
coverage/
dist/
esm/
lib/
public/
node_modules/
tmp/

# Custom
*.map
*.min.js
test-changelog.md

# Lock files, libs should not have lock files
npm-shrinkwrap.json
package-lock.json
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

# Storybook output
*storybook.log
storybook-static
5 changes: 1 addition & 4 deletions .husky/commit-msg
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn commitlint --edit "$1"
npm run commitlint $1
5 changes: 1 addition & 4 deletions .husky/pre-commit
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn lint-staged
npm test
7 changes: 7 additions & 0 deletions .ladle/config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/** @type {import('@ladle/react').UserConfig} */
export default {
outDir: "storybook",
base: "/react-vega/",
viteConfig: "vite.config.demo.ts",
expandStoryTree: true,
};
18 changes: 0 additions & 18 deletions .prettierignore

This file was deleted.

Loading