Git Product home page Git Product logo

uniapp-cli's Introduction

uniapp-cli

vue2+uview2 脚手架,开箱即用

Made with ❤︎ by Ikarows



项目地址

git clone https://github.com/Ikarows/uniapp-cli.git

node 版本推荐

大于 v16.0.0 即可。

技术栈

  • Vue2
  • Axios
  • Vuex
  • Eslint
  • uView2

开发

# install cnpm
npm install cnpm -g --registry=https://registry.npm.taobao.org;

# install dependencies
cnpm i

## strat  ##
请放到 Hbuildx 中运行

# eslint
npm run lint

项目目录

├── .hbuilderx         # hbuilderx配置
├── src                # 项目文件夹
│   ├── api            # API接口
│   ├── components     # 公用组件
│   ├── config         # 配置文件
│   │   └── http.ts    # axios 封装
│   ├── pages          # 页面目录
│   ├── static         # 资源文件夹
│   │   ├── img        # 图库
│   │   ├── js         # 脚本
│   │   └── css        # 样式(scss, css, less)
│   ├── store          # Vuex 目录
│   ├── uni_modules    # uni插件
│   ├── utils          # 公用函数目录
│   ├── App.vue        # vue 根文件
│   ├── main.ts        # vue 入口js
│   ├── manifest.json  # hubildx项目打包配置
│   ├── pages.json     # 路由配置
│   └── uni.scss       # 默认样式
│
├── .eslintignore      # eslint忽略文件
├── .eslintrc.js       # eslint配置
├── .gitignore         # git忽略文件
├── .prettierignore    # prettier忽略文件
├── .prettierrc        # prettier风格配置
├── index.html         # 首页入口文件
├── package.json       # 依赖包
├── README.md          # 项目说明
├── upload.mjs         # 自动化部署
└── vue.config.ts     # vue配置文件

分包

已开启分包,请在pages.json配置subPackages即可

"subPackages": [
    {
      "root": "pages/users",
      "pages": [
        {
          "path": "user_info/index",
          "style": {
            "navigationBarTitleText": "用户信息"
          }
        }
      ]
    }
  ]

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.