refactor: with TypeScript (#24)

* refactor: add ts support (#19)

Co-authored-by: 逆寒 <869732751@qq.com>
This commit is contained in:
Amour1688
2020-07-09 20:51:47 +08:00
committed by GitHub
parent 3d49271878
commit bc4ef2c028
18 changed files with 430 additions and 285 deletions

View File

@@ -12,9 +12,9 @@
},
"scripts": {
"dev": "npm run build && webpack-dev-server",
"build": "rollup -c",
"build": "tsc",
"lint": "eslint --ext .js src",
"test": "jest --coverage"
"test": "npm run build && jest --coverage"
},
"bugs": {
"url": "https://github.com/vueComponent/jsx/issues"
@@ -27,13 +27,14 @@
"@ant-design-vue/babel-helper-vue-transform-on": "^1.0.0",
"@babel/helper-module-imports": "^7.0.0",
"@babel/plugin-syntax-jsx": "^7.0.0",
"@babel/types": "^7.0.0",
"camelcase": "^6.0.0",
"html-tags": "^3.1.0",
"svg-tags": "^1.0.0"
},
"devDependencies": {
"@babel/core": "^7.9.6",
"@babel/preset-env": "^7.9.6",
"@babel/core": "^7.0.0",
"@babel/preset-env": "^7.0.0",
"@rollup/plugin-babel": "^5.0.3",
"@vue/compiler-dom": "3.0.0-beta.20",
"@vue/test-utils": "^2.0.0-alpha.8",
@@ -43,6 +44,7 @@
"regenerator-runtime": "^0.13.5",
"rollup": "^2.13.1",
"vue": "3.0.0-beta.20",
"typescript": "^3.9.6",
"webpack": "^4.43.0",
"webpack-cli": "^3.3.11",
"webpack-dev-server": "^3.10.3"