GithubHelp home page GithubHelp logo

t-vuex-template's Introduction

Vuex Template

Pre requirement

Environment:

  • NodeJS 10+
  • Git

Editor:

  • Visual Studio Code
  • Plugins:
    • Add jsdoc comments
    • Auto Close Tag
    • Auto Rename Tag
    • Beautify
    • Better Comments
    • Debugger for Chrome
    • DotENV
    • EditorConfig for VS Code
    • ESLint
    • GitLens
    • HTML CSS Support
    • IntelliSense for CSS class names in HTML
    • JavaScript (ES6) code snippets
    • JS-CSS-HTML Formatter
    • npm
    • npm Intellisense
    • Prettier - Code formatter
    • vscode-icons
    • vue-jsdoc

Project Structure:

Project Structure

Features

  • Vue + Vue Router + Vuex
  • Vue Router 路由守卫和基本权限配置
  • 环境变量设置(开发环境 + 生产环境)
  • 独立常量定义
  • 全局 + 模块化 Vuex 配置
  • Axios + 请求封装
  • SCSS 预处理器
  • 全局样式文件 + normalize 样式 + flex 布局样式 + 基础样式
  • 布局组件
  • 独立 Services
  • 全局 Mixins 配置
  • vue.config.js 配置
  • 第三方 Utils
  • Code Snippets
  • Mocks 数据
  • 错误上报
  • Visual Studio Code 编辑器配置
  • 浏览器兼容性配置
  • 代码美化配置
  • eslint 配置
  • babel 配置
  • postcss 配置
  • git 初始化
  • gitignore 配置

使用

安装依赖

npm install   // cnpm install // yarn install

启动 mocks 服务

npm run mocks  // yarn mocks

启动应用

npm run serve   // yarn serve

打包应用

npm run build   // yarn build

t-vuex-template's People

Contributors

ken-yao avatar yaoyonstudio avatar

Watchers

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