GithubHelp home page GithubHelp logo

kellymilligan / vue-cli-extensions Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 7 KB

Additional configuration info and files to set up a Vue CLI project as per my tastes

License: MIT License

JavaScript 6.09% Vue 3.05% CSS 90.86%

vue-cli-extensions's Introduction

vue-cli-extensions

Additional configuration info and files to set up a Vue CLI project as per my tastes


ESLint

Custom rules:

'brace-style': 0,
'comma-dangle': 0,
'no-multi-spaces': 0,
'no-multiple-empty-lines': 0,
'padded-blocks': 0,
'space-in-parens': 0,
'space-before-function-paren': 0,
'template-curly-spacing': 0

Paste into .eslintrc


Normalize

  1. Normalize yarn add normalize.css

  2. import in main.js:

import 'normalize.css'

SCSS foundation

  1. copy src/styles into new project scaffold
  2. Add foundation imports in App.vue:
@import '@/styles/reset.scss';
@import '@/styles/fontface.scss';
@import '@/styles/scrollbar.scss';
  1. Import core in any component that requires scss tooling
@import '@/styles/core.scss';

WebGL

  • If using Three.js: yarn add three
  • If using GLSL files: yarn add raw-loader glslify-loader and add these loader tests in /vue.config.js:
module.exports = {
  chainWebpack: config => {
    config.module.rule('glsl').test( /\.(glsl|frag|vert)$/ ).use( 'raw-loader' ).loader( 'raw-loader' ).end()
    config.module.rule('glsl').test( /\.(glsl|frag|vert)$/ ).use( 'glslify-loader' ).loader( 'glslify-loader' ).end()
  }
}

Misc

  • Lodash.defaultsDeep yarn add lodash.defaultsdeep

  • To remove hot reloading, add to vue.config.js:

module.exports = {
  chainWebpack: config => {
    config.module.rule( 'vue' ).use( 'vue-loader' ).loader( 'vue-loader' ).tap( options => {
      options.hotReload = false; return options
    } )
  }
}

vue-cli-extensions's People

Contributors

kellymilligan 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.