chore: initialize monorepo tooling
This commit is contained in:
14
packages/api-client/package.json
Normal file
14
packages/api-client/package.json
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"name": "@personal-brand/api-client",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"build": "tsc -p tsconfig.json",
|
||||
"lint": "eslint .",
|
||||
"typecheck": "tsc -p tsconfig.json --noEmit",
|
||||
"clean": "rimraf dist"
|
||||
},
|
||||
"dependencies": {
|
||||
"@personal-brand/types": "workspace:*"
|
||||
}
|
||||
}
|
||||
1
packages/api-client/src/index.ts
Normal file
1
packages/api-client/src/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export const apiClientName = "personal-brand-api-client";
|
||||
5
packages/api-client/tsconfig.json
Normal file
5
packages/api-client/tsconfig.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"extends": "../../tsconfig.base.json",
|
||||
"compilerOptions": { "outDir": "dist", "rootDir": "src" },
|
||||
"include": ["src/**/*.ts"]
|
||||
}
|
||||
10
packages/config/package.json
Normal file
10
packages/config/package.json
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"name": "@personal-brand/config",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"lint": "eslint .",
|
||||
"typecheck": "tsc -p tsconfig.json --noEmit",
|
||||
"clean": "rimraf dist"
|
||||
}
|
||||
}
|
||||
1
packages/config/src/index.ts
Normal file
1
packages/config/src/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export const configPackageName = "personal-brand-config";
|
||||
5
packages/config/tsconfig.json
Normal file
5
packages/config/tsconfig.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"extends": "../../tsconfig.base.json",
|
||||
"compilerOptions": { "noEmit": true },
|
||||
"include": ["src/**/*.ts"]
|
||||
}
|
||||
17
packages/types/package.json
Normal file
17
packages/types/package.json
Normal file
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"name": "@personal-brand/types",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"build": "tsc -p tsconfig.json",
|
||||
"lint": "eslint .",
|
||||
"typecheck": "tsc -p tsconfig.json --noEmit",
|
||||
"clean": "rimraf dist"
|
||||
},
|
||||
"exports": {
|
||||
".": {
|
||||
"types": "./dist/index.d.ts",
|
||||
"import": "./dist/index.js"
|
||||
}
|
||||
}
|
||||
}
|
||||
4
packages/types/src/index.ts
Normal file
4
packages/types/src/index.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export type BookingStatus = "received" | "contacting" | "confirmed" | "completed" | "cancelled";
|
||||
export type BookingRequestType = "package" | "private_chef";
|
||||
export type ContactPreference = "wechat" | "phone" | "none";
|
||||
export type FulfillmentType = "pickup" | "delivery";
|
||||
5
packages/types/tsconfig.json
Normal file
5
packages/types/tsconfig.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"extends": "../../tsconfig.base.json",
|
||||
"compilerOptions": { "outDir": "dist", "rootDir": "src" },
|
||||
"include": ["src/**/*.ts"]
|
||||
}
|
||||
11
packages/validation/package.json
Normal file
11
packages/validation/package.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"name": "@personal-brand/validation",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"build": "tsc -p tsconfig.json",
|
||||
"lint": "eslint .",
|
||||
"typecheck": "tsc -p tsconfig.json --noEmit",
|
||||
"clean": "rimraf dist"
|
||||
}
|
||||
}
|
||||
1
packages/validation/src/index.ts
Normal file
1
packages/validation/src/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export const validationPackageName = "personal-brand-validation";
|
||||
5
packages/validation/tsconfig.json
Normal file
5
packages/validation/tsconfig.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"extends": "../../tsconfig.base.json",
|
||||
"compilerOptions": { "outDir": "dist", "rootDir": "src" },
|
||||
"include": ["src/**/*.ts"]
|
||||
}
|
||||
Reference in New Issue
Block a user