Skip to content

Commit

Permalink
🐎 ci: 尝试实现文件移动;
Browse files Browse the repository at this point in the history
  • Loading branch information
ruan-cat committed Jun 30, 2024
1 parent b862249 commit 9f51f7b
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 5 deletions.
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
"@types/node": "^20.14.8",
"@vuepress/bundler-vite": "2.0.0-rc.14",
"cpx2": "^7.0.1",
"cross-env": "^7.0.3",
"eslint": "^9.5.0",
"eslint-config-flat-gitignore": "^0.1.5",
"eslint-config-prettier": "^9.1.0",
Expand All @@ -53,8 +54,10 @@
"eslint-plugin-jsdoc": "^48.4.0",
"eslint-plugin-prettier": "^5.1.3",
"markdown-it": "^14.1.0",
"mkdirp": "^3.0.1",
"prettier": "^3.3.2",
"rimraf": "^5.0.7",
"shx": "^0.3.4",
"turbo": "^2.0.5",
"typescript": "^5.5.2",
"vercel": "^34.2.7",
Expand Down
2 changes: 1 addition & 1 deletion packages/monorepo-1/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"docs:clean-dev": "vuepress-vite dev src --clean-cache",
"docs:dev": "vuepress-vite dev src",
"docs:update-package": "pnpm dlx vp-update",
"copy-dist": "rm -rf .vercel/output/static/* & cp -r src/.vuepress/dist/* .vercel/output/static/ & ls .vercel/output/static/",
"copy-dist": "rimraf .vercel/output/static && mkdirp .vercel/output/static && cpx \"src/.vuepress/dist/**/*\" .vercel/output/static && shx ls .vercel/output/static",
"clear": "rimraf dist && rimraf .turbo && rimraf .vercel"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/monorepo-3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"docs:clean-dev": "vuepress-vite dev src --clean-cache",
"docs:dev": "vuepress-vite dev src",
"docs:update-package": "pnpm dlx vp-update",
"copy-dist": "rm -rf .vercel/output/static/* & cp -r src/.vuepress/dist/* .vercel/output/static/ & ls .vercel/output/static/",
"copy-dist": "rimraf .vercel/output/static && mkdirp .vercel/output/static && cpx \"src/.vuepress/dist/**/*\" .vercel/output/static && shx ls .vercel/output/static",
"clear": "rimraf dist && rimraf .turbo && rimraf .vercel"
},
"devDependencies": {
Expand Down
12 changes: 12 additions & 0 deletions packages/monorepo-3/src/typedoc-api/typedoc-api.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
# typedoc-api

你好,这里是文档。自动生成的文档。

请使用 node包 rimraf 和 cpx 编写一段命令,完成以下需求:

1. 清空文件夹 `.vercel/output/static`
2. 文件内容移动 `src/.vuepress/dist``.vercel/output/static`
3. 输出列表 `.vercel/output/static`

注意事项如下:

1. 这段命令最终会运行到github action内,请确保该命令可以在window系统和linux系统内均可运行。
2. 这段命令要封装在package.json的copy-dist命令内。
3. 如果 `.vercel/output/static` 不存在,请新建文件夹,并确保上述命令不会出错。
2 changes: 1 addition & 1 deletion packages/monorepo-4/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"docs:clean-dev": "vuepress-vite dev src --clean-cache",
"docs:dev": "vuepress-vite dev src",
"docs:update-package": "pnpm dlx vp-update",
"copy-dist": "rm -rf .vercel/output/static/* & cp -r src/.vuepress/dist/* .vercel/output/static/ & ls .vercel/output/static/",
"copy-dist": "rimraf .vercel/output/static && mkdirp .vercel/output/static && cpx \"src/.vuepress/dist/**/*\" .vercel/output/static && shx ls .vercel/output/static",
"clear": "rimraf dist && rimraf .turbo && rimraf .vercel"
}
}
2 changes: 1 addition & 1 deletion packages/monorepo-5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"docs:clean-dev": "vuepress-vite dev src --clean-cache",
"docs:dev": "vuepress-vite dev src",
"docs:update-package": "pnpm dlx vp-update",
"copy-dist": "rm -rf .vercel/output/static/* & cp -r src/.vuepress/dist/* .vercel/output/static/ & ls .vercel/output/static/",
"copy-dist": "rimraf .vercel/output/static && mkdirp .vercel/output/static && cpx \"src/.vuepress/dist/**/*\" .vercel/output/static && shx ls .vercel/output/static",
"clear": "rimraf dist && rimraf .turbo && rimraf .vercel"
}
}
2 changes: 1 addition & 1 deletion packages/proj-2-vp2-custom-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"docs:clean-dev": "vuepress-vite dev src --clean-cache",
"docs:dev": "vuepress-vite dev src",
"docs:update-package": "pnpm dlx vp-update",
"copy-dist": "rm -rf .vercel/output/static/* & cp -r src/.vuepress/dist/* .vercel/output/static/ & ls .vercel/output/static/",
"copy-dist": "rimraf .vercel/output/static && mkdirp .vercel/output/static && cpx \"src/.vuepress/dist/**/*\" .vercel/output/static && shx ls .vercel/output/static",
"clear": "rimraf dist && rimraf .turbo && rimraf .vercel"
}
}

0 comments on commit 9f51f7b

Please sign in to comment.