Code Monkey home page Code Monkey logo

my_h5_template_vue3's Introduction

Vue 3 + TypeScript + Vite

基于 vite4.x + vue3.x + vue-router4.x + vant4.x + typescript4.x 的H5页面

  • rem 响应式页面

    阿里flexible.js、postcss-pxtorem

  • 环境配置文件

    .env[mode]

  • eslint + eslintrc.cjs + vscode自动保存

    .vscode/setting.json

    {
        "editor.codeActionsOnSave": {
            "source.fixAll.eslint": true
        },
    }
  • 自动引入组件和样式:不需要在import引入

  • 二次封装axios

搭建步骤

  • 获取源码
git clone 
  • 安装依赖
npm install
  • 运行
npm run dev
  • 打包
npm run build:prod 或 npm run build:dev 或 npm run build:stage

项目目录

├── public                               # 模板文件
├── src
   ├── api                            # 接口文件
   ├── assets                         # 资源目录
   ├── components                     # 公共组件
   ├── router                         # 路由
   ├── types                          # ts声明module
   ├── utils                          # 工具
      ├── request.ts               # 二次封装axios
   ├── views                          # 页面组件
   ├── App.vue                        # 组件入口
   ├── main.ts                        # 项目入口
   ├── style.css                      # 样式
   ├── vite-env.d.ts                  # ts声明
├── .eslintignore                        # eslint忽略校验文件
├── .eslintrc.cjs                        # eslint规则配置文件
├── .gitignore                           # git忽略文件
├── index.html                           # 静态网页入口
├── tsconfig.json                        # ts配置文件,项目在浏览器运行
├── tsconfig.node.json                   # ts配置文件,vite在node环境中运行
├── vite.config.js                       # 脚手架配置文件

my_h5_template_vue3's People

Contributors

leoleor avatar

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.