{"id":21275146,"url":"https://github.com/bingkui/static-html-template","last_synced_at":"2025-07-11T07:30:42.835Z","repository":{"id":41814806,"uuid":"134812548","full_name":"BingKui/static-html-template","owner":"BingKui","description":"静态页面网站快速开发环境，支持自动刷新页面，less样式预处理。","archived":false,"fork":false,"pushed_at":"2022-12-06T18:13:52.000Z","size":638,"stargazers_count":18,"open_issues_count":9,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-06T01:32:27.690Z","etag":null,"topics":["html","html-template","less","template"],"latest_commit_sha":null,"homepage":"","language":"CSS","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/BingKui.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-05-25T06:23:13.000Z","updated_at":"2024-11-27T15:50:01.000Z","dependencies_parsed_at":"2023-01-24T11:01:37.092Z","dependency_job_id":null,"html_url":"https://github.com/BingKui/static-html-template","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BingKui/static-html-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BingKui%2Fstatic-html-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BingKui%2Fstatic-html-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BingKui%2Fstatic-html-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BingKui%2Fstatic-html-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BingKui","download_url":"https://codeload.github.com/BingKui/static-html-template/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BingKui%2Fstatic-html-template/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264756300,"owners_count":23659299,"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":["html","html-template","less","template"],"created_at":"2024-11-21T09:27:48.746Z","updated_at":"2025-07-11T07:30:42.555Z","avatar_url":"https://github.com/BingKui.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# static-html-template\n\n静态页面网站快速开发环境，支持自动刷新页面，less样式预处理。\n\n本项目主要为了快速创建一个官网类的全静态页面做技术支持，做到快速创建、快速开发、快速发布。\n\n## 项目创建\n\n使用 cli 工具进行项目创建，快速创建一个能够进行开发的项目。\n\n全局安装：\n\n```shell\n\u003e npm i -g sht-cli\n```\n\n创建项目：\n\n```shell\n\u003e sht new\n```\n\n根据提示输入，就可以创建一个项目了。\n\n## 开发环境准备\n\n**安装依赖**\n\n项目依赖node版本：v10.10.0\n\n项目使用到了 `gulp` 需要全局安装。\n\n```shell\n\u003e npm i -g gulp\n```\n\n项目根目录下，执行安装命令。\n\n```shell\n\u003e npm i\n```\n\n项目使用到一个 Chrome 插件： LiveReload。\n\n## 开发\n\n运行项目\n\n```shell\n\u003e npm start\n```\n\n## 打包发布\n\n```shell\n\u003e npm run build\n```\n\n项目资源会全部打包到 build 目录下。\n\n## 目录说明：\n\nconfig: 配置存放目录， 存放相应的配置文件\n\nimg: 图片资源存放文件夹\n\njs: js 资源存放文件夹\n\nless: less 样式文件存放目录，会生成相应的 css 文件，存放在 style 文件夹\n\nstyle: 样式文件存放目录\n\nview: html 页面存放目录\n\nbuild: 打包发布生成的目录，资源会全部放在这个文件夹，并进行压缩\n\n## 可自己改造的地方\n\n- 合并所有 css 文件为一个文件，并对相应页面引用做修改\n- 合并所有的 js 文件为一个文件，并对相应页面引用做修改\n- 修改 less 预处理器为 sass\n\n## 新支持功能\n\n- 命令行创建页面，包括完成 html 、 less 文件，并完成相应的引用配置\n- cli 操作方式，创建项目（完成）\n- GUI 操作界面，新建项目，管理项目，新增页面等功能\n\n[更新日志](./CHANGELOG.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbingkui%2Fstatic-html-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbingkui%2Fstatic-html-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbingkui%2Fstatic-html-template/lists"}