Skip to content

vite+ts的组件库演示代码,element音译 ailemente

Notifications You must be signed in to change notification settings

Kinasha/ailemente

 
 

Repository files navigation

Vue 3 + Typescript + Vite

husky

npx husky install
npx husky add .husky/commit-msg "node scripts/verifyCommit.js"

eslint

npm install -D eslint typescript

npm install -D  eslint-plugin-vue @vue/eslint-config-typescript

npm install -D @typescript-eslint/parser @typescript-eslint/eslint-plugin
npx husky add .husky/pre-commit "npm run lint"


@todo lint-staged 只校验暂存区 @todo pettier配合eslint优化代码格式,这里忽略

npm install -D prettier eslint-plugin-prettier @vue/eslint-config-prettier

unit test

https://github.com/vuejs/vue-test-utils-next

jest27有点小问题,手动安装版本26

npm install -D jest@26 vue-jest@next @vue/test-utils@next 
npm install -D babel-jest@26 @babel/core @babel/preset-env 
npm install -D ts-jest@26 @babel/preset-typescript @types/jest


About

vite+ts的组件库演示代码,element音译 ailemente

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vue 51.3%
  • SCSS 22.6%
  • TypeScript 12.8%
  • JavaScript 11.6%
  • HTML 1.2%
  • Shell 0.5%