-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
33 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
dist/ | ||
external/ | ||
ecosystem/ | ||
.data | ||
.temp | ||
.vitepress/cache | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
output.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { writeFile } from 'fs/promises' | ||
import { resolve } from 'path' | ||
|
||
export const external = [] // ['assets', 'cache', 'common'] | ||
|
||
async function main() { | ||
await writeFile(resolve(__dirname, 'output.ts'), `export default async () => ({\n${external.map(name => { | ||
return ` ["/ecosystem/${name}"]: await (await import("${require.resolve(`@root/${name}/docs/.vitepress/config`)}")).default,` | ||
}).join('\n')}\n})\n`) | ||
} | ||
|
||
if (require.main === module) { | ||
main() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,16 +5,17 @@ | |
"author": "Shigma <[email protected]>", | ||
"license": "MIT", | ||
"scripts": { | ||
"dev": "vitepress dev . --port 8514 --open", | ||
"mixin": "node -r esbuild-register .vitepress/config/mixin.ts", | ||
"dev": "yarn mixin & vitepress dev . --port 8514 --open", | ||
"serve": "vitepress serve . --port 8514 --open", | ||
"build": "cross-env NODE_OPTIONS=--max-old-space-size=8192 vitepress build ." | ||
"build": "yarn mixin & cross-env NODE_OPTIONS=--max-old-space-size=8192 vitepress build ." | ||
}, | ||
"devDependencies": { | ||
"@koishijs/components": "^1.3.4", | ||
"@koishijs/core": "^4.14.2", | ||
"@koishijs/market": "^4.1.3", | ||
"@koishijs/registry": "^6.0.3", | ||
"@koishijs/vitepress": "^2.3.0", | ||
"@koishijs/vitepress": "^3.0.0", | ||
"@types/node": "^20.4.2", | ||
"@types/spark-md5": "^3.0.2", | ||
"cross-env": "^7.0.3", | ||
|