{"id":29926616,"url":"https://github.com/ecomfe/san-cli","last_synced_at":"2025-08-02T12:42:45.125Z","repository":{"id":36836134,"uuid":"217267431","full_name":"ecomfe/san-cli","owner":"ecomfe","description":"A CLI Tooling based on San.js for rapid development.","archived":false,"fork":false,"pushed_at":"2025-06-06T03:34:06.000Z","size":11442,"stargazers_count":98,"open_issues_count":24,"forks_count":27,"subscribers_count":16,"default_branch":"master","last_synced_at":"2025-07-02T22:37:45.157Z","etag":null,"topics":["cli","san","san-cli","sanjs","webpack"],"latest_commit_sha":null,"homepage":"https://ecomfe.github.io/san-cli","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ecomfe.png","metadata":{"files":{"readme":"README-zh_CN.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-10-24T09:57:16.000Z","updated_at":"2024-03-21T06:21:26.000Z","dependencies_parsed_at":"2024-10-08T10:20:21.142Z","dependency_job_id":"d1365a02-7008-40a8-9b21-6607cfe1d856","html_url":"https://github.com/ecomfe/san-cli","commit_stats":{"total_commits":1823,"total_committers":28,"mean_commits":65.10714285714286,"dds":0.7438288535381239,"last_synced_commit":"b83ece609c25c6f231717c26792cf37a79a1482a"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ecomfe/san-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecomfe%2Fsan-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecomfe%2Fsan-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecomfe%2Fsan-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecomfe%2Fsan-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ecomfe","download_url":"https://codeload.github.com/ecomfe/san-cli/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecomfe%2Fsan-cli/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268392180,"owners_count":24243297,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","san","san-cli","sanjs","webpack"],"created_at":"2025-08-02T12:42:18.956Z","updated_at":"2025-08-02T12:42:45.089Z","avatar_url":"https://github.com/ecomfe.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eSan-CLI\u003c/h1\u003e\n\n\u003cdiv align=\"center\"\u003e\nSan CLI 是基于 [San.js](https://github.com/baidu/san) 进行快速开发的 CLI 工具\n\n\u003c/div\u003e\n\n[English](./README.md) | 简体中文\n\n## 🎉 特性\n\n-   完备的项目脚手架\n-   基于 webpack 的零配置构建工具\n-   可扩展命令行和 webpack 打包插件\n\nSan CLI 在兼顾 San 生态的同时，尽量做到通用化配置，在设计之初，我们希望不局限于 San 的应用范畴，做可定制化的前端开发工具集。\n\n## 📦 安装\n\n\u003e San CLI 的 Node.js 版本要求 \u003e= 12.13.0。\n\n```bash\n# use npm\nnpm install -g san-cli\n# or use yarn\nyarn global add san-cli\n```\n\n\u003e 如果只在项目中使用，可以添加到项目`package.json`的`devDependencies`，然后使用[npm-scripts](https://docs.npmjs.com/misc/scripts)。\n\n安装之后，你可以通过下面命令查看帮助：\n\n```bash\nsan -h\n```\n\n## 🤝 如何贡献\n\nSan CLI 使用 [Yarn Workspaces](https://classic.yarnpkg.com/en/docs/workspaces/) 来做本地开发。\n\n首先 clone 项目到你的电脑，然后安装依赖：\n\n```bash\n# 安装依赖\nyarn\n```\n\n详细的设计，请阅读《[内部实现](./docs/architecture.md)》。\n\n### 🔨 测试\n\n```bash\n# 测试全部\nyarn test\n# or 测试特定的 package\nyarn test [packageName]\n# 例如\nyarn test san-cli\n```\n\n### 🐛 Debug 日志\n\n在 San CLI 中使用了 [debug](https://npmjs.org/package/debug) 模块，如果需要 debug 或者查看一些信息可以使用 `DEBUG` 变量。在 San CLI 中，debug 的 scope 是 `san-cli:`，常用的变量包括：\n\n-   `perf`：输出 San CLI 本身的性能打点数据；\n-   `babel`：会输出 Babel 相关的配置；\n-   `service`：输出 service 层的日志；\n-   `webpack:closeDevtool`：会关闭 devtool，不再输出 `eval` 类型代码。直接输出打包后的代码，方便排查代码问题；\n-   `webpack:build`：webpack build 命令相关的配置；\n-   `webpack:serve`：webpack serve 命令相关的配置；\n-   `webpack:config`：输出 webpack 最终的 config 内容。\n\n## 📝 文档\n\n请移步 [San CLI 文档](./docs/README.md)\n\n## ☀️ License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fecomfe%2Fsan-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fecomfe%2Fsan-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fecomfe%2Fsan-cli/lists"}