Git Product home page Git Product logo

vue-boilerplate's Introduction

vue-boilerplate

vue的脚手架,vue + vue-router + vuex

Usage

1. npm install
2. npm start
3. open 0.0.0.0:8082

Features

  • vue
  • vue-router
  • vuex

目录结构

├── dist
├── src
│   ├── components    
│   ├── router    
│   ├── store
│   ├── pages
│   ├── App.vue
│   ├── main.js
├── test
├── package.json
└── README

Explation

  1. 使用封装在一起的db模块,请求url都在同一个文件配置,省力。
  2. 起初使用fetch,后台发现请求不定时有问题,改用superagent,暂时没发现。
  3. 可以在webpack里定义多entry,打包的时候会打出多个包。

changelog

1.0.3 vue-loader升级到12.1.0之后lang=sass不在适用,改成lang=scss

1.0.4 删除dev和prod的devserver设置

1.1.0 增加按需加载和路由切换动效,未完成vuex的externals

1.1.1 增加翻页左右滑动动效

vue-boilerplate's People

Contributors

mcdyzg avatar

Watchers

James Cloos 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.