GithubHelp home page GithubHelp logo

vue-starter's Introduction

Vue starter

Personnal Vue starter

Features

  • Webpack 4
  • Vue class component with Babel 7 or TypeScript
  • Sass enabled by default
  • PWA & Workbox plugins
  • Vue plugins
    • vue-router
    • vuex
    • vue-i18n
    • vue-meta
    • vuelidate
  • Webpack plugins
    • PostCSS with Autoprefixer & CSSNext
    • Imagemin
    • Critical CSS
    • Dotenv integration
  • Units tests with Mocha & @vue/test-utils
  • E2E tests with Cypress
  • Linters (ESLint & Stylelint) and Prettier
  • SSR support
    • Koa & koa-webpack
    • vuex & meta integration
    • PWA, Workbox & Critical CSS support
    • Inject component data with asyncData() method
  • CLI with dev, build and start commands
  • Accessibility checks with Tota11y
  • Errors dedicated page

Why ? Nuxt exists !

Yeah, Nuxt is great, unit and battle-tested. I've done this project only for my needs and to understand: how Vue works, server-side rendering and Webpack better. In the end, I think Nuxt is a bit too much opinionated and some files are not overwritable, but it's just a matter of taste !

So, if you want a production-ready tool, use Nuxt. If you want to learn / see how server-side rendering works in Vue take a look at the source code !

Getting started

Start development server:

npm run dev # SPA mode
npm run dev -- --ssr # SSR mode

Build production:

npm run build #SPA mode
npm run build -- --ssr # SSR mode

Start production server:

npm start #SPA mode
npm start -- --ssr # SSR mode

Description

Folders & files structure

  • /app : Contains all your application components and logic
  • /app/core : Contains needed files by core to run, but you can customize some elements for your app
  • /assets : For your SCSS files, images and fonts
  • /build : Webpack configuration, development and production servers
  • /core : Base files for Vue initialization, for advanced customizations
  • /static : Will be copied to /dist folder directly
  • /tests : Units & E2E tests files
  • /project.js : Base configuration for your project

More to come...

  • Vue class component
  • Store module helper
  • Initialization function
  • PWA & Workbox
  • Route loading & transitions

Credits

Todo / WIP / Future

  • Scaffold / generator / Vue CLI ?
  • Dockerfile
  • Error page: nice stacktrace
  • SSR
  • Webpack
    • extend with in project config
    • better way to manage config

License

MIT: see LICENSE file

vue-starter's People

Contributors

yabab-dev 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.