Skip to content

Commit

Permalink
use bun for tests, add cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
VinitSarvade committed Feb 9, 2024
1 parent 89a2fa5 commit 6b73b57
Show file tree
Hide file tree
Showing 42 changed files with 929 additions and 1,117 deletions.
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v18.18
16 changes: 16 additions & 0 deletions app/account/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import Image from 'next/image';

export default function Account() {
return (
<div className="min-h-[80dvh] flex flex-col place-content-center place-items-center">
<Image
src="/coming-soon.svg"
alt="Coming Soon"
width={960}
height={540}
/>

<p className="mt-5">Coming Soon...</p>
</div>
);
}
16 changes: 16 additions & 0 deletions app/cart/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import Image from 'next/image';

export default function Cart() {
return (
<div className="min-h-[80dvh] flex flex-col place-content-center place-items-center">
<Image
src="/coming-soon.svg"
alt="Coming Soon"
width={960}
height={540}
/>

<p className="mt-5">Coming Soon...</p>
</div>
);
}
1 change: 1 addition & 0 deletions app/categories/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from '@/modules/categories/categories.page';
4 changes: 2 additions & 2 deletions app/global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
@tailwind utilities;

@layer base {
:root {
:root, html[data-theme='light'] {
--background: 0 0% 100%;
--foreground: 222.2 47.4% 11.2%;

Expand Down Expand Up @@ -36,7 +36,7 @@
--radius: 0.5rem;
}

.dark {
html[data-theme='dark'] {
--background: 224 71% 4%;
--foreground: 213 31% 91%;

Expand Down
5 changes: 5 additions & 0 deletions app/products/[category]/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { PropsWithChildren } from 'react';

export default function Layout({ children }: PropsWithChildren) {
return <>{children}</>;
}
16 changes: 16 additions & 0 deletions app/products/[category]/loading.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { Skeleton } from '@/components/ui/skeleton';

export default function Loading() {
return (
<>
<Skeleton className="h-8 w-60 my-5" />

<div className="grid gap-4 grid-cols-2">
<Skeleton className="w-full h-56" />
<Skeleton className="w-full h-56" />
<Skeleton className="w-full h-56" />
<Skeleton className="w-full h-56" />
</div>
</>
);
}
16 changes: 16 additions & 0 deletions app/wishlist/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import Image from 'next/image';

export default function Wishlist() {
return (
<div className="min-h-[80dvh] flex flex-col place-content-center place-items-center">
<Image
src="/coming-soon.svg"
alt="Coming Soon"
width={960}
height={540}
/>

<p className="mt-5">Coming Soon...</p>
</div>
);
}
2 changes: 2 additions & 0 deletions bunfig.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[test]
preload = ["./test-setup.ts"]
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,19 @@
"react": "^18",
"react-dom": "^18",
"tailwind-merge": "^2.2.1",
"tailwindcss-animate": "^1.0.7"
"tailwindcss-animate": "^1.0.7",
"usehooks-ts": "^2.13.0"
},
"devDependencies": {
"@happy-dom/global-registrator": "^13.3.8",
"@next/bundle-analyzer": "^14.1.0",
"@testing-library/react": "^14.1.2",
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"@vitejs/plugin-react": "^4.2.1",
"autoprefixer": "^10.4.17",
"bun-types": "^1.0.26",
"cheerio": "1.0.0-rc.12",
"eslint": "^8",
"eslint-config-next": "14.1.0",
Expand All @@ -47,8 +49,6 @@
"postcss": "^8",
"sass": "^1.70.0",
"tailwindcss": "^3.4.1",
"typescript": "^5",
"vite-tsconfig-paths": "^4.3.1",
"vitest": "^1.2.2"
"typescript": "^5"
}
}
Loading

0 comments on commit 6b73b57

Please sign in to comment.