Code Monkey home page Code Monkey logo

vue-webpack-boilerplate's Introduction

Vue Webpack Boilerplate

A lean webpack boilerplate for Vue including hot-reloading, linting, unit testing and end-to-end testing. By lean we mean that we still want to give you the freedom in configuring your project. Think about choices like:

  • Router e.g. vue-router
  • State management e.g. vuex

Table of contents

Prerequisites

Make sure you have installed all of the following prerequisites on your development machine:

Installation

Clone the repository and change the directory

$ git clone https://github.com/larsdouweschuitema/vue-webpack-boilerplate && cd vue-webpack-boilerplate

Install dependencies using npm or yarn

$ yarn install
$ npm install

Run app in development mode

$ yarn start

Create production build

$ yarn build

Testing

Unit testing using jest

$ yarn run unit

End-to-end testing using nightwatch

$ yarn run e2e

End-to-end testing with a different environment

$ yarn run e2e --env production

Run all tests

$ yarn run test

Tech stack

  • Package manager yarn
  • Module bundler webpack
  • Client-side framework vue
  • Linter eslint
  • Unit testing jest
  • End-to-end testing using nightwatch
  • Pre-processor sass for styling components

Features

  • Single file components using vue-loader
  • Linting on save using eslint
  • CSS extraction on production using mini-css-extract-plugin
  • Hot reloading
  • Source maps
  • Auto generated file including root element using html-webpack-plugin and html-webpack-root-plugin
  • Split development and production webpack configurations achieved through webpack-merge
  • Minified JavaScript in production using uglifyjs-webpack-plugin

Contributing

To contribute to this repository see the CONTRIBUTING.md file for details

Licenses

This project is licensed under the MIT License - see the LICENSE.md file for details

Contributors โœจ

Thanks goes to these wonderful people (emoji key):

Lars Douwe Schuitema
Lars Douwe Schuitema

๐Ÿ’ป

This project follows the all-contributors specification. Contributions of any kind welcome!

vue-webpack-boilerplate's People

Contributors

allcontributors[bot] avatar larsdouweschuitema avatar

Watchers

 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.