@lark-apaas/coding-templates 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lark-apaas/coding-templates",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "OpenClaw project templates for mclaw CLI",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -4,6 +4,7 @@
4
4
  <meta charset="UTF-8" />
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
6
  <title>应用标题</title>
7
+ <link href="https://lf3-static.bytednsdoc.com/obj/eden-cn/ylcylz_fsph_ryhs/ljhwZthlaukjlkulzlp/feisuda/feisuda.svg" rel="shortcut icon"/>
7
8
  <script src="https://cdn.tailwindcss.com"></script>
8
9
  <script>
9
10
  // 可选:Tailwind 运行时配置
@@ -10,12 +10,12 @@ STATIC_PREFIX="${MCLAW_STATIC_PREFIX:-}"
10
10
  rm -rf "$ROOT/dist"
11
11
  mkdir -p "$OUTPUT"
12
12
 
13
- # 1. 所有 .html 文件按目录结构复制到 dist/output/,并替换 __STATIC_PREFIX__
13
+ # 1. 所有 .html 文件按目录结构复制到 dist/output/,并替换 $STATIC$ 为实际静态资源路径
14
14
  cd "$ROOT"
15
15
  find . -name '*.html' -not -path './dist/*' -not -path './node_modules/*' | while read -r file; do
16
16
  dir=$(dirname "$file")
17
17
  mkdir -p "$OUTPUT/$dir"
18
- sed "s|__STATIC_PREFIX__|${STATIC_PREFIX}|g" "$file" > "$OUTPUT/$file"
18
+ sed "s|\\\$STATIC\\\$|${STATIC_PREFIX}|g" "$file" > "$OUTPUT/$file"
19
19
  done
20
20
 
21
21
  # 2. routes.json → dist/output/