Skip to content
Open
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions index.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
#!/usr/bin/env node

import path from "node:path";
import {fileURLToPath} from "node:url";
import {cp, readFile, writeFile, rename} from "node:fs/promises";
import {glob} from "glob";
import { fileURLToPath } from "node:url";
import { cp, readFile, writeFile, rename } from "node:fs/promises";
import { glob } from "glob";
import color from "picocolors";
import prompts from "prompts";
import yargs from "yargs";
import {hideBin} from "yargs/helpers";
import { hideBin } from "yargs/helpers";

// List of templates
const TEMPLATES = [
{
title: "Next.js + Biome + TypeScript + Shadcn/ui",
value: "next-biome-ts-shadcn",
},
{
title: "Next.js + ESLint + TypeScript + Shadcn/ui",
value: "next-eslint-ts-shadcn",
Expand Down
41 changes: 41 additions & 0 deletions templates/next-biome-ts-shadcn/project/%%.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/versions

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*

# env files (can opt-in for committing if needed)
.env*

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts
9 changes: 9 additions & 0 deletions templates/next-biome-ts-shadcn/project/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*]
insert_final_newline = true
charset = utf-8
indent_style = space
indent_size = 2
trim_trailing_whitespace = true
max_line_length = 80
15 changes: 15 additions & 0 deletions templates/next-biome-ts-shadcn/project/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
## Getting Started with {{name}}

First, run the development server:

```bash
npm run dev
# or
yarn dev
# or
pnpm dev
```

Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.

You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
61 changes: 61 additions & 0 deletions templates/next-biome-ts-shadcn/project/biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
"vcs": {
"enabled": false,
"clientKind": "git",
"useIgnoreFile": false
},
"files": {
"ignoreUnknown": false,
"ignore": [
"node_modules",
"dist",
"public",
".astro/**",
".next/**",
".git",
".vscode",
"*.config.{js,ts,json,mjs}",
"*.jsonc",
"*.yml",
"prisma/**"
]
},
"formatter": {
"enabled": true,
"indentStyle": "tab",
"lineWidth": 80,
"indentWidth": 4
},
"organizeImports": {
"enabled": true
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"complexity": {
"noBannedTypes": "off"
},
"correctness": {
"useExhaustiveDependencies": "off",
"noUnusedFunctionParameters": "warn",
"noUnusedImports": "warn",
"noEmptyPattern": "off"
},
"style": {},
"nursery": {
"useSortedClasses": {
"level": "error",
"fix": "safe",
"options": {}
}
}
}
},
"javascript": {
"formatter": {
"quoteStyle": "double"
}
}
}
21 changes: 21 additions & 0 deletions templates/next-biome-ts-shadcn/project/components.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"$schema": "https://ui.shadcn.com/schema.json",
"style": "new-york",
"rsc": true,
"tsx": true,
"tailwind": {
"config": "",
"css": "src/app/globals.css",
"baseColor": "zinc",
"cssVariables": true,
"prefix": ""
},
"aliases": {
"components": "@/components",
"utils": "@/lib/utils",
"ui": "@/components/ui",
"lib": "@/lib",
"hooks": "@/hooks"
},
"iconLibrary": "lucide"
}
5 changes: 5 additions & 0 deletions templates/next-biome-ts-shadcn/project/next-env.d.ts
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/app/api-reference/config/typescript for more information.
7 changes: 7 additions & 0 deletions templates/next-biome-ts-shadcn/project/next.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import type { NextConfig } from "next";

const nextConfig: NextConfig = {
/* config options here */
};

export default nextConfig;
32 changes: 32 additions & 0 deletions templates/next-biome-ts-shadcn/project/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"name": "{{name}}",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev --turbopack",
"build": "next build",
"start": "next start",
"check": "biome check --write",
"check:fix": "biome check --fix"
},
"dependencies": {
"@radix-ui/react-slot": "^1.2.2",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"lucide-react": "^0.511.0",
"next": "15.3.2",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"tailwind-merge": "^3.3.0"
},
"devDependencies": {
"@biomejs/biome": "^1.9.4",
"@tailwindcss/postcss": "^4",
"@types/node": "^20",
"@types/react": "^19",
"@types/react-dom": "^19",
"tailwindcss": "^4",
"tw-animate-css": "^1.3.0",
"typescript": "^5"
}
}
Loading