awesome-vue-cli3-example

授权协议 MIT License
开发语言 JavaScript
所属分类 Web应用开发、 常用JavaScript包
软件类型 开源软件
地区 不详
投 递 者 黎阳冰
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

Awesome Vue-Cli3 Example

�� (Vue Webpack Vuex Vue-router Element-ui/...) out of the box
�� Awesome example for rapid Vue.js development using vue-cli3.

English | 中文

Goal and Philosophy

To facilitate developers to use Vue-cli3 more conveniently, and to build Web applications more efficiently and reasonably.

Prerequisites

Node.js (>= 8.*), Npm version 4+(Yarn preferred), and Git.

Online Demo

Online Demo Page: https://vue-cli3.lovejade.cn

Usage

# �� clone the project
git clone https://github.com/nicejade/awesome-vue-cli3-example.git your-project-name
cd your-project-name

# ➕ install dependencies & start dev
yarn && yarn start

Advantage

This boilerplate built on Vue-Cli3 inheriting the previous vue-boilerplate-template project to explore the more efficient construction for high-quality web applications (recommended to read 开箱即用的 Vue Webpack 脚手架模版), Some optimization items are designed, the specific list as followed:

  • Import & configure Vue-router to make the building of a single-page application (SPA) breeze;
  • Import & configure Vuex to handle the management of status for application development;
  • Import Element-ui to build a website quickly without paying too much attention to the UI;
  • Import & encapsulating Axios to response the Http requests more elegant;
  • Import Dayjs to handle date-time correlation in a slight cost;
  • Import & encapsulate the Marked plugin so that it can be used as a rich text editor,and it also can achieve Markdown to draw the page due to its parsing function.
  • Import vue-meta plugin so that allows you to manage your app's meta information, much like react-helmet does for React. It'm awesome for SEO.
  • Making the optimization based on the new features of Webepack 4.*. Getting the details on vue.config.js;
  • Opening & using Jest to test the component with the Demo;
  • Integrate & configure the Prettier plugin to enable the team to code with better and consistent style. Getting the details on the 使用 ESLint & Prettier美化Vue代码;
  • Import cli-plugin-pwa plugin,and configure in `vue.config.js` ,you can get started easily with PWA using Vue;
  • Import the prerender-spa-plugin plugin to pre-render static HTML, optimizing SEO and first-screen rendering in a single-page application .
  • Import the webpack-bundle-analyzer plugin so that to get the contents of the building packages with optimization while running Yarn analyz. Getting the details: Webpack 打包优化之体积篇.
  • Import the size-plugin plugin to print the Gzip size of the Webpack asset and the changes since the last building while building the app.
  • Import the hard-source-webpack-plugin plugin for webpack to provide an intermediate caching step for modules. It make the second build will be signficantly faster.
  • The combination of this scaffolding with Node.js (Koa2) Nginx MondoDb Redis is integrated into Docker to make Front-End Developer build easily the entire web application.Its currently open sourced in Docker Vue Node Nginx Mongodb Redis.
  • Optimizing the built-in Icon (Svg) component so that you can receive input in different ways and extract Svg into a separate file to avoid repeated loading of resources;

TIP: prerender-spa-plugin: Prerenders static HTML in a single-page application. But, it is not required. If you don't need it, you can remove it. Because it requires a lot of dependencies(puppeteer,Chromium: ~170MB Mac, ~282MB Linux, ~280MB Win) to download, this is time consuming.

Recommended links

License

MIT

Copyright (c) 2018-present, nicejade.

  • 基于之前写的vue2.0 + vue-cli + webpack 搭建项目( vue-awesome-swiper版本:3.1.3 ,如果成功后没报错,但不显示分页样式,可能版本对不上) 1.进入项目目录,安装swiper npm install vue-awesome-swiper --save 2.引入资源(main.js文件) import VueAwesomeSwiper from 'vu

  • 原文链接:https://www.cnblogs.com/nanjie/p/8556287.html 基于之前写的vue2.0 + vue-cli + webpack 搭建项目( vue-awesome-swiper版本:3.1.3 ,如果成功后没报错,但不显示分页样式,可能版本对不上) 1.进入项目目录,安装swiper npm install vue-awesome-swiper --save

  • 用vite搭建的vue3项目没有带单元测试功能,后期想添加这功能,我的思路是用vue-cli搭建一个有单元测试的空框架,然后把单元测试需要的文件复制到项目中。如果项目中有TS,创建项目的时候就要把ts也一起创建。 需要复制的文件有: 1.readme # jesttwo ## Project setup npm install ### Compiles and hot-reloads for

  • vue vue-jsx标签 Vue.js has an easy API and several options for defining HTML templates in our components. Vue.js具有简单的API和几个选项,可用于在组件中定义HTML模板。 We can use the <template> tag option, define a template pro

 相关资料
  • Awesome Vue Boilerplate This is an ever-evolving, very opinionated architecture and dev environment for new Vue SPA projects using Vue CLI 3. Getting started # 1. Clone the repository.git clone https:

  • Awesome NativeScript Vue NativeScript-vue resource collection. This is a document to be completed together. Collaboration with the "revision" branch. Thank you Official: Documentation Repository Slack

  • 当我运行npm运行开始,我得到 然后我使用http请求,但是我得到 代理错误:无法将请求/crm/api/boss/admin/doLogin从localhost:8080代理到https://qa6boss.qjdchina.com. 看见https://nodejs.org/api/errors.html#errors_common_system_errors 欲了解更多信息(EPROTO)。

  • 本文向大家介绍Vue CLI2升级至Vue CLI3的方法步骤,包括了Vue CLI2升级至Vue CLI3的方法步骤的使用技巧和注意事项,需要的朋友参考一下 以下备忘升级至 Vue CLI 3.x 版本后,将项目目录改为新结构时所需做的一些改动。 1. 卸载与安装 注:若要使用 Vue CLI 3,需将 Node 版本升级至 8.9 及以上。 当使用 nvm 管理 node 版本时,可以使用如下

  • 本文向大家介绍vue-cli3 DllPlugin 提取公用库的方法,包括了vue-cli3 DllPlugin 提取公用库的方法的使用技巧和注意事项,需要的朋友参考一下 vue 开发过程中,保存一次就会编译一次,如果能够减少编译的时间,哪怕是一丁点,也能节省不少时间。开发过程中个人编写的源文件才会频繁变动,而一些库文件我们一般是不会去改动的。如果能把这些库文件提取出来,就能减少打包体积,加快编译

  • 本文向大家介绍Vue CLI3 如何支持less的方法示例,包括了Vue CLI3 如何支持less的方法示例的使用技巧和注意事项,需要的朋友参考一下 本文介绍了Vue CLI3 如何支持less的方法示例,分享给大家,具体如下: 安装方式: 或者 大家在编写 .vue 文件的 style 的时候多会选择采用预编译样式来加速开发效率 这里我们提一下,如何在新版 Vue CLI 中增加对 less