{"id":13603920,"url":"https://github.com/NervJS/taro-components-sample","last_synced_at":"2025-04-11T22:31:59.756Z","repository":{"id":39554066,"uuid":"137664713","full_name":"NervJS/taro-components-sample","owner":"NervJS","description":"taro components sample","archived":false,"fork":false,"pushed_at":"2023-03-04T03:28:10.000Z","size":3302,"stargazers_count":55,"open_issues_count":12,"forks_count":14,"subscribers_count":13,"default_branch":"next","last_synced_at":"2024-11-07T08:41:43.941Z","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/NervJS.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}},"created_at":"2018-06-17T15:17:15.000Z","updated_at":"2024-10-15T06:31:53.000Z","dependencies_parsed_at":"2024-03-18T15:42:25.051Z","dependency_job_id":null,"html_url":"https://github.com/NervJS/taro-components-sample","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/NervJS%2Ftaro-components-sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NervJS%2Ftaro-components-sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NervJS%2Ftaro-components-sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NervJS%2Ftaro-components-sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NervJS","download_url":"https://codeload.github.com/NervJS/taro-components-sample/tar.gz/refs/heads/next","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248489749,"owners_count":21112632,"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-08-01T19:00:36.521Z","updated_at":"2025-04-11T22:31:58.875Z","avatar_url":"https://github.com/NervJS.png","language":"JavaScript","readme":"\n安装 Taro 开发工具 `@tarojs/cli`\n\n使用 npm或者yarn 全局安装，或者直接使用[npx](https://medium.com/@maybekatz/introducing-npx-an-npm-package-runner-55f7d4bd282b)\n\n```bash\n$ npm install -g @tarojs/cli\n$ yarn global add @tarojs/cli\n```\n\n安装依赖包：\n```\n$ yarn install\n```\n\n进入项目目录开始开发，可以选择小程序预览模式，或者H5预览模式，若使用微信小程序预览模式，则需要自行下载并打开[微信开发者工具](https://developers.weixin.qq.com/miniprogram/dev/devtools/download.html)，选择预览项目根目录下 `dist` 目录。\n\n微信小程序编译预览模式\n\n```bash\n# npm script\n$ npm run dev:weapp\n# 仅限全局安装\n$ taro build --type weapp --watch\n# npx用户也可以使用\n$ npx taro build --type weapp --watch\n```\n\nH5编译预览模式\n```bash\n# npm script\n$ npm run dev:h5\n# 仅限全局安装\n$ taro build --type h5 --watch\n# npx用户也可以使用\n$ npx taro build --type h5 --watch\n```\n\n项目打包\n\n打包小程序代码\n```bash\n# npm script\n$ npm run build:weapp\n# 仅限全局安装\n$ taro build --type weapp\n# npx用户也可以使用\n$ npx taro build --type weapp\n```\n\n打包H5代码\n```bash\n# npm script\n$ npm run build:h5\n# 仅限全局安装\n$ taro build --type h5\n# npx用户也可以使用\n$ npx taro build --type h5\n```\n","funding_links":[],"categories":["示例项目"],"sub_categories":["Taro 3"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FNervJS%2Ftaro-components-sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FNervJS%2Ftaro-components-sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FNervJS%2Ftaro-components-sample/lists"}