-
Notifications
You must be signed in to change notification settings - Fork 62
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
26 changed files
with
2,737 additions
and
127 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#!/bin/bash | ||
|
||
# 确保脚本抛出遇到的错误 | ||
set -e | ||
|
||
rm -rf dist | ||
# 编译代码 | ||
npm run build | ||
|
||
# 文心一言提供的脚本 | ||
src_base="examples" | ||
target_base="dist" | ||
|
||
for src_dir in "$src_base"/ssr-*/dist/client "$src_base"/docs/dist/client; do | ||
if [ -d "$src_dir" ]; then | ||
if [ "$src_dir" = "$src_base/docs/dist/client" ]; then | ||
target_dir="$target_base" | ||
else | ||
ssr_part="${src_dir#$src_base/}" | ||
ssr_part="${ssr_part%/dist/client}" | ||
target_dir="$target_base/$ssr_part" | ||
fi | ||
mkdir -p "$target_dir" | ||
cp -r "$src_dir"/* "$target_dir" | ||
echo "Copied $src_dir/* to $target_dir" | ||
fi | ||
done | ||
|
||
cd dist | ||
# 如果是发布到自定义域名 | ||
# echo 'www.example.com' > CNAME | ||
|
||
git init | ||
git add -A | ||
git commit -m 'deploy' | ||
|
||
# 如果发布到 https://dp-os.github.io/gez/ | ||
git push -f [email protected]:dp-os/gez.git master:docs | ||
|
||
cd - |
File renamed without changes.
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 @@ | ||
{ | ||
"name": "rspress-doc-template", | ||
"name": "docs", | ||
"version": "1.0.0", | ||
"private": true, | ||
"scripts": { | ||
|
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
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,4 +1,6 @@ | ||
const time = document.querySelector('time'); | ||
setInterval(() => { | ||
time?.setHTMLUnsafe(new Date().toISOString()); | ||
if (time) { | ||
time.innerText = new Date().toISOString(); | ||
} | ||
}, 1000); |
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,60 @@ | ||
{ | ||
"compilerOptions": { | ||
"isolatedModules": true, | ||
"allowJs": false, | ||
"experimentalDecorators": true, | ||
"resolveJsonModule": true, | ||
"types": [ | ||
"@types/node" | ||
], | ||
"target": "ESNext", | ||
"module": "ESNext", | ||
"importHelpers": false, | ||
"declaration": true, | ||
"sourceMap": true, | ||
"strict": true, | ||
"noImplicitAny": false, | ||
"noImplicitReturns": false, | ||
"noFallthroughCasesInSwitch": true, | ||
"noUnusedLocals": false, | ||
"noUnusedParameters": false, | ||
"moduleResolution": "node", | ||
"allowImportingTsExtensions": true, | ||
"esModuleInterop": true, | ||
"skipLibCheck": true, | ||
"allowSyntheticDefaultImports": true, | ||
"forceConsistentCasingInFileNames": true, | ||
"noEmit": true, | ||
"paths": { | ||
"ssr-rspack-vue2/src/*": [ | ||
"./src/*" | ||
], | ||
"ssr-rspack-vue2/*": [ | ||
"./*" | ||
] | ||
} | ||
}, | ||
"include": [ | ||
"micro", | ||
"service", | ||
"server", | ||
"test", | ||
"src", | ||
"bin", | ||
"**.cjs", | ||
"**.js", | ||
"**.mjs", | ||
"**.ts", | ||
"private", | ||
"public" | ||
], | ||
"exclude": [ | ||
"dist" | ||
], | ||
"vueCompilerOptions": { | ||
"extensions": [ | ||
".vue" | ||
], | ||
"target": 2.7 | ||
} | ||
} |
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
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
Oops, something went wrong.