{"id":19136967,"url":"https://github.com/singcl/taro-weapp","last_synced_at":"2025-06-11T13:05:01.720Z","repository":{"id":39118595,"uuid":"497962094","full_name":"singcl/taro-weapp","owner":"singcl","description":"基于taro3.x，Vue3.x开发的一款 wonderful小程序！","archived":false,"fork":false,"pushed_at":"2023-02-14T15:21:54.000Z","size":4515,"stargazers_count":15,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-19T14:57:39.418Z","etag":null,"topics":["commitizen","eslint","prettier","stylint","taro3","typescript","vue3","vue3-composition-api","vue3-setup","vue3-typescript"],"latest_commit_sha":null,"homepage":"https://wx.imcoco.top","language":"Vue","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/singcl.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2022-05-30T13:47:09.000Z","updated_at":"2024-06-14T14:11:48.000Z","dependencies_parsed_at":"2024-11-09T06:36:08.302Z","dependency_job_id":"cbcd3501-878e-4907-aa98-d5569f1d667b","html_url":"https://github.com/singcl/taro-weapp","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/singcl%2Ftaro-weapp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/singcl%2Ftaro-weapp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/singcl%2Ftaro-weapp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/singcl%2Ftaro-weapp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/singcl","download_url":"https://codeload.github.com/singcl/taro-weapp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252761228,"owners_count":21800125,"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":["commitizen","eslint","prettier","stylint","taro3","typescript","vue3","vue3-composition-api","vue3-setup","vue3-typescript"],"created_at":"2024-11-09T06:36:00.373Z","updated_at":"2025-05-06T20:10:47.555Z","avatar_url":"https://github.com/singcl.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"![ci](https://img.shields.io/github/actions/workflow/status/singcl/taro-weapp/ci.yaml?branch=master\u0026label=ci\u0026logo=github)\n![nycrc config on Github](https://img.shields.io/nycrc/singcl/taro-weapp?color=blue\u0026config=.nycrc\u0026label=nyc%20covrage)\n[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-%23FE5196?logo=conventionalcommits\u0026logoColor=white)](https://conventionalcommits.org)\n\n# taro-weapp\n\n`taro-weapp`是一款功能完备的基于 taro3.x，Vue3.x 开发的 wonderful 小程序！\n\n小程序后端服务[gin-taro-api](https://github.com/singcl/gin-taro-api)基于`go 1.18+`编写。\n\n## Preview\n\n- [ ] 个人中心\n\n紧锣密鼓地开发中 💥...\n\n|                  个人中心                  |                  个人中心                  |\n| :----------------------------------------: | :----------------------------------------: |\n| ![mine-center](./preview/mine-center.jpg)  | ![mine-center](./preview/mine-center2.jpg) |\n| ![mine-center](./preview/mine-center3.jpg) |                     -                      |\n\n## Eslint\n\n项目配置完整的 eslint 检查，prettier 格式化规则，并且相互兼容。\n\n```js\n// ESLint 检查 .vue 文件需要单独配置编辑器：\n// https://eslint.vuejs.org/user-guide/#editor-integrations\nmodule.exports = {\n  root: true,\n\n  extends: [\n    // lint vue 文件\n    // eslint-config-taro配置包中没有引入依赖eslint-plugin-vue\n    // 所以需要项目安装eslint-plugin-vue\n    'taro/vue3',\n    // eslint 集成prettier 规则，\n    // 需要先安装\n    // eslint-config-prettier\n    // eslint-plugin-prettier\n    // 1. disabled掉eslint中和prettier想冲突的规则\n    // 2. 实时以eslint 提示的方式显示prettier规则\n    // @see https://github.com/prettier/eslint-plugin-prettier\n    'plugin:prettier/recommended',\n  ],\n  rules: {},\n  // 方式一：\n  // lint js?(x) ts?(x)文件\n  // eslint-config-taro 没有引入相关依赖\n  // 需要项目单独安装：\n  // \"eslint-plugin-import\": \"^2.26.0\",\n  // \"eslint-plugin-react\": \"^7.30.0\",\n  // \"eslint-plugin-react-hooks\": \"^4.5.0\",\n  // glob functionally: https://github.com/isaacs/node-glob\n  overrides: [{ files: ['**/*.js?(x)', '**/*.ts?(x)'], extends: ['taro'] }],\n  // 方式二：\n  // 不使用taro配置包，自定义lint ts文件\n  // overrides: [\n  //   {\n  //     files: [\"src/**/*.ts\"],\n  //     parserOptions: {\n  //       tsconfigRootDir: __dirname,\n  //       project: [\"./tsconfig.json\"],\n  //       extraFileExtensions: [\".vue\"],\n  //     },\n  //     parser: \"@typescript-eslint/parser\",\n  //     plugins: [\"@typescript-eslint\"],\n  //     extends: [\n  //       \"eslint:recommended\",\n  //       \"plugin:@typescript-eslint/recommended\",\n  //       \"plugin:@typescript-eslint/recommended-requiring-type-checking\",\n  //     ],\n  //     excludedFiles: \"*.test.ts\",\n  //   },\n  // ],\n};\n```\n\n## Stylelint\n\n项目配置完整的 Stylelint 检查。\n\n```js\n// @see https://www.npmjs.com/package/stylelint-stylus\n// @see https://stylelint.io/user-guide/configure/\nmodule.exports = {\n  extends: [\n    'stylelint-config-standard',\n    'stylelint-config-prettier',\n    'stylelint-config-standard-scss',\n    'stylelint-config-prettier-scss',\n    // @see https://www.npmjs.com/package/stylelint-stylus\n    'stylelint-stylus/standard',\n  ],\n  rules: {\n    // override/add rules settings here, such as:\n    // \"stylus/declaration-colon\": \"never\"\n  },\n};\n```\n\n## Commitizen\n\n代码提交前 commit message 规范检查与交互式设置\n\n### pre-commit\n\n代码提交前 eslint，校验， volar 编译类型校验\n\n```sh\n#!/usr/bin/env sh\n# @see #!/bin/bash 和 #!/usr/bin/env bash 的区别\n. \"$(dirname -- \"$0\")/_/husky.sh\"\n\necho \"😊😊 eslint...\"\nnpm run eslint\necho \"✨✨Eslint Success!\"\n\necho \"😊😊 Vue 3 command line Type-Checking tool base on IDE plugin Volar.\"\nnpm run tsc\necho \"✨✨Type-Checking Success!\"\n\necho \"😊😊 Stylelint...\"\nnpm run stylelint\necho \"✨✨Stylelint-Checking Success!\"\n\n```\n\n### commitizen\n\nnpm run cz 代替 git commit 在提交前交互式引导输入 commit message\n\n```sh\nnpm run cz\n```\n\n### changelog\n\n自动生成 changelog 和更新版本号.\n\n```sh\nnpm run release\n```\n\n## CHANGELOG\n\n[CHANGELOG](./CHANGELOG.md) is here. current version [0.1.0-alpha.7](https://github.com/singcl/taro/compare/v0.1.0-alpha.6...v0.1.0-alpha.7) (2022-07-23).\n\n[commitizen](https://github.com/commitizen/cz-cli),[husky](https://github.com/typicode/husky),[conventional-changelog](https://github.com/conventional-changelog/conventional-changelog),[standard-version](https://github.com/conventional-changelog/standard-version) is very usefull for this project quality.\n\n## Nutui\n\n[使用 nutui 组件库](https://taro-docs.jd.com/taro/docs/nutui)\n\n## Test\n\nTest Resource and [coverage](https://github.com/bcoe/c8/blob/main/.github/workflows/release-please.yml)\n\n[Vue3 Test Guide](https://staging-cn.vuejs.org/guide/scaling-up/testing.html#component-testing)\n\n[Vitest](https://cn.vitest.dev/guide/ide.html#vs-code) Vitest 需要 Vite \u003e=v2.7.10 和 Node \u003e=v14\n\n[vite](https://vitejs.cn/guide/#command-line-interface)\n\n## Inspired\n\ninspired by [taro-vue3](https://github.com/wlllyfor/taro-vue3.git)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsingcl%2Ftaro-weapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsingcl%2Ftaro-weapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsingcl%2Ftaro-weapp/lists"}