Skip to content

Commit

Permalink
🤔 save-file: 重复4 5 两个项目;vercel移除掉本体的配置。
Browse files Browse the repository at this point in the history
  • Loading branch information
ruan-cat committed Apr 20, 2024
1 parent 0a3f751 commit 0998992
Show file tree
Hide file tree
Showing 60 changed files with 690 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/monorepo-4.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: monorepo-4
on:
push:
branches-ignore:
- main

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- uses: amondnet/[email protected]
with:
vercel-token: ${{ secrets.vercel_token }} # Required
vercel-org-id: ${{ secrets.vercel_orgId}} #Required
vercel-project-id: ${{ secrets.vercel_projectId}} #Required
working-directory: ./packages/monorepo-4
alias-domains: monorepo-4.ruancat6312.top
20 changes: 20 additions & 0 deletions .github/workflows/monorepo-5.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: monorepo-3
on:
push:
branches-ignore:
- main

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- uses: amondnet/[email protected]
with:
vercel-token: ${{ secrets.vercel_token }} # Required
vercel-org-id: ${{ secrets.vercel_orgId}} #Required
vercel-project-id: ${{ secrets.vercel_projectId}} #Required
working-directory: ./packages/monorepo-5
alias-domains: |
monorepo-5.ruancat6312.top
monorepo-5-with-alias.ruancat6312.top
7 changes: 7 additions & 0 deletions packages/monorepo-4/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

node_modules/
src/.vuepress/.cache/
src/.vuepress/.temp/
src/.vuepress/dist/

.vercel
19 changes: 19 additions & 0 deletions packages/monorepo-4/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "@ruan-cat-vercel-monorepo-test/monorepo-1",
"version": "2.0.0",
"description": "monorepo-1",
"license": "MIT",
"type": "module",
"scripts": {
"docs:build": "vuepress-vite build src",
"docs:clean-dev": "vuepress-vite dev src --clean-cache",
"docs:dev": "vuepress-vite dev src",
"docs:update-package": "pnpm dlx vp-update"
},
"devDependencies": {
"@vuepress/bundler-vite": "2.0.0-rc.8",
"vue": "^3.4.16",
"vuepress": "2.0.0-rc.8",
"vuepress-theme-hope": "2.0.0-rc.31"
}
}
21 changes: 21 additions & 0 deletions packages/monorepo-4/src/.vuepress/config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { defineUserConfig } from "vuepress";
import { viteBundler } from "@vuepress/bundler-vite";
import theme from "./theme.js";

export default defineUserConfig({
base: "/",

lang: "zh-CN",
title: "文档演示",
description: "vuepress-theme-hope 的文档演示",

theme,

bundler: viteBundler({
viteOptions: {},
vuePluginOptions: {},
}),

// 和 PWA 一起启用
// shouldPrefetch: false,
});
30 changes: 30 additions & 0 deletions packages/monorepo-4/src/.vuepress/navbar.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import { navbar } from "vuepress-theme-hope";

export default navbar([
"/",
"/demo/",
{
text: "指南",
icon: "lightbulb",
prefix: "/guide/",
children: [
{
text: "Bar",
icon: "lightbulb",
prefix: "bar/",
children: ["baz", { text: "...", icon: "ellipsis", link: "" }],
},
{
text: "Foo",
icon: "lightbulb",
prefix: "foo/",
children: ["ray", { text: "...", icon: "ellipsis", link: "" }],
},
],
},
{
text: "V2 文档",
icon: "book",
link: "https://theme-hope.vuejs.press/zh/",
},
]);
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 0998992

Please sign in to comment.