项目作者: Yama-Tomo

项目描述 :
vuex tutorial and nuxt.js sample
高级语言: TypeScript
项目地址: git://github.com/Yama-Tomo/vue-vuex-typescript-sample.git
创建时间: 2018-07-10T09:20:25Z
项目社区:https://github.com/Yama-Tomo/vue-vuex-typescript-sample

开源协议:

下载


vuex tutorial + typescript + nuxt.js

CircleCI
codecov

:arrow_right: vue.js only branch

get started

  • create .env file

    • This repository include .env.sample file
    1. $ cp .env.sample .env
    2. $ # customize your .env file
  • enable yarn wrapper shell

    1. $ source .npm_scripts/yarn-with-dotenv
  • starting server

    1. $ docker-compose up -d

    or, If you want to launch nuxt server on host machine.

    1. $ docker-compose up -d backend
    2. $ yarn && yarn dev
  • test

    1. $ docker-compose run puppeteer sh -c 'yarn && yarn sb:build && yarn test'

    or, If you want to run jest on host machine.

    1. $ yarn && yarn sb:build && yarn test

    NOTICE: visual tests are skipped when run test on host machine. Because occurs test result difference when use the puppeteer installed on each platform

note

This repository is manage expect files of snapshot testing by git lfs, so you need to install git lfs.

Already installed git hooks by husky if you already clone this repository, In that case, please install the hooks manually by git lfs update --manual after install git lfs