-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ALL files committed successfully!
- Loading branch information
Showing
21 changed files
with
404 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# editorconfig.org | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
indent_size = 2 | ||
indent_style = space | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
dist/* | ||
.cache | ||
public | ||
node_modules | ||
*.esm.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"$schema": "https://json.schemastore.org/eslintrc", | ||
"root": true, | ||
"extends": [ | ||
"next/core-web-vitals", | ||
"prettier", | ||
"plugin:tailwindcss/recommended" | ||
], | ||
"plugins": ["tailwindcss"], | ||
"rules": { | ||
"@next/next/no-html-link-for-pages": "off", | ||
"react/jsx-key": "off", | ||
"tailwindcss/no-custom-classname": "off" | ||
}, | ||
"settings": { | ||
"tailwindcss": { | ||
"callees": ["cn"], | ||
"config": "tailwind.config.js" | ||
}, | ||
"next": { | ||
"rootDir": ["./"] | ||
} | ||
}, | ||
"overrides": [ | ||
{ | ||
"files": ["*.ts", "*.tsx"], | ||
"parser": "@typescript-eslint/parser" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
|
||
# dependencies | ||
node_modules | ||
.pnp | ||
.pnp.js | ||
|
||
# testing | ||
coverage | ||
|
||
# next.js | ||
.next/ | ||
out/ | ||
build | ||
|
||
# misc | ||
.DS_Store | ||
*.pem | ||
|
||
# debug | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
.pnpm-debug.log* | ||
|
||
# local env files | ||
.env.local | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
|
||
# turbo | ||
.turbo | ||
|
||
.contentlayer | ||
.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
cache | ||
.cache | ||
package.json | ||
package-lock.json | ||
public | ||
CHANGELOG.md | ||
.yarn | ||
dist | ||
node_modules | ||
.next | ||
build | ||
.contentlayer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { JetBrains_Mono as FontMono, Inter as FontSans } from "next/font/google" | ||
|
||
export const fontSans = FontSans({ | ||
subsets: ["latin"], | ||
variable: "--font-sans", | ||
}) | ||
|
||
export const fontMono = FontMono({ | ||
subsets: ["latin"], | ||
variable: "--font-mono", | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; | ||
|
||
@layer base { | ||
:root { | ||
--background: 0 0% 100%; | ||
--foreground: 222.2 47.4% 11.2%; | ||
|
||
--muted: 210 40% 96.1%; | ||
--muted-foreground: 215.4 16.3% 46.9%; | ||
|
||
--popover: 0 0% 100%; | ||
--popover-foreground: 222.2 47.4% 11.2%; | ||
|
||
--border: 214.3 31.8% 91.4%; | ||
--input: 214.3 31.8% 91.4%; | ||
|
||
--card: 0 0% 100%; | ||
--card-foreground: 222.2 47.4% 11.2%; | ||
|
||
--primary: 222.2 47.4% 11.2%; | ||
--primary-foreground: 210 40% 98%; | ||
|
||
--secondary: 210 40% 96.1%; | ||
--secondary-foreground: 222.2 47.4% 11.2%; | ||
|
||
--accent: 210 40% 96.1%; | ||
--accent-foreground: 222.2 47.4% 11.2%; | ||
|
||
--destructive: 0 100% 50%; | ||
--destructive-foreground: 210 40% 98%; | ||
|
||
--ring: 215 20.2% 65.1%; | ||
|
||
--radius: 0.5rem; | ||
} | ||
|
||
.dark { | ||
--background: 224 71% 4%; | ||
--foreground: 213 31% 91%; | ||
|
||
--muted: 223 47% 11%; | ||
--muted-foreground: 215.4 16.3% 56.9%; | ||
|
||
--accent: 216 34% 17%; | ||
--accent-foreground: 210 40% 98%; | ||
|
||
--popover: 224 71% 4%; | ||
--popover-foreground: 215 20.2% 65.1%; | ||
|
||
--border: 216 34% 17%; | ||
--input: 216 34% 17%; | ||
|
||
--card: 224 71% 4%; | ||
--card-foreground: 213 31% 91%; | ||
|
||
--primary: 210 40% 98%; | ||
--primary-foreground: 222.2 47.4% 1.2%; | ||
|
||
--secondary: 222.2 47.4% 11.2%; | ||
--secondary-foreground: 210 40% 98%; | ||
|
||
--destructive: 0 63% 31%; | ||
--destructive-foreground: 210 40% 98%; | ||
|
||
--ring: 216 34% 17%; | ||
|
||
--radius: 0.5rem; | ||
} | ||
} | ||
|
||
@layer base { | ||
* { | ||
@apply border-border; | ||
} | ||
body { | ||
@apply bg-background text-foreground; | ||
font-feature-settings: "rlig" 1, "calt" 1; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export interface NavItem { | ||
title: string | ||
href?: string | ||
disabled?: boolean | ||
external?: boolean | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/// <reference types="next" /> | ||
/// <reference types="next/image-types/global" /> | ||
|
||
// NOTE: This file should not be edited | ||
// see https://nextjs.org/docs/basic-features/typescript for more information. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,46 @@ | ||
{ | ||
"name": "test-cli-config-full", | ||
"version": "1.0.0", | ||
"main": "index.js", | ||
"author": "shadcn", | ||
"license": "MIT" | ||
"name": "next-template", | ||
"version": "0.0.2", | ||
"private": true, | ||
"scripts": { | ||
"dev": "next dev", | ||
"build": "next build", | ||
"start": "next start", | ||
"lint": "next lint", | ||
"lint:fix": "next lint --fix", | ||
"preview": "next build && next start", | ||
"typecheck": "tsc --noEmit", | ||
"format:write": "prettier --write \"**/*.{ts,tsx,mdx}\" --cache", | ||
"format:check": "prettier --check \"**/*.{ts,tsx,mdx}\" --cache" | ||
}, | ||
"dependencies": { | ||
"@radix-ui/react-slot": "^1.0.2", | ||
"class-variance-authority": "^0.7.0", | ||
"clsx": "^1.2.1", | ||
"lucide-react": "0.288.0", | ||
"next": "14.1.3", | ||
"next-themes": "^0.2.1", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0", | ||
"sharp": "^0.31.3", | ||
"tailwind-merge": "^1.13.2", | ||
"tailwindcss-animate": "^1.0.6" | ||
}, | ||
"devDependencies": { | ||
"@ianvs/prettier-plugin-sort-imports": "^3.7.2", | ||
"@types/node": "^17.0.45", | ||
"@types/react": "^18.2.67", | ||
"@types/react-dom": "^18.2.22", | ||
"@typescript-eslint/parser": "^5.61.0", | ||
"autoprefixer": "^10.4.14", | ||
"eslint": "^8.44.0", | ||
"eslint-config-next": "13.0.0", | ||
"eslint-config-prettier": "^8.8.0", | ||
"eslint-plugin-react": "^7.32.2", | ||
"eslint-plugin-tailwindcss": "^3.13.0", | ||
"postcss": "^8.4.24", | ||
"prettier": "^2.8.8", | ||
"tailwindcss": "^3.4.0", | ||
"typescript": "^5.4.2" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module.exports = { | ||
plugins: { | ||
tailwindcss: {}, | ||
autoprefixer: {}, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/** @type {import('prettier').Config} */ | ||
module.exports = { | ||
endOfLine: "lf", | ||
semi: false, | ||
singleQuote: false, | ||
tabWidth: 2, | ||
trailingComma: "es5", | ||
importOrder: [ | ||
"^(react/(.*)$)|^(react$)", | ||
"^(next/(.*)$)|^(next$)", | ||
"<THIRD_PARTY_MODULES>", | ||
"", | ||
"^types$", | ||
"^@/types/(.*)$", | ||
"^@/config/(.*)$", | ||
"^@/lib/(.*)$", | ||
"^@/hooks/(.*)$", | ||
"^@/components/ui/(.*)$", | ||
"^@/components/(.*)$", | ||
"^@/styles/(.*)$", | ||
"^@/app/(.*)$", | ||
"", | ||
"^[./]", | ||
], | ||
importOrderSeparation: false, | ||
importOrderSortSpecifiers: true, | ||
importOrderBuiltinModulesToTop: true, | ||
importOrderParserPlugins: ["typescript", "jsx", "decorators-legacy"], | ||
importOrderMergeDuplicateImports: true, | ||
importOrderCombineTypeAndValueImports: true, | ||
plugins: ["@ianvs/prettier-plugin-sort-imports"], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
export type SiteConfig = typeof siteConfig | ||
|
||
export const siteConfig = { | ||
name: "Next.js", | ||
description: | ||
"Beautifully designed components that you can copy and paste into your apps. Accessible. Customizable. Open Source.", | ||
mainNav: [ | ||
{ | ||
title: "Home", | ||
href: "/", | ||
}, | ||
], | ||
links: { | ||
twitter: "https://twitter.com/shadcn", | ||
github: "https://github.com/shadcn/ui", | ||
docs: "https://ui.shadcn.com", | ||
}, | ||
} |
Oops, something went wrong.