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

View File

@@ -18,9 +18,9 @@ This Turborepo includes the following packages/apps:
- `docs`: a [Next.js](https://nextjs.org/) app - `docs`: a [Next.js](https://nextjs.org/) app
- `web`: another [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 - `@unsend/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`) - `@unsend/eslint-config`: `eslint` configurations (includes `eslint-config-next` and `eslint-config-prettier`)
- `@repo/typescript-config`: `tsconfig.json`s used throughout the monorepo - `@unsend/typescript-config`: `tsconfig.json`s used throughout the monorepo
Each package/app is 100% [TypeScript](https://www.typescriptlang.org/). Each package/app is 100% [TypeScript](https://www.typescriptlang.org/).

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,5 +1,5 @@
{ {
"name": "@repo/eslint-config", "name": "@unsend/eslint-config",
"version": "0.0.0", "version": "0.0.0",
"private": true, "private": true,
"files": [ "files": [

View File

@@ -1,5 +1,5 @@
{ {
"name": "@repo/typescript-config", "name": "@unsend/typescript-config",
"version": "0.0.0", "version": "0.0.0",
"private": true, "private": true,
"license": "MIT", "license": "MIT",

View File

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

View File

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

View File

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

View File

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

5515
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

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

View File

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

View File

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