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

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
26 changes: 13 additions & 13 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"name": "Hailstorm Development Environment",
"image": "mcr.microsoft.com/devcontainers/typescript-node:1-20-bookworm",
"customizations": {
"vscode": {
"extensions": [
"bradlc.vscode-tailwindcss",
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"github.vscode-github-actions",
"vitest.explorer"
]
}
}
"name": "Hailstorm Development Environment",
"image": "mcr.microsoft.com/devcontainers/typescript-node:1-22-bookworm",
"customizations": {
"vscode": {
"extensions": [
"bradlc.vscode-tailwindcss",
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"github.vscode-github-actions",
"vitest.explorer"
]
}
}
}
2 changes: 1 addition & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
- [ ] Change is readable and easy to understand
- [ ] Documentation is updated
- [ ] Security impact has been considered
- [ ] Changes validated in runtime
- [ ] Changes validated in runtime
14 changes: 7 additions & 7 deletions .github/workflows/auto-author-assign.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
name: Auto Author Assign

on:
pull_request_target:
types: [opened, reopened]
pull_request_target:
types: [opened, reopened]

permissions:
pull-requests: write
pull-requests: write

jobs:
assign-author:
runs-on: ubuntu-latest
steps:
- uses: toshimaru/auto-author-assign@v1.6.2
assign-author:
runs-on: ubuntu-latest
steps:
- uses: toshimaru/auto-author-assign@v1.6.2
36 changes: 18 additions & 18 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,23 @@ name: Build
on: push

env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

jobs:
format-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
persist-credentials: false
- uses: pnpm/action-setup@v4
with:
version: 9.12.1
- uses: actions/setup-node@v4
with:
node-version: 20.19.3
cache: "pnpm"
- run: pnpm install --frozen-lockfile
- run: pnpm run build
format-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
persist-credentials: false
- uses: pnpm/action-setup@v4
with:
version: 10.27.0
- uses: actions/setup-node@v4
with:
node-version: 22
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- run: pnpm run build
8 changes: 4 additions & 4 deletions .github/workflows/format-and-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ jobs:
persist-credentials: false
- uses: pnpm/action-setup@v4
with:
version: 9.12.1
version: 10.27.0
- uses: actions/setup-node@v4
with:
node-version: 20.19.3
cache: "pnpm"
node-version: 22
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- run: pnpm run lint
- run: pnpm run format:check
- run: pnpm run format:check
62 changes: 31 additions & 31 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,40 @@
name: Semantic Release CI

on:
push:
branches: [main, beta]
push:
branches: [main, beta]

env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

permissions:
packages: write
packages: write

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
persist-credentials: false
- uses: pnpm/action-setup@v4
with:
version: 9.12.1
- uses: actions/setup-node@v4
with:
node-version: 20.19.3
cache: "pnpm"
- run: pnpm install --frozen-lockfile
- run: pnpm run build
- run: pnpm dlx semantic-release@24
# We also release to the github registry, this is because other internal @abusix packages are hosted
# there, and pnpm does not let you mix and match registries within a scope
- name: Release to Github registry
run: |
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" > .npmrc
# We disable git checks because semantic release above has bumped the version in the package.json
# so we are expecting the git state to be dirty
pnpm publish --registry=https://npm.pkg.github.com --no-git-checks
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
persist-credentials: false
- uses: pnpm/action-setup@v4
with:
version: 10.27.0
- uses: actions/setup-node@v4
with:
node-version: 22
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- run: pnpm run build
- run: pnpm dlx semantic-release@24

# We also release to the github registry, this is because other internal @abusix packages are hosted
# there, and pnpm does not let you mix and match registries within a scope
- name: Release to Github registry
run: |
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" > .npmrc
# We disable git checks because semantic release above has bumped the version in the package.json
# so we are expecting the git state to be dirty
pnpm publish --registry=https://npm.pkg.github.com --no-git-checks
10 changes: 7 additions & 3 deletions .github/workflows/storybook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ jobs:
persist-credentials: false
- uses: pnpm/action-setup@v4
with:
version: 9.12.1
version: 10.27.0
- uses: actions/setup-node@v4
with:
node-version: 22
cache: 'pnpm'
- name: Install and Build 🔧
run: | # Install npm packages and build the Storybook files
pnpm install
Expand All @@ -26,5 +30,5 @@ jobs:
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
BRANCH: gh-pages-storybook # The branch the action should deploy to.
FOLDER: storybook-static # The folder that the build-storybook script generates files.
branch: gh-pages-storybook
folder: storybook-static
42 changes: 21 additions & 21 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
name: Test Components
name: Verify

on:
push:
pull_request:
branches:
- main
push:
pull_request:
branches:
- main

jobs:
run-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- uses: pnpm/action-setup@v4
with:
version: 9.12.1
- uses: actions/setup-node@v4
with:
node-version: 20.19.3
cache: "pnpm"
- run: pnpm install --frozen-lockfile
- run: pnpm run test
verify:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- uses: pnpm/action-setup@v4
with:
version: 10.27.0
- uses: actions/setup-node@v4
with:
node-version: 22
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- run: pnpm run verify
36 changes: 18 additions & 18 deletions .github/workflows/type-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,23 @@ name: Type Check
on: push

env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

jobs:
format-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
persist-credentials: false
- uses: pnpm/action-setup@v4
with:
version: 9.12.1
- uses: actions/setup-node@v4
with:
node-version: 20.19.3
cache: "pnpm"
- run: pnpm install --frozen-lockfile
- run: pnpm run type-check
format-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
persist-credentials: false
- uses: pnpm/action-setup@v4
with:
version: 10.27.0
- uses: actions/setup-node@v4
with:
node-version: 22
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- run: pnpm run type-check
1 change: 0 additions & 1 deletion .npmrc

This file was deleted.

2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v20.19.3
lts/*
49 changes: 26 additions & 23 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,30 +1,33 @@
import type { StorybookConfig } from "@storybook/react-vite";
import type { StorybookConfig } from '@storybook/react-vite'

const config: StorybookConfig = {
stories: ["../src/**/*.stories.@(ts|tsx)", "../src/**/*.@(mdx|stories.@(md))"],
staticDirs: ["../assets"],
stories: [
'../src/**/*.stories.@(ts|tsx)',
'../src/**/*.@(mdx|stories.@(md))',
],
staticDirs: ['../assets'],

addons: [
"@storybook/addon-links",
"@storybook/addon-essentials",
"@storybook/addon-interactions",
],
addons: [
'@storybook/addon-links',
'@storybook/addon-a11y',
'@storybook/addon-designs',
'@storybook/addon-docs',
'@storybook/addon-vitest',
],

framework: {
name: "@storybook/react-vite",
options: {
strictMode: true,
},
framework: {
name: '@storybook/react-vite',
options: {
strictMode: true,
},
},

docs: {},
core: {
disableTelemetry: true,
},

core: {
disableTelemetry: true,
},

typescript: {
reactDocgen: "react-docgen-typescript",
},
};
export default config;
typescript: {
reactDocgen: 'react-docgen-typescript',
},
}
export default config
Loading
Loading