Giter Club home page Giter Club logo

uni-vue3-ts-template's Introduction

uniapp + vue3 + ts 项目开发模版

集成 uni-ui 框架

Github 链接

<template>
  <view class="content">
    <UniBadge :text="9" />
  </view>
</template>

<script setup lang="ts">
// 组件引用
import UniBadge from "@ui/uni-badge/uni-badge.vue";
</script>

路由 & 页面管理

http 请求封装

状态管理

工具方法

类型定义

代码校验

Eslint 相关插件

  1. eslint-plugin-vue : Vue.js 的官方 ESLint 插件。
  2. @typescript-eslint/eslint-plugin: 为 TypeScript 代码库提供 eslint 规则。
  3. eslint-plugin-prettier: 将 Prettier 作为 ESLint 规则运行,并将差异作为 ESLint 问题。
  4. eslint-plugin-import : 此插件支持 ES2015+ (ES6+) 导入/导出语法的检查(仅引用 eslint-plugin-import/order 模块)
  5. eslint-plugin-you-dont-need-lodash-underscore : 识别代码库中不需要 Lodash/Underscore 的地方。(由于小程序轻量级特性, 禁止使用 Lodash/Underscore 等类库)

miniprogram-ci

原子化 css

unocss

  1. unocss-preset-weapp : 为 UniApp 和 Taro 的微信小程序提供的预设
  2. @unocss/transformer-directives: @apply、@screen 和 theme()指令的 UnoCSS 转换器, 使用对应的指令, 将支持的样式或主题应用到 css 中

    项目中的tailwind.config.cjs只是为了利用 tailwind 的 vscode 拓展进行主题提示, 后续 unocss 支持相关 vscode 提示的话再移除此配置

第三方库

  • type-fest ts 类型工具集

uni-vue3-ts-template's People

Watchers

 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.