{"id":18938236,"url":"https://github.com/wechat-miniprogram/miniprogram-component-plus","last_synced_at":"2025-09-05T08:32:42.529Z","repository":{"id":40291054,"uuid":"226231940","full_name":"wechat-miniprogram/miniprogram-component-plus","owner":"wechat-miniprogram","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-11T21:58:56.000Z","size":3217,"stargazers_count":271,"open_issues_count":48,"forks_count":80,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-12-24T21:06:46.639Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wechat-miniprogram.png","metadata":{"files":{"readme":"README.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}},"created_at":"2019-12-06T02:44:47.000Z","updated_at":"2024-12-20T01:38:26.000Z","dependencies_parsed_at":"2023-01-27T07:45:27.525Z","dependency_job_id":null,"html_url":"https://github.com/wechat-miniprogram/miniprogram-component-plus","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wechat-miniprogram%2Fminiprogram-component-plus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wechat-miniprogram%2Fminiprogram-component-plus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wechat-miniprogram%2Fminiprogram-component-plus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wechat-miniprogram%2Fminiprogram-component-plus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wechat-miniprogram","download_url":"https://codeload.github.com/wechat-miniprogram/miniprogram-component-plus/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232032123,"owners_count":18462971,"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-11-08T12:13:50.740Z","updated_at":"2024-12-31T22:08:16.007Z","avatar_url":"https://github.com/wechat-miniprogram.png","language":"JavaScript","readme":"## 开发\n\n1. 安装依赖：\n\n```\nnpm install\n```\n\n2. 执行命令：\n\n```\nnpm run dev\n```\n\n默认会在包根目录下生成 miniprogram\\_dev 目录，src 中的源代码会被构建并生成到 miniprogram\\_dev/components 目录下。如果需要监听文件变化动态构建，则可以执行命令：\n\n```\nnpm run watch\n```\n\n3. 生成的 miniprogram\\_dev 目录是一个小程序项目目录，以此目录作为小程序项目目录在开发者工具中打开即可查看自定义组件被使用的效果。\n\n## 其他命令\n\n* 清空 miniprogram_dist 目录：\n\n```\nnpm run clean\n```\n\n* 清空 miniprogam_dev 目录：\n\n```\nnpm run clean-dev\n```\n## 子模块开发\n\nsrc 下每个组件目录对应一个 npm 模块，需保证文件名均为 index.xxx，同时添加 package.json， 参考 src/video-swiper。\n\n## 发布npm包\n\n`npm run dist` 后生成 miniprogram_npm 目录，进入到每个子项目中执行 `npm publish --access=publish`\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwechat-miniprogram%2Fminiprogram-component-plus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwechat-miniprogram%2Fminiprogram-component-plus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwechat-miniprogram%2Fminiprogram-component-plus/lists"}