Giter VIP home page Giter VIP logo

vue-cli-3.0's Introduction

技术栈:vue + vue-router + vuex + element-ui + axios + sass + echarts + iconfont + eslint + stylelint + koa + mockjs

可用脚本

在项目目录中,你可以运行:

yarn start/serve

以开发模式运行项目,
在浏览器中可以通过打开 http://localhost:8080 查看。

编辑时支持热更新,
还可以在控制台中看到所有lint错误。

yarn build

dist 文件夹生成生产环境文件。
在生产模式中正确的生成打包文件,并优化构建以获得最佳性能。

生成的文件已经压缩,文件名添加了哈希值。
运行完成后就可以用于部署了。

yarn lint

检测当前项目中js和vue文件是否有不符合规范的代码。

yarn lintstyle

检测当前项目中css和scss文件是否有不符合规范的代码。

yarn mock

开启一个mock服务,可以用来模拟数据返回。

编辑server文件夹中文件时支持热更新。

把请求地址代理到http://localhost:3100即可返回已经配置好的数据。

yarn static

开启一个静态服务,可以用于部署或模拟部署。

yarn report

dist 文件夹生成生产环境文件。

并会生成一个report.html,可以用来查看各个生成的js的组成,可用于优化。

项目规范

在项目中提交的时候会进行代码检查,如果不符合规范将不能提交:

目录介绍

代码书写规范

vue-cli-3.0's People

Contributors

loong-moon 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.