mirror of
https://github.com/lijigang/ljg-skills.git
synced 2026-09-14 19:47:01 +08:00
6b616b4590
- 添加 scripts/install.sh 和 scan.sh 执行权限 - 更新 ljg-skill-map/scripts/scan.sh 支持 legacy 和 plugin 双架构 - 更新 ljg-skill-map/SKILL.md 描述 - 添加 .claude-plugin/marketplace.json 发布文档 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
18 lines
446 B
Bash
Executable File
18 lines
446 B
Bash
Executable File
#!/bin/bash
|
|
# 安装 ljg-card 依赖
|
|
set -e
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
CARD_DIR="$(dirname "$SCRIPT_DIR")/skills/ljg-card"
|
|
|
|
if [ -f "$CARD_DIR/package.json" ]; then
|
|
echo "Installing ljg-card dependencies..."
|
|
cd "$CARD_DIR"
|
|
npm install
|
|
npx playwright install chromium
|
|
echo "ljg-card dependencies installed successfully."
|
|
else
|
|
echo "Error: package.json not found in $CARD_DIR"
|
|
exit 1
|
|
fi
|