Skip to content

Commit 9fb760f

Browse files
hariclaude
andauthored
feat: upgrade to Next.js 16, TailwindCSS v4, Storybook 10, and Biome (#422)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 04517d8 commit 9fb760f

584 files changed

Lines changed: 7775 additions & 11804 deletions

File tree

Some content is hidden

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

.env.development

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
NEXT_PUBLIC_STORYBOOK_URL=http://localhost:6006

.eslintignore

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

.eslintrc.cjs

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

.github/PULL_REQUEST_TEMPLATE/new_component.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Any additional notes or considerations for reviewers should be included here.
5353
<!-- Provide instructions on how to test your component locally. -->
5454

5555
1. Pull this branch.
56-
2. Run the project locally using the following command: `npm run start` or `yarn start`.
56+
2. Run the project locally using the following command: `yarn dev`.
5757
3. Go to the relevant component in the storybook/docs to see it in action.
5858

5959
---

.github/workflows/deploy-v3.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Deploy v3
2+
3+
on:
4+
push:
5+
branches:
6+
- v3
7+
8+
jobs:
9+
deploy-v3:
10+
runs-on: ubuntu-latest
11+
environment: v3-deployment
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
- name: Setup Node
16+
uses: actions/setup-node@v4
17+
with:
18+
node-version: "20"
19+
- name: Install yarn
20+
run: npm install -g yarn
21+
- name: Restore cache
22+
uses: actions/cache@v4
23+
with:
24+
path: |
25+
.next/cache
26+
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
27+
restore-keys: |
28+
${{ runner.os }}-nextjs-${{ hashFiles('**/yarn.lock') }}-
29+
- name: Install dependencies
30+
run: yarn install --immutable
31+
- name: Build component previews
32+
run: yarn storybook:build
33+
- name: Build with Next.js
34+
env:
35+
NEXT_PUBLIC_APP_URL: ${{ vars.NEXT_PUBLIC_APP_URL }}
36+
NEXT_PUBLIC_SUPABASE_URL: ${{ vars.NEXT_PUBLIC_SUPABASE_URL }}
37+
NEXT_PUBLIC_SUPABASE_ANON_KEY: ${{ vars.NEXT_PUBLIC_SUPABASE_ANON_KEY }}
38+
NEXT_PUBLIC_POSTHOG_KEY: ${{ vars.NEXT_PUBLIC_POSTHOG_KEY }}
39+
NEXT_PUBLIC_POSTHOG_HOST: ${{ vars.NEXT_PUBLIC_POSTHOG_HOST }}
40+
NEXT_PUBLIC_PLUNK_API_KEY: ${{ vars.NEXT_PUBLIC_PLUNK_API_KEY }}
41+
run: yarn build
42+
- name: Deploy to Cloudflare Pages
43+
uses: cloudflare/wrangler-action@v3
44+
with:
45+
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
46+
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
47+
command: pages deploy out --project-name=animata-v3 --branch=main
48+
gitHubToken: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/deploy.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Setup Node
2020
uses: actions/setup-node@v4
2121
with:
22-
node-version: "20"
22+
node-version: "22"
2323
- name: Install yarn
2424
run: npm install -g yarn
2525
- name: Restore cache
@@ -32,11 +32,11 @@ jobs:
3232
${{ runner.os }}-nextjs-${{ hashFiles('**/yarn.lock') }}-
3333
- name: Install dependencies
3434
run: yarn install --immutable
35+
- name: Build component previews
36+
run: yarn storybook:build
3537
- name: Build with Next.js
3638
env:
3739
NEXT_PUBLIC_APP_URL: ${{ vars.NEXT_PUBLIC_APP_URL }}
38-
STORYBOOK_NEXT_PUBLIC_APP_URL: ${{ vars.STORYBOOK_NEXT_PUBLIC_APP_URL }}
39-
NEXT_PUBLIC_STORYBOOK_URL: ${{ vars.NEXT_PUBLIC_STORYBOOK_URL }}
4040
NEXT_PUBLIC_SUPABASE_URL: ${{ vars.NEXT_PUBLIC_SUPABASE_URL }}
4141
NEXT_PUBLIC_SUPABASE_ANON_KEY: ${{ vars.NEXT_PUBLIC_SUPABASE_ANON_KEY }}
4242
NEXT_PUBLIC_POSTHOG_KEY: ${{ vars.NEXT_PUBLIC_POSTHOG_KEY }}

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@ yarn-error.log*
3535
# typescript
3636
*.tsbuildinfo
3737
next-env.d.ts
38-
.contentlayer
38+
.velite
3939

4040
*storybook.log
4141
public/preview
4242
_internal/
43+
.superset/

.node-version

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

.prettierrc.cjs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,5 @@ module.exports = {
44
printWidth: 100,
55
plugins: ["prettier-plugin-tailwindcss"],
66
tailwindConfig: "./tailwind.config.ts",
7-
tailwindFunctions: [
8-
"clsx",
9-
"cn"
10-
]
11-
};
7+
tailwindFunctions: ["clsx", "cn"],
8+
};

.storybook/main.ts

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,12 @@
11
import type { StorybookConfig } from "@storybook/nextjs";
22

33
const config: StorybookConfig = {
4-
stories: [
5-
"../animata/**/*.mdx",
6-
"../animata/**/*.stories.@(js|jsx|mjs|ts|tsx)",
7-
],
8-
addons: [
9-
"@storybook/addon-onboarding",
10-
"@storybook/addon-links",
11-
"@storybook/addon-essentials",
12-
"@chromatic-com/storybook",
13-
"@storybook/addon-interactions",
14-
"@storybook/addon-styling-webpack",
15-
"@storybook/addon-themes",
16-
"storybook-dark-mode",
17-
],
4+
stories: ["../animata/**/*.stories.@(js|jsx|mjs|ts|tsx)"],
5+
addons: ["@storybook/addon-themes", "@storybook/addon-docs"],
186
framework: {
197
name: "@storybook/nextjs",
208
options: {},
219
},
22-
staticDirs: [],
10+
tags: {},
2311
};
2412
export default config;

0 commit comments

Comments
 (0)