GithubHelp home page GithubHelp logo

wp993080086 / uniapp-cli-v2-template Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 781 KB

一个开箱即用基于vue2的uniApp小程序(H5/App)项目模板。

JavaScript 71.72% Shell 0.21% HTML 3.31% Vue 13.70% SCSS 9.35% CSS 1.72%
eslint husky uni-ui uview-ui vue

uniapp-cli-v2-template's Introduction

vue uview-ui uni-ui eslint husky

⚡️ 简介

一个开箱即用,基于 Vue 2 + Uview-ui + Uni-uiuniapp 小程序(H5/App)项目模板。

🚀 开发

  • 建议使用Vs code开发,微信开发者工具预览
  1. 安装
npm install
  1. 运行
npm run serve
  • 运行成功后,使用微信开发者工具,选择 mp-weixin 目录并打开,目录路径:dist/dev/mp-weixin

📦️ 打包

npm run build
  • 打包完成后,使用微信开发者工具,选择 mp-weixin 目录并打开,目录路径:dist/build/mp-weixin,在微信开发者工具中点击上传即可

🔧 代码检查修复

npm run lint-fix

📦️ 目录说明

├─ .eslintrc.js // eslint配置
├─ .eslintignore // eslint忽略目录
├─ vue.config.js // vue配置
├─ .husky // git钩子
├─ .lintstagedrc.json // husky配置
├─ .gitignore // git忽略目录
├─ .prettierignore // prettier忽略目录
├─ .prettierrc.js // prettier配置
├─ babel.config.js // babel配置
├─ package.json // 脚手架配置
├─ tsconfig.json // ts配置
└─ src
  ├─ App.vue // 根容器
  ├─ main.js
  │  
  ├─ components // 组件
  │  │  copy-text // 文字复制组件
  │  │  phone-text // 手机号码复制组件
  │  └─ 
  ├─ pages // 页面
  │ 
  ├─ pages.json // 小程序页面配置
  │ 
  ├─ manifest.json // uniapp配置
  │                                 
  ├─ request // 接口
  │          
  ├─ static // 静态资源        
  │      
  └─ utils // 工具库
  │ │  index.ts
  │ │  toast.ts // 弹窗封装
  │ └─ 
  └─ 

uniapp-cli-v2-template's People

Contributors

wp993080086 avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

oniontang

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.