Skip to content

Commit f6ca27d

Browse files
author
yangdan8
committed
添加tslint检测d.ts规范
1 parent 1011bd4 commit f6ca27d

File tree

4 files changed

+285
-132
lines changed

4 files changed

+285
-132
lines changed

package.json

Lines changed: 133 additions & 131 deletions
Original file line numberDiff line numberDiff line change
@@ -1,133 +1,135 @@
11
{
2-
"name": "iview",
3-
"version": "3.3.0",
4-
"title": "iView",
5-
"description": "A high quality UI components Library with Vue.js",
6-
"homepage": "http://www.iviewui.com",
7-
"keywords": [
8-
"iview",
9-
"vue",
10-
"vue.js",
11-
"component",
12-
"components",
13-
"ui",
14-
"framework"
15-
],
16-
"main": "dist/iview.js",
17-
"typings": "types/index.d.ts",
18-
"files": [
19-
"dist",
20-
"src",
21-
"types"
22-
],
23-
"scripts": {
24-
"dev": "webpack-dev-server --content-base test/ --open --inline --hot --compress --history-api-fallback --port 8081 --config build/webpack.dev.config.js",
25-
"dev:s": "webpack-dev-server --content-base test/ --open --inline --hot --compress --history-api-fallback --port 8081 --host 0.0.0.0 --config build/webpack.dev.config.js",
26-
"dist:style": "gulp --gulpfile build/build-style.js",
27-
"dist:dev": "webpack --config build/webpack.dist.dev.config.js",
28-
"dist:prod": "webpack --config build/webpack.dist.prod.config.js",
29-
"dist:locale": "webpack --config build/webpack.dist.locale.config.js",
30-
"dist": "npm run dist:style && npm run dist:dev && npm run dist:prod && npm run dist:locale",
31-
"lint": "eslint --fix --ext .js,.vue src",
32-
"unit": "cross-env BABEL_ENV=test karma start test/unit/karma.conf.js --single-run",
33-
"test": "npm run lint && npm run unit",
34-
"prepare": "npm run dist"
35-
},
36-
"repository": {
37-
"type": "git",
38-
"url": "https://github.com/iview/iview"
39-
},
40-
"author": "Aresn",
41-
"license": "MIT",
42-
"bugs": {
43-
"url": "https://github.com/iview/iview/issues"
44-
},
45-
"dependencies": {
46-
"async-validator": "^1.10.0",
47-
"deepmerge": "^2.2.1",
48-
"element-resize-detector": "^1.2.0",
49-
"js-calendar": "^1.2.3",
50-
"lodash.throttle": "^4.1.1",
51-
"popper.js": "^1.14.6",
52-
"tinycolor2": "^1.4.1",
53-
"v-click-outside-x": "^3.5.6"
54-
},
55-
"peerDependencies": {
56-
"vue": "^2.5.2"
57-
},
58-
"devDependencies": {
59-
"autoprefixer-loader": "^3.2.0",
60-
"babel-cli": "^6.26.0",
61-
"babel-core": "^6.26.0",
62-
"babel-helper-vue-jsx-merge-props": "^2.0.3",
63-
"babel-loader": "^7.1.5",
64-
"babel-plugin-dynamic-import-node": "^1.2.0",
65-
"babel-plugin-syntax-jsx": "^6.18.0",
66-
"babel-plugin-transform-class-properties": "^6.24.1",
67-
"babel-plugin-transform-es5-property-mutators": "^6.24.1",
68-
"babel-plugin-transform-object-rest-spread": "^6.26.0",
69-
"babel-plugin-transform-runtime": "^6.23.0",
70-
"babel-plugin-transform-vue-jsx": "^3.7.0",
71-
"babel-preset-env": "^1.6.1",
72-
"babel-preset-stage-3": "^6.24.1",
73-
"babel-runtime": "^6.26.0",
74-
"chai": "^4.2.0",
75-
"compression-webpack-plugin": "^1.1.12",
76-
"copy-webpack-plugin": "^4.6.0",
77-
"cross-env": "^5.2.0",
78-
"css-loader": "^0.28.10",
79-
"eslint": "^3.19.0",
80-
"eslint-plugin-vue": "^2.1.0",
81-
"extract-text-webpack-plugin": "^2.1.2",
82-
"file-loader": "^1.1.11",
83-
"friendly-errors-webpack-plugin": "^1.6.1",
84-
"gulp": "^3.9.1",
85-
"gulp-autoprefixer": "^5.0.0",
86-
"gulp-clean-css": "^3.10.0",
87-
"gulp-less": "^4.0.1",
88-
"gulp-rename": "^1.4.0",
89-
"html-loader": "^0.5.5",
90-
"html-webpack-plugin": "^3.0.6",
91-
"karma": "^2.0.5",
92-
"karma-chrome-launcher": "^2.2.0",
93-
"karma-coverage": "^1.1.1",
94-
"karma-mocha": "^1.3.0",
95-
"karma-sinon-chai": "^1.3.3",
96-
"karma-sourcemap-loader": "^0.3.7",
97-
"karma-spec-reporter": "^0.0.32",
98-
"karma-webpack": "^2.0.13",
99-
"less": "^2.7.3",
100-
"less-loader": "^4.0.6",
101-
"lolex": "^2.7.5",
102-
"mocha": "^5.0.4",
103-
"sinon": "^4.4.2",
104-
"sinon-chai": "^3.3.0",
105-
"style-loader": "^0.20.2",
106-
"uglifyjs-webpack-plugin": "^1.3.0",
107-
"url-loader": "^1.1.2",
108-
"vue": "^2.5.17",
109-
"vue-hot-reload-api": "^2.3.1",
110-
"vue-html-loader": "^1.2.4",
111-
"vue-loader": "^14.2.1",
112-
"vue-router": "^3.0.2",
113-
"vue-style-loader": "^4.1.2",
114-
"vue-template-compiler": "^2.5.17",
115-
"webpack": "^3.11.0",
116-
"webpack-dev-server": "^2.11.3",
117-
"webpack-merge": "^3.0.0"
118-
},
119-
"engines": {
120-
"node": ">=8.9.1",
121-
"npm": ">=5.5.1",
122-
"yarn": ">=1.3.2"
123-
},
124-
"browserslist": [
125-
"last 3 Chrome versions",
126-
"last 3 Firefox versions",
127-
"Safari >= 10",
128-
"Explorer >= 11",
129-
"Edge >= 12",
130-
"iOS >= 10",
131-
"Android >= 6"
132-
]
2+
"name": "iview",
3+
"version": "3.3.0",
4+
"title": "iView",
5+
"description": "A high quality UI components Library with Vue.js",
6+
"homepage": "http://www.iviewui.com",
7+
"keywords": [
8+
"iview",
9+
"vue",
10+
"vue.js",
11+
"component",
12+
"components",
13+
"ui",
14+
"framework"
15+
],
16+
"main": "dist/iview.js",
17+
"typings": "types/index.d.ts",
18+
"files": [
19+
"dist",
20+
"src",
21+
"types"
22+
],
23+
"scripts": {
24+
"dev": "webpack-dev-server --content-base test/ --open --inline --hot --compress --history-api-fallback --port 8081 --config build/webpack.dev.config.js",
25+
"dev:s": "webpack-dev-server --content-base test/ --open --inline --hot --compress --history-api-fallback --port 8081 --host 0.0.0.0 --config build/webpack.dev.config.js",
26+
"dist:style": "gulp --gulpfile build/build-style.js",
27+
"dist:dev": "webpack --config build/webpack.dist.dev.config.js",
28+
"dist:prod": "webpack --config build/webpack.dist.prod.config.js",
29+
"dist:locale": "webpack --config build/webpack.dist.locale.config.js",
30+
"dist": "npm run dist:style && npm run dist:dev && npm run dist:prod && npm run dist:locale",
31+
"lint": "eslint --fix --ext .js,.vue src",
32+
"tslint": "tslint --type-check --fix --project .",
33+
"unit": "cross-env BABEL_ENV=test karma start test/unit/karma.conf.js --single-run",
34+
"test": "npm run lint && npm run tslint && npm run unit",
35+
"prepare": "npm run dist"
36+
},
37+
"repository": {
38+
"type": "git",
39+
"url": "https://github.com/iview/iview"
40+
},
41+
"author": "Aresn",
42+
"license": "MIT",
43+
"bugs": {
44+
"url": "https://github.com/iview/iview/issues"
45+
},
46+
"dependencies": {
47+
"async-validator": "^1.10.0",
48+
"deepmerge": "^2.2.1",
49+
"element-resize-detector": "^1.2.0",
50+
"js-calendar": "^1.2.3",
51+
"lodash.throttle": "^4.1.1",
52+
"popper.js": "^1.14.6",
53+
"tinycolor2": "^1.4.1",
54+
"v-click-outside-x": "^3.5.6"
55+
},
56+
"peerDependencies": {
57+
"vue": "^2.5.2"
58+
},
59+
"devDependencies": {
60+
"autoprefixer-loader": "^3.2.0",
61+
"babel-cli": "^6.26.0",
62+
"babel-core": "^6.26.0",
63+
"babel-helper-vue-jsx-merge-props": "^2.0.3",
64+
"babel-loader": "^7.1.5",
65+
"babel-plugin-dynamic-import-node": "^1.2.0",
66+
"babel-plugin-syntax-jsx": "^6.18.0",
67+
"babel-plugin-transform-class-properties": "^6.24.1",
68+
"babel-plugin-transform-es5-property-mutators": "^6.24.1",
69+
"babel-plugin-transform-object-rest-spread": "^6.26.0",
70+
"babel-plugin-transform-runtime": "^6.23.0",
71+
"babel-plugin-transform-vue-jsx": "^3.7.0",
72+
"babel-preset-env": "^1.6.1",
73+
"babel-preset-stage-3": "^6.24.1",
74+
"babel-runtime": "^6.26.0",
75+
"chai": "^4.2.0",
76+
"compression-webpack-plugin": "^1.1.12",
77+
"copy-webpack-plugin": "^4.6.0",
78+
"cross-env": "^5.2.0",
79+
"css-loader": "^0.28.10",
80+
"eslint": "^3.19.0",
81+
"eslint-plugin-vue": "^2.1.0",
82+
"extract-text-webpack-plugin": "^2.1.2",
83+
"file-loader": "^1.1.11",
84+
"friendly-errors-webpack-plugin": "^1.6.1",
85+
"gulp": "^3.9.1",
86+
"gulp-autoprefixer": "^5.0.0",
87+
"gulp-clean-css": "^3.10.0",
88+
"gulp-less": "^4.0.1",
89+
"gulp-rename": "^1.4.0",
90+
"html-loader": "^0.5.5",
91+
"html-webpack-plugin": "^3.0.6",
92+
"karma": "^2.0.5",
93+
"karma-chrome-launcher": "^2.2.0",
94+
"karma-coverage": "^1.1.1",
95+
"karma-mocha": "^1.3.0",
96+
"karma-sinon-chai": "^1.3.3",
97+
"karma-sourcemap-loader": "^0.3.7",
98+
"karma-spec-reporter": "^0.0.32",
99+
"karma-webpack": "^2.0.13",
100+
"less": "^2.7.3",
101+
"less-loader": "^4.0.6",
102+
"lolex": "^2.7.5",
103+
"mocha": "^5.0.4",
104+
"sinon": "^4.4.2",
105+
"sinon-chai": "^3.3.0",
106+
"style-loader": "^0.20.2",
107+
"tslint": "^5.14.0",
108+
"uglifyjs-webpack-plugin": "^1.3.0",
109+
"url-loader": "^1.1.2",
110+
"vue": "^2.5.17",
111+
"vue-hot-reload-api": "^2.3.1",
112+
"vue-html-loader": "^1.2.4",
113+
"vue-loader": "^14.2.1",
114+
"vue-router": "^3.0.2",
115+
"vue-style-loader": "^4.1.2",
116+
"vue-template-compiler": "^2.5.17",
117+
"webpack": "^3.11.0",
118+
"webpack-dev-server": "^2.11.3",
119+
"webpack-merge": "^3.0.0"
120+
},
121+
"engines": {
122+
"node": ">=8.9.1",
123+
"npm": ">=5.5.1",
124+
"yarn": ">=1.3.2"
125+
},
126+
"browserslist": [
127+
"last 3 Chrome versions",
128+
"last 3 Firefox versions",
129+
"Safari >= 10",
130+
"Explorer >= 11",
131+
"Edge >= 12",
132+
"iOS >= 10",
133+
"Android >= 6"
134+
]
133135
}

tsconfig.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"compilerOptions": {
3+
"target": "esnext",
4+
"module": "esnext",
5+
"strict": true,
6+
"jsx": "preserve",
7+
"importHelpers": true,
8+
"moduleResolution": "node",
9+
"experimentalDecorators": true,
10+
"esModuleInterop": true,
11+
"allowSyntheticDefaultImports": true,
12+
"sourceMap": true,
13+
"baseUrl": ".",
14+
"types": ["node"],
15+
"paths": {
16+
"@/*": ["src/*"]
17+
},
18+
"lib": ["esnext", "dom", "dom.iterable", "scripthost"]
19+
},
20+
"include": [
21+
"types/*.ts",
22+
],
23+
"exclude": ["node_modules"]
24+
}

0 commit comments

Comments
 (0)