{"id":32821248,"url":"https://github.com/webpersonalserver/wx-mini","last_synced_at":"2026-03-10T05:02:06.170Z","repository":{"id":322922833,"uuid":"144676397","full_name":"webpersonalserver/wx-mini","owner":"webpersonalserver","description":"运用webpack编译构建小程序的脚手架（稳定版）","archived":false,"fork":false,"pushed_at":"2020-01-09T06:56:20.000Z","size":20,"stargazers_count":21,"open_issues_count":3,"forks_count":7,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-11-07T04:26:46.789Z","etag":null,"topics":["gulp","sass","webpack3","wx-mini"],"latest_commit_sha":null,"homepage":"","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/webpersonalserver.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2018-08-14T06:12:38.000Z","updated_at":"2022-02-08T02:20:19.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/webpersonalserver/wx-mini","commit_stats":null,"previous_names":["webpersonalserver/wx-mini"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/webpersonalserver/wx-mini","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webpersonalserver%2Fwx-mini","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webpersonalserver%2Fwx-mini/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webpersonalserver%2Fwx-mini/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webpersonalserver%2Fwx-mini/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webpersonalserver","download_url":"https://codeload.github.com/webpersonalserver/wx-mini/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webpersonalserver%2Fwx-mini/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30325598,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T01:36:58.598Z","status":"online","status_checked_at":"2026-03-10T02:00:06.579Z","response_time":106,"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":["gulp","sass","webpack3","wx-mini"],"created_at":"2025-11-07T14:02:23.136Z","updated_at":"2026-03-10T05:02:06.114Z","avatar_url":"https://github.com/webpersonalserver.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wx-mini\n\n使用 `webpack`, `babel`, `scss` 开发的微信小程序项目脚手架\n\n## 本项目重要开发工具本版说明\n\n* `webpack 3.8.1`\n* `yarn 1.9.4`\n* `node 8.11.1`\n* `npm 5.6.0`\n* `gulp 3.9.1`\n\n## 功能\n\n* 支持引用 `node_modules` 模块\n* 支持通过配置 `alias` 来避免 `../../../` 之类的模块引用\n* 通过 `babel` 支持更丰富的 `ES6` 兼容，包括 `async/await`\n* 内置 `promise` 和 `lodash`（`lodash` 按需引入相应模块，不会全部引入）\n* 使用 `scss` 编写 `.wxss` 文件，内置了一些有用的 `mixins` 和 `extends`\n* 提供 `ENVIRONMENT` 和 `process.env.NODE_ENV` 全局常量辅助开发\n* 支持 `eslint` 基础代码检测\n\n## 开始使用\n\n确保安装了 [Node.js](https://nodejs.org/) (\u003e= `v4.2`) 和 [yarn](https://yarnpkg.com) 或 [npm](https://www.npmjs.com/package/npm)\n\n1.  `git clone` 此项目\n2.  通过命令行工具 `cd` 到这个目录，执行`npm install` 或 `yarn` 安装依赖模块\n3.  执行 `npm run dev`或`yarn dev` 开始开发\n4.  通过微信开发者工具，添加 `dist` 目录到项目上\n\n## 内置命令\n\n* 执行命令  `npm run dev`或`yarn dev` 运行项目（不带有压缩项目的功能）\n* 执行命令  `npm run build`或`yarn build` 生产编译打包项目（不带有压缩项目的功能）\n* 执行命令  `npm run minify`或`yarn minify` 生产编译压缩打包项目（带有压缩项目的功能）\n\n# 项目目录结构说明\n``````\nwx-mini\n|---------dist                            项目编译打包后的文件\n|---------src                             项目开发文件\n          |-----------components                      开发组件文件\n          |-----------images                          项目所用图标或图片文件\n          |-----------pages                           页面开发文件\n                      |--------index                      首页\n                               |------index.js                首页js\n                               |------index.json              首页json\n                               |------index.scss              首页scss\n                               |------index.xml               首页xml\n          |-----------sass                            项目全局或公用scss文件\n          |-----------utils                           项目公用方法或工具类方法\n          |-----------wxs                             项目公用过滤器\n          |-----------app.js                          小程序主js文件\n          |-----------app.json                        小程序主json配置文件\n          |-----------app.wxss                        小程序主wxss样式文件\n|---------gulpfile.js                     项目压缩的脚本配置文件\n|---------package.json                    npm初始文件\n|---------README.md                       项目说明文件\n|---------webpack.config.babel.js         项目编译打包配置文件\n|---------.eslintrc                       js代码规范检测配置文件\n|---------.babelrc                        es6转换\n|---------.gitignore                      上传git时，指定忽略上传文件的配置文件\n``````\n\n## 注意事项\n* 每次启动项目后，都需重新打开微信开发者工具","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebpersonalserver%2Fwx-mini","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebpersonalserver%2Fwx-mini","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebpersonalserver%2Fwx-mini/lists"}