Initialise repo

This commit is contained in:
KMKoushik
2024-03-15 09:17:00 +11:00
parent 84f17399e8
commit 7ee4e89e5f
23 changed files with 3708 additions and 1906 deletions

View File

@@ -2,7 +2,7 @@
/** @type {import("eslint").Linter.Config} */
module.exports = {
ignorePatterns: ["apps/**", "packages/**"],
extends: ["@repo/eslint-config/library.js"],
extends: ["@unsend/eslint-config/library.js"],
parser: "@typescript-eslint/parser",
parserOptions: {
project: true,

View File

@@ -18,9 +18,9 @@ This Turborepo includes the following packages/apps:
- `docs`: a [Next.js](https://nextjs.org/) app
- `web`: another [Next.js](https://nextjs.org/) app
- `@repo/ui`: a stub React component library shared by both `web` and `docs` applications
- `@repo/eslint-config`: `eslint` configurations (includes `eslint-config-next` and `eslint-config-prettier`)
- `@repo/typescript-config`: `tsconfig.json`s used throughout the monorepo
- `@unsend/ui`: a stub React component library shared by both `web` and `docs` applications
- `@unsend/eslint-config`: `eslint` configurations (includes `eslint-config-next` and `eslint-config-prettier`)
- `@unsend/typescript-config`: `tsconfig.json`s used throughout the monorepo
Each package/app is 100% [TypeScript](https://www.typescriptlang.org/).

View File

@@ -1,7 +1,7 @@
/** @type {import("eslint").Linter.Config} */
module.exports = {
root: true,
extends: ["@repo/eslint-config/next.js"],
extends: ["@unsend/eslint-config/next.js"],
parser: "@typescript-eslint/parser",
parserOptions: {
project: true,

View File

@@ -1,8 +1,8 @@
import Image from "next/image";
import { Card } from "@repo/ui/card";
import { Code } from "@repo/ui/code";
import { Card } from "@unsend/ui/card";
import { Code } from "@unsend/ui/code";
import styles from "./page.module.css";
import { Button } from "@repo/ui/button";
import { Button } from "@unsend/ui/button";
function Gradient({
conic,

View File

@@ -1,4 +1,4 @@
/** @type {import('next').NextConfig} */
module.exports = {
transpilePackages: ["@repo/ui"],
transpilePackages: ["@unsend/ui"],
};

View File

@@ -9,15 +9,15 @@
"lint": "eslint . --max-warnings 0"
},
"dependencies": {
"@repo/ui": "workspace:*",
"@unsend/ui": "workspace:*",
"next": "^14.1.1",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@next/eslint-plugin-next": "^14.1.1",
"@repo/eslint-config": "workspace:*",
"@repo/typescript-config": "workspace:*",
"@unsend/eslint-config": "workspace:*",
"@unsend/typescript-config": "workspace:*",
"@types/eslint": "^8.56.5",
"@types/node": "^20.11.24",
"@types/react": "^18.2.61",
@@ -25,4 +25,4 @@
"eslint": "^8.57.0",
"typescript": "^5.3.3"
}
}
}

View File

@@ -1,5 +1,5 @@
{
"extends": "@repo/typescript-config/nextjs.json",
"extends": "@unsend/typescript-config/nextjs.json",
"compilerOptions": {
"plugins": [
{

View File

@@ -1,7 +1,7 @@
/** @type {import("eslint").Linter.Config} */
module.exports = {
root: true,
extends: ["@repo/eslint-config/next.js"],
extends: ["@unsend/eslint-config/next.js"],
parser: "@typescript-eslint/parser",
parserOptions: {
project: true,

View File

@@ -1,8 +1,8 @@
import Image from "next/image";
import { Card } from "@repo/ui/card";
import { Code } from "@repo/ui/code";
import { Card } from "@unsend/ui/card";
import { Code } from "@unsend/ui/code";
import styles from "./page.module.css";
import { Button } from "@repo/ui/button";
import { Button } from "@unsend/ui/button";
function Gradient({
conic,

View File

@@ -1,4 +1,4 @@
/** @type {import('next').NextConfig} */
module.exports = {
transpilePackages: ["@repo/ui"],
transpilePackages: ["@unsend/ui"],
};

View File

@@ -9,15 +9,15 @@
"lint": "eslint . --max-warnings 0"
},
"dependencies": {
"@repo/ui": "workspace:*",
"@unsend/ui": "workspace:*",
"next": "^14.1.1",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@next/eslint-plugin-next": "^14.1.1",
"@repo/eslint-config": "workspace:*",
"@repo/typescript-config": "workspace:*",
"@unsend/eslint-config": "workspace:*",
"@unsend/typescript-config": "workspace:*",
"@types/eslint": "^8.56.5",
"@types/node": "^20.11.24",
"@types/react": "^18.2.61",
@@ -25,4 +25,4 @@
"eslint": "^8.57.0",
"typescript": "^5.3.3"
}
}
}

View File

@@ -1,5 +1,5 @@
{
"extends": "@repo/typescript-config/nextjs.json",
"extends": "@unsend/typescript-config/nextjs.json",
"compilerOptions": {
"plugins": [
{

View File

@@ -8,8 +8,8 @@
"format": "prettier --write \"**/*.{ts,tsx,md}\""
},
"devDependencies": {
"@repo/eslint-config": "workspace:*",
"@repo/typescript-config": "workspace:*",
"@unsend/eslint-config": "workspace:*",
"@unsend/typescript-config": "workspace:*",
"prettier": "^3.2.5",
"turbo": "latest"
},
@@ -17,4 +17,4 @@
"engines": {
"node": ">=18"
}
}
}

View File

@@ -1,5 +1,5 @@
{
"name": "@repo/eslint-config",
"name": "@unsend/eslint-config",
"version": "0.0.0",
"private": true,
"files": [
@@ -16,4 +16,4 @@
"@typescript-eslint/eslint-plugin": "^7.1.0",
"typescript": "^5.3.3"
}
}
}

View File

@@ -1,9 +1,9 @@
{
"name": "@repo/typescript-config",
"name": "@unsend/typescript-config",
"version": "0.0.0",
"private": true,
"license": "MIT",
"publishConfig": {
"access": "public"
}
}
}

View File

@@ -1,7 +1,7 @@
/** @type {import("eslint").Linter.Config} */
module.exports = {
root: true,
extends: ["@repo/eslint-config/react-internal.js"],
extends: ["@unsend/eslint-config/react-internal.js"],
parser: "@typescript-eslint/parser",
parserOptions: {
project: "./tsconfig.lint.json",

View File

@@ -1,5 +1,5 @@
{
"name": "@repo/ui",
"name": "@unsend/ui",
"version": "0.0.0",
"private": true,
"exports": {
@@ -12,8 +12,8 @@
"generate:component": "turbo gen react-component"
},
"devDependencies": {
"@repo/eslint-config": "workspace:*",
"@repo/typescript-config": "workspace:*",
"@unsend/eslint-config": "workspace:*",
"@unsend/typescript-config": "workspace:*",
"@turbo/gen": "^1.12.4",
"@types/node": "^20.11.24",
"@types/eslint": "^8.56.5",
@@ -23,4 +23,4 @@
"react": "^18.2.0",
"typescript": "^5.3.3"
}
}
}

View File

@@ -1,5 +1,5 @@
{
"extends": "@repo/typescript-config/react-library.json",
"extends": "@unsend/typescript-config/react-library.json",
"compilerOptions": {
"outDir": "dist"
},

View File

@@ -1,5 +1,5 @@
{
"extends": "@repo/typescript-config/react-library.json",
"extends": "@unsend/typescript-config/react-library.json",
"compilerOptions": {
"outDir": "dist"
},

5515
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,3 +1,3 @@
packages:
- "apps/*"
- "packages/*"
- "apps/*"

View File

@@ -1,3 +1,3 @@
{
"extends": "@repo/typescript-config/base.json"
"extends": "@unsend/typescript-config/base.json"
}

View File

@@ -1,17 +1,26 @@
{
"$schema": "https://turbo.build/schema.json",
"globalDependencies": ["**/.env.*local"],
"globalDependencies": [
"**/.env.*local"
],
"pipeline": {
"build": {
"dependsOn": ["^build"],
"outputs": [".next/**", "!.next/cache/**"]
"dependsOn": [
"^build"
],
"outputs": [
".next/**",
"!.next/cache/**"
]
},
"lint": {
"dependsOn": ["^lint"]
"dependsOn": [
"^lint"
]
},
"dev": {
"cache": false,
"persistent": true
}
}
}
}