convert into monorepo

This commit is contained in:
taskylizard 2024-02-24 17:20:24 +00:00
parent 5ae5b7e266
commit ef5e42c43a
No known key found for this signature in database
GPG Key ID: 1820131ED1A24120
33 changed files with 372 additions and 548 deletions

19
api/package.json Normal file
View File

@ -0,0 +1,19 @@
{
"name": "@fmhy/api",
"version": "1.0.0",
"description": "FMHY API.",
"main": "index.js",
"scripts": {
"prepare": "nitropack prepare",
"dev": "nitropack dev",
"build": "nitropack build",
"preview": "node .output/server/index.mjs",
"postinstall": "nitropack prepare"
},
"dependencies": {
"itty-fetcher": "^0.9.4",
"nitro-cors": "^0.7.0",
"nitropack": "latest"
},
"author": "taskylizard <taskylizard@fmhy.net>"
}

32
docs/package.json Normal file
View File

@ -0,0 +1,32 @@
{
"name": "@fmhy/docs",
"version": "1.0.0",
"type": "module",
"scripts": {
"dev": "vitepress dev",
"build": "vitepress build",
"preview": "vitepress preview"
},
"dependencies": {
"@headlessui/vue": "^1.7.17",
"@resvg/resvg-js": "^2.6.0",
"vitepress": "npm:@taskylizard/vitepress@1.0.10",
"consola": "^3.2.3",
"feed": "^4.2.2",
"fs-extra": "^11.2.0",
"nprogress": "^0.2.0",
"pathe": "^1.1.2",
"unocss": "^0.58.4",
"vue": "^3.4.15",
"x-satori": "^0.1.5",
"zod": "^3.22.4"
},
"devDependencies": {
"@iconify-json/carbon": "^1.1.28",
"@iconify-json/twemoji": "^1.1.15",
"@types/fs-extra": "^11.0.4",
"@types/node": "^20.11.15",
"@types/nprogress": "^0.2.3"
},
"author": "nbats, taskylizard & Contributors"
}

View File

Before

Width:  |  Height:  |  Size: 1.9 MiB

After

Width:  |  Height:  |  Size: 1.9 MiB

View File

Before

Width:  |  Height:  |  Size: 451 KiB

After

Width:  |  Height:  |  Size: 451 KiB

View File

Before

Width:  |  Height:  |  Size: 442 KiB

After

Width:  |  Height:  |  Size: 442 KiB

View File

Before

Width:  |  Height:  |  Size: 442 KiB

After

Width:  |  Height:  |  Size: 442 KiB

View File

Before

Width:  |  Height:  |  Size: 8.6 KiB

After

Width:  |  Height:  |  Size: 8.6 KiB

View File

Before

Width:  |  Height:  |  Size: 8.6 KiB

After

Width:  |  Height:  |  Size: 8.6 KiB

View File

Before

Width:  |  Height:  |  Size: 82 KiB

After

Width:  |  Height:  |  Size: 82 KiB

View File

Before

Width:  |  Height:  |  Size: 318 KiB

After

Width:  |  Height:  |  Size: 318 KiB

View File

@ -1,44 +1,16 @@
{
"name": "fmhy",
"type": "module",
"name": "@fmhy/monorepo",
"packageManager": "pnpm@8.15.1",
"engines": {
"node": "21.6.2"
},
"scripts": {
"docs:dev": "vitepress dev",
"docs:build": "vitepress build",
"docs:preview": "vitepress preview",
"api:prepare": "nitropack prepare",
"api:dev": "nitropack dev",
"api:build": "nitropack build",
"api:preview": "node .output/server/index.mjs",
"og:dev": "x-satori -t ./.vitepress/hooks/Template.vue -c ./.vitepress/hooks/satoriConfig.ts --dev",
"format": "prettier -w --cache --check .",
"lint": "eslint .vitepress -f pretty --cache",
"postinstall": "nitropack prepare"
},
"dependencies": {
"@headlessui/vue": "^1.7.17",
"@resvg/resvg-js": "^2.6.0",
"vitepress": "npm:@taskylizard/vitepress@1.0.10",
"consola": "^3.2.3",
"feed": "^4.2.2",
"fs-extra": "^11.2.0",
"itty-fetcher": "^0.9.4",
"nitro-cors": "^0.7.0",
"nitropack": "latest",
"nprogress": "^0.2.0",
"pathe": "^1.1.2",
"unocss": "^0.58.4",
"vue": "^3.4.15",
"x-satori": "^0.1.5",
"zod": "^3.22.4"
"lint": "eslint .vitepress -f pretty --cache"
},
"devDependencies": {
"@iconify-json/carbon": "^1.1.28",
"@iconify-json/twemoji": "^1.1.15",
"@taskylizard/eslint-config": "^1.1.1",
"@types/fs-extra": "^11.0.4",
"@types/node": "^20.11.15",
"@types/nprogress": "^0.2.3",
"eslint": "^8.56.0",
"prettier": "^3.2.4"
}

File diff suppressed because it is too large Load Diff

4
pnpm-workspace.yaml Normal file
View File

@ -0,0 +1,4 @@
packages:
- 'docs/'
- 'api/'
- '!**/test/**'