Coder Social home page Coder Social logo

tong822218 / wot-starter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from moonofweisheng/wot-starter

0.0 0.0 0.0 1.61 MB

基于wot-design-uni的uni-app快速启动模板。

License: MIT License

Shell 0.36% JavaScript 13.75% TypeScript 31.45% CSS 0.26% HTML 2.14% Vue 52.04%

wot-starter's Introduction

Wot-Starter

介绍

Wot Design Uni 组件库的快速启动模板。

特性

  • 🚀 使用vue3/vite4/pinia/axios等主流框架开发
  • 🚀 引入Wot Design Uni组件库,开箱即用
  • 💪 引入Eslint/Prettier,统一前端代码风格
  • 💪 引入lint-staged/husky/commitlint/commitizen/standard-version,统一代码提交规范,自动生成版本发布日志
  • 💪 使用pinia,并支持持久化存储
  • 💪 提供koa-mock本地mock服务
  • 💪 支持axios取消请求(基于requestTask.abort()实现)

注意!!!

插件市场会将类似.eslintrc.js这种以.开头的文件忽略掉,故我将.改成了_上传。如果直接在插件市场下载,需要手动将_改为.,涉及文件及目录包含_husky_vscode_env.development_env.production_eslintignore_eslintrc.js_git-cz.json_gitignore_prettierrc。或者到Githubclonefork

项目依赖

功能 依赖库
组件库 Wot Design Uni
路由(name跳转和导航守卫) uni-mini-router
网络请求(支持取消请求) axios fant-axios-adapter
代码规范 Eslint Prettier
提交规范 lint-staged husky commitlint commitizen
发布日志 standard-version
状态管理 pinia(自定义插件实现持久化)

主要命令

安装依赖
yarn 

或者

npm install
安装mock依赖
yarn mock:install

或者

npm run mock:install
运行
# 运行到h5
yarn dev:h5
运行mock服务
yarn mock:dev
Lint and fix
yarn lint
提交代码
git add .

yarn commit
发布版本
# 大版本
yarn release-major  

# 中版本
yarn release-minor

# 小版本
yarn release-patch
持续集成
# 上传到微信小程序
yarn upload:mp-weixin  

# 上传到支付宝小程序
yarn upload:mp-alipay

# 上传到钉钉小程序
yarn upload:mp-dingtalk

wot-starter's People

Contributors

tong822218 avatar moonofweisheng avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.