Skip to content

ivestszheng/vue2-typescript-starter

Repository files navigation

vue2-typescript-starter

Vue2 typescript starter template using composition-api.

Features

  • File based routing
  • Commitlint
  • TypeScript

Plugins

  • vue/compositon-api - Vue 2 plugin for Composition API
  • axios - Promise based HTTP client for the browser and node.js
  • pinia - Intuitive, type safe and flexible Store for Vue
  • vue-router - The official router for Vue.js
  • less - A backwards-compatible language extension for CSS
  • eslint - A tool for identifying and reporting on patterns found in ECMAScript/JavaScript code
  • prettier - An opinionated code formatter
  • lint-staged - Run linters on git staged files
  • jest - A comprehensive JavaScript testing solution.
  • husky - Modern native Git hooks made easy
  • dep-check - A tool for analyzing the dependencies in a project to see

Usage

Project setup

yarn install

Compiles and hot-reloads for development

yarn dev

Compiles and minifies for production

yarn build

Run all unit tests

yarn test

Run single Test

make sure in tests -> unit

cd .\tests\unit

test your file

yarn jest [FilePath like .\example.spec.ts]

Format code manually.

yarn format
yarn lint-fix

Use commitizen

yarn cz

Check dependencies

yarn depcheck

About

Vue2 typescript starter template using composition-api.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published