VueTs
Rewrite vue using Typescript
- This is a personal research project, DO NOT USE IN PRODUCTION!
Debug
- UnitTest
Tests
can debug unittest
- Web
npm start
或者npm run build
run examples/index.html
or use Web
, can debug packed ts
NPM scripts
npm t
: Run test suitenpm start
: Runnpm run build
in watch modenpm run test:watch
: Run test suite in interactive watch modenpm run test:prod
: Run linting and generate coveragenpm run build
: Generate bundles and typings, create docsnpm run lint
: Lints codenpm run commit
: Commit using conventional commit style (husky will tell you to use it if you haven't 😉)
- 如果vscode里observe.spec.ts里
toHaveBeenLogged
显示红色,可以先打开helpers/testSetup.d.ts
就好了