- Created pnpm workspace configuration in `pnpm-workspace.yaml`. - Implemented basic app setup in `src/app.ts` using `@kevisual/router`. - Generated documentation files in `src/generated/docs.ts` for showcase CMS templates. - Added inline script to read and compile markdown files into TypeScript constants in `src/inline.ts`. - Set up main application entry point in `src/main.ts` to integrate routing and plugins. - Established routing structure in `src/routes/index.ts` and `src/routes/md.ts` for handling markdown-related tasks. - Implemented a route for initializing web todo tasks with dynamic content generation based on selected template type.
44 lines
1.3 KiB
YAML
44 lines
1.3 KiB
YAML
# .cnb.yml
|
|
include:
|
|
- https://cnb.cool/kevisual/cnb/-/blob/main/.cnb/template.yml
|
|
|
|
.common_env: &common_env
|
|
env:
|
|
TO_REPO: kevisual/template-docs
|
|
TO_URL: git.xiongxiao.me
|
|
imports:
|
|
- https://cnb.cool/kevisual/env/-/blob/main/.env.development
|
|
|
|
$:
|
|
vscode:
|
|
- docker:
|
|
image: docker.cnb.cool/kevisual/dev-env:latest
|
|
services:
|
|
- vscode
|
|
- docker
|
|
imports: !reference [.common_env, imports]
|
|
# 开发环境启动后会执行的任务
|
|
# stages:
|
|
# - name: pnpm install
|
|
# script: pnpm install
|
|
stages: !reference [.dev_tempalte, stages]
|
|
|
|
.common_sync_to_gitea: &common_sync_to_gitea
|
|
- <<: *common_env
|
|
services: !reference [.common_sync_to_gitea_template, services]
|
|
stages: !reference [.common_sync_to_gitea_template, stages]
|
|
|
|
.common_sync_from_gitea: &common_sync_from_gitea
|
|
- <<: *common_env
|
|
services: !reference [.common_sync_from_gitea_template, services]
|
|
stages: !reference [.common_sync_from_gitea_template, stages]
|
|
|
|
main:
|
|
web_trigger_sync_to_gitea:
|
|
- <<: *common_sync_to_gitea
|
|
web_trigger_sync_from_gitea:
|
|
- <<: *common_sync_from_gitea
|
|
api_trigger_sync_to_gitea:
|
|
- <<: *common_sync_to_gitea
|
|
api_trigger_sync_from_gitea:
|
|
- <<: *common_sync_from_gitea |