Skip to content

Commit

Permalink
fix website build again
Browse files Browse the repository at this point in the history
  • Loading branch information
feledori committed Oct 9, 2024
1 parent 187d656 commit a0dc0df
Show file tree
Hide file tree
Showing 11 changed files with 8,330 additions and 8,631 deletions.
13 changes: 13 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"build": "pnpm build:core && pnpm build:all",
"build:core": "tsup --config tsup.core.ts",
"build:all": "tsup",
"build:website": "pnpm build && pnpm --filter website build",
"dev": "pnpm run -w --parallel /^dev:.*/",
"dev:build": "tsup --watch",
"dev:playground": "pnpm --filter playground dev",
Expand Down Expand Up @@ -84,5 +85,17 @@
"types": "./dist/lenis-vue.d.ts",
"default": "./dist/lenis-vue.mjs"
}
},
"pnpm": {
"overrides": {
"@radix-ui/react-context": "1.1.1",
"@studio-freight/tempus": "0.0.38",
"extend-shallow": "3.0.2",
"is-extendable": "1.0.1",
"react-is": "18.2.0",
"scheduler": "0.23.0",
"throttle-debounce": "5.0.0",
"zustand": "4.3.6"
}
}
}
9,545 changes: 8,305 additions & 1,240 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion website/layouts/default/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import { CustomHead } from 'components/custom-head'
import { Footer } from 'components/footer'
import { Intro } from 'components/intro'
import { Scrollbar } from 'components/scrollbar'
import Lenis from 'lenis'
import { useStore } from 'lib/store'
import dynamic from 'next/dynamic'
import { useRouter } from 'next/router'
import { useEffect, useState } from 'react'
import Lenis from '../../../dist/lenis.mjs'
import s from './layout.module.scss'

const Cursor = dynamic(
Expand Down
15 changes: 2 additions & 13 deletions website/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "lenis-website",
"name": "website",
"version": "1.0.0",
"description": "Lenis is a smooth scroll library to normalize the scrolling experience across devices",
"scripts": {
Expand All @@ -23,15 +23,14 @@
"clsx": "^1.2.1",
"glslify-loader": "^2.0.0",
"gsap": "npm:@gsap/business@^3.12.4",
"lenis": "workspace:*",
"leva": "^0.9.34",
"nanoevents": "^7.0.1",
"next": "^13.2.4",
"raw-loader": "^4.0.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-use": "^17.4.0",
"three": "^0.150.1",
"three": "^0.169.0",
"zustand": "4.3.6"
},
"devDependencies": {
Expand All @@ -54,15 +53,5 @@
"prettier-eslint": "^15.0.1",
"sass": "^1.59.3",
"stats.js": "^0.17.0"
},
"pnpm": {
"overrides": {
"extend-shallow": "3.0.2",
"is-extendable": "1.0.1",
"react-is": "18.2.0",
"scheduler": "0.23.0",
"throttle-debounce": "5.0.0",
"zustand": "4.3.6"
}
}
}
2 changes: 1 addition & 1 deletion website/pages/docs/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useFrame } from '@studio-freight/hamo'
import Lenis from 'lenis'
import { useEffect, useRef, useState } from 'react'
import Lenis from '../../../dist/lenis.mjs'
import s from './docs.module.scss'

export default function Docs() {
Expand Down
4 changes: 2 additions & 2 deletions website/pages/snap/index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import cn from 'clsx'
import { CustomHead } from 'components/custom-head'
import Lenis from 'lenis'
import Snap from 'lenis/snap'
import { useEffect, useRef } from 'react'
import Snap from '../../../dist/lenis-snap.mjs'
import Lenis from '../../../dist/lenis.mjs'
import s from './snap.module.scss'

export default function Page() {
Expand Down
Loading

1 comment on commit a0dc0df

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"⚡️ Lighthouse report for the changes in this commit:

🔴 Performance: 39
🟢 Accessibility: 100
🟠 Best practices: 79
🟢 SEO: 92

Lighthouse ran on https://vercel.com/login?next=%2Fsso-api%3Furl%3Dhttps%253A%252F%252Flenis-r1bw9nsjd-darkroom-engineering.vercel.app%252F%26nonce%3Dcb1c26442847a96a766d331151a6bd2b0911a01793f87c46430ac8206fb63ccc"

Please sign in to comment.