Skip to content

boilerplate project for Vue, VueX + JSX with webpack setup, localisation and eslint

Notifications You must be signed in to change notification settings

ssolders/vue-jsx-boilerplate

Repository files navigation

Vue/VueX + JSX boilerplate

To run:

npm install
npm start

Good to know

API Endpoint

A global url __API__ is set in webpackconfig. Depending on if node_env is development, production or test you can set this differently. See /build/webpack.base.config.js

Alias

There's an alias added for importing files from src mapped to ~ This allows you to always start from src-folder and not hanving to ../../../../ your way up.

Example:

import myComponent from '~/components/myComponent'

equals

import myComponent from 'src/components/myComponent'

JSX

The project uses jsx instead of the original vue-templates. Along with this, we use external stylesheets with SASS instead of using scoped styles for each component.

Internationalization

Language is governed by the url-paramater "lang". So for english and swedish are supported. Fallback is to use english. To use another language:

http://localhost:3000?lang=sv

About

boilerplate project for Vue, VueX + JSX with webpack setup, localisation and eslint

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages