运行时依赖
安装命令
点击复制技能文档
Semmtech-dev 公司特定开发工具,用于 Semmtech Laces 项目。 工具 run-local-server 在本地运行 Laces Platform 开发服务器。 #!/bin/bash # scripts/run-local-server.sh cd ~/workspaces/semmtech/laces-platform npm run dev 使用方法: 用户:运行开发服务器 代理:运行 semmtech-dev.run-local-server... [输出...] 服务器运行在端口 3000 ✓ build-source 从源代码构建 Laces Platform 应用程序。 #!/bin/bash # scripts/build-source.sh set -e cd ~/workspaces/semmtech/laces-platform # 预检查 if [ ! -f package.json ]; then echo "错误:未找到 package.json" exit 1 fi # 构建 npm run build # 后检查 if [ ! -d dist/ ]; then echo "错误:未创建 dist/" exit 1 fi echo "构建成功 ✓" run-tests 运行 Laces Platform 测试套件。 #!/bin/bash # scripts/run-tests.sh set -e cd ~/workspaces/semmtech/laces-platform # 运行测试 npm test echo "测试通过 ✓" deploy-staging 通过 GitLab CI 部署到 Semmtech 预发环境。 #!/bin/bash # scripts/deploy-staging.sh set -e # 通过 GitLab CI 部署 glab ci run --variables deploy:staging echo "预发环境部署触发 ✓" activate-cluster 激活开发集群(扩大节点)。 #!/bin/bash # scripts/activate-cluster.sh glab ci run --variables workflow:activate-clusters 环境 使用 TOOLS.md 进行配置: WORKSPACE:~/workspaces/semmtech/laces-platform AWS_PROFILE:831246761080-DeveloperViewOnlyAccess KUBECONFIG:~/.kube/config API、CLI、GitHub 等保持不变。