Vue Webpack Boilerplate screenshot

Vue Webpack Boilerplate

Author Avatar Theme by Re fort
Updated: 22 Feb 2018
51 Stars

A webpack boilerplate with vue-loader, axios, vue-router and vuex

Categories

Overview:

The CircleCIvue-webpack-boilerplate is a Webpack boilerplate that comes with various useful features for building Single Page Applications (SPA) using Vue.js. It aims to streamline the development process by eliminating the need for manually setting up libraries such as vue-loader, axios, vue-router, and Vuex. The boilerplate also includes practical demos, Buefy components based on Bulma, ready-to-use Vue plugins like vue-router and Vuex, tracking plugins like Google Analytics and Sentry, unit testing with Karma, Mocha, and vue-test-utils, and features like Hot Module Replacement and hash filenames for production builds. It also provides handy NPM scripts and offers CircleCI integration for continuous integration.

Features:

  • Practical demo: The boilerplate comes with a practical demo that serves as an example of how to use the included features.
  • Buefy components: Buefy is a collection of lightweight Vue-based components that are built on top of Bulma. These components can be easily used in the project.
  • Ready to use Vue plugins: The boilerplate includes pre-configured and ready-to-use plugins for Vue, such as vue-router and Vuex, which enhance the development experience.
  • Useful tracking plugins: It also provides plugins for tracking, such as Google Analytics and Sentry, which help monitor the usage and performance of the application.
  • Use of webpack and vue-loader with Hot Module Replacement: The boilerplate utilizes webpack and vue-loader, enabling features like Hot Module Replacement, which allows for real-time updates during development.
  • Unit testing: It offers support for unit testing with Karma, Mocha, and vue-test-utils, making it easier to write and execute tests for the application.
  • Add hash to filename when production build: During production builds, filenames are appended with a hash to avoid cache problems and ensure that users always receive the latest version of the application.
  • Inject built files: The boilerplate uses html-webpack-plugin to automatically inject built files into the HTML template, saving developers from manually managing script tags.
  • Handy NPM scripts: It provides a set of convenient NPM scripts that simplify common development tasks, such as running the development server, building the project, and running tests.
  • CI (Circle CI) integration: The boilerplate supports CircleCI integration, allowing for seamless continuous integration and automated testing.

Installation:

To use the CircleCIvue-webpack-boilerplate, follow these steps:

  1. Clone the repository to your local machine: git clone https://github.com/re-fort/vue-webpack-boilerplate.git
  2. Change into the project directory: cd vue-webpack-boilerplate
  3. Install the project dependencies: npm install

Summary:

The CircleCIvue-webpack-boilerplate is a feature-packed Webpack boilerplate that simplifies the setup and development of Single Page Applications using Vue.js. It includes a variety of useful features like pre-configured Vue plugins, Buefy components, tracking plugins, and unit testing capabilities. With handy NPM scripts and CircleCI integration, it offers an efficient and streamlined development experience for SPA projects.