{"id":16429579,"url":"https://github.com/stbui/stbui-pc","last_synced_at":"2026-05-14T18:02:21.474Z","repository":{"id":43616452,"uuid":"71555170","full_name":"stbui/stbui-pc","owner":"stbui","description":null,"archived":false,"fork":false,"pushed_at":"2016-11-10T10:51:21.000Z","size":957,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-08T06:36:10.081Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stbui.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-10-21T10:22:31.000Z","updated_at":"2016-10-21T10:27:31.000Z","dependencies_parsed_at":"2022-08-02T18:15:49.715Z","dependency_job_id":null,"html_url":"https://github.com/stbui/stbui-pc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stbui%2Fstbui-pc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stbui%2Fstbui-pc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stbui%2Fstbui-pc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stbui%2Fstbui-pc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stbui","download_url":"https://codeload.github.com/stbui/stbui-pc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240627959,"owners_count":19831600,"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","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":[],"created_at":"2024-10-11T08:23:33.231Z","updated_at":"2026-05-14T18:02:16.428Z","avatar_url":"https://github.com/stbui.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"前端集成解决方案\n=============\n\u003e 构建项目流程工具，可以生成相应目录和代码，同时对项目进行编译\n\n- [x] 生成项目、模块、页面、组件文件结构\n\n- [x] JS 文件的分析、合并、压缩、版本管理\n- [x] CSS 文件的分析、合并、压缩、版本管理\n- [x] HTML 文件分析、压缩、版本管理\n- [x] 入口模块的分析、分块构建、增量构建、合并、压缩、版本管理\n- [x] 静态资源的分析、压缩、版本管理\n- [x] 图片压缩\n- [x] 文件MD5戳\n- [x] 本地预览\n- [x] 兼容 ie6 - ie11/chrome/firefox，以及各种手机浏览器\n- [x] 支持分块加载和异步加载\n- [x] 良好的构建工具配套支持\n\n\n# 详细用法\n## 安装 stbui\n\n通过下面的命名即可安装 stbui\n```bash\nnpm install -g stbui --verbose\n```\n如果安装很慢的话，可以尝试使用taobao的源进行安装。具体如下：\n```bash\nnpm install -g stbui --registry=https://registry.npm.taobao.org --verbose\n```\n安装完成后，可以通过 `stbui -v` 命名查看安装的版本\n\n\n## 使用命令创建项目\n\nstbui 安装完成后，就可以通过下面的命令创建项目：\n```bash\nstbui project demo\n```\n注：demo为项目存放的目录\n\n\n## 构建项目\n```bash\nstbui release dev -wL\n```\n项目中有文件修改就会自动构建了。\n\n如果要查看构建后的代码执行命令：\n```bash\nstbui server open\n```\n\n\n## 启动项目服务\n\n在项目目录下执行命令\n\n```bash\nstbui server start\n```\n\n## 访问项目\n打开浏览器，访问http://127.0.0.1:8080即可\n\n\n## 项目结构\n```\n├── dist\n│   ├── xxx.zip\n│\n├── framework\n│   ├── framework\n│       ├── images\n│       ├── index.less\n│       └── index.js\n│\n├── page\n│   ├── page\n│       ├── images\n│       ├── index.less\n│       ├── index.js\n│       └── index.html\n│\n├── package.json\n├── map.json\n└── stbui-conf.js\n```\n\n\n\n## stbui 命令\n你可以通过 `stbui -h` 帮助查看相关命令\n\n```bash\nstbui release\nstbui server\nstubi project \u003cname\u003e\nstbui framework \u003cname\u003e\nstbui page \u003cname\u003e\n```\n\n## stbui 命令简化\n```bash\nnpm run start\nnpm run dev\nnpm run bulid\n```\n\n## 配置文件\n\n默认配置文件为 `stbui-conf.js`，stbui 编译的整个流程都是通过配置来控制的。\n\n\n如果使用中遇到什么觉得诡异的地方，欢迎拨打热线电话10086\n\n## ChangeLog\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstbui%2Fstbui-pc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstbui%2Fstbui-pc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstbui%2Fstbui-pc/lists"}