Benjamin-Coleman / vuejs-webpack-boilerplate

:eyes: vue.js boilerplate using webpack, gsap and scss. Written in es2015

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[ OUTDATED ] VueJs Boilerplate - Babel / Vuex / Webpack / SCSS

Warning

This boilerplate is no longer updated.

Banner

TECHNOLOGIES

  • VueJs
  • Vuex
  • EventEmitter
  • GSAP - TweenMax
  • Babel | ES2015
  • Webpack
  • ESLint
  • SCSS
Install dependancies :
  npm i
Launch the project :
  npm start

The project will be launched at http://localhost:3000/

Build for production :
  npm run build
EventManagerMixin

EventManagerMixin handle Emitter events and DOM events easily. It will auto bind the context, and dettach events when the component will unmount.

If you want to use the EventManager mixin, you need to define emitterEvents / domEvents in your vue component like so :

export default Vue.extend({

  mixins: [EventManagerMixin],

  emitterEvents: [{
    message: WINDOW_RESIZE, // Event Message
    method: 'onWindowResize' // Name of the method
    once: false, // Optional - Listen to the event once or not, default: false
  }],

  domEvents: [{
    target: document, // DOM element to attach the event
    event: 'mousemove', // Event type
    method: 'handleDocumentMouseMove' // Name of the method
  }],

...
}

CONTRIBUTORS

Hope you like it <3

About

:eyes: vue.js boilerplate using webpack, gsap and scss. Written in es2015

License:MIT License


Languages

Language:JavaScript 76.4%Language:CSS 17.7%Language:HTML 5.9%