Skip to content

pavlovt/vue-ts-starter

Repository files navigation

Vue Typescript Starter Project

Setup

  • yarn install
  • npm -g i json-server

Usage

To run the servers execute these commands in the main folder:

  • yarn serve
  • json-server db.json

There are several global variables which are defined in global.d.ts:

  • _ : lodash
  • conf: the configuration service
  • msg: notification service
  • core: core utilities
  • api: api service to call the backend They have autocomplete and can be used globally without importing.

Compiles and minifies for production

yarn run build

Run your tests

yarn run test

Lints and fixes files

yarn run lint

Run your end-to-end tests

yarn run test:e2e

Run your unit tests

yarn run test:unit

Customize configuration

See Configuration Reference.