hy-app 0.2.12 → 0.2.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,13 @@
1
+ const path = require('path')
2
+
3
+ module.exports = {
4
+ components: ['./components/hy-button/hy-button.vue'],
5
+ outDir: 'dist/docs',
6
+ apiOptions: {
7
+ jsx: false,
8
+ alias: {
9
+ '@': path.resolve(__dirname, 'src'),
10
+ },
11
+ babelParserPlugins: ['typescript'],
12
+ },
13
+ }
package/package.json CHANGED
@@ -1,22 +1,31 @@
1
1
  {
2
2
  "name": "hy-app",
3
- "version": "0.2.12",
3
+ "version": "0.2.14",
4
4
  "description": "测试组件提示",
5
5
  "main": "./index.ts",
6
6
  "private": false,
7
7
  "scripts": {
8
- "web-types": "vue-docgen-web-types"
8
+ "web-types": "vue-docgen-web-types --configFile web-types.config.js",
9
+ "doc": "npx vue-docgen -c docgen.config.js",
10
+ "gen:web-types": "tsx ./component-helper.ts",
11
+ "docs": "npx ts-node compiler.ts"
9
12
  },
10
13
  "keywords": [
11
14
  "华玥组件库",
12
15
  "ui组件库",
13
16
  "暗黑模式"
14
17
  ],
15
- "web-types": "web-types.json",
18
+ "web-types": "./web-types.json",
16
19
  "author": "gaoxianhua",
17
20
  "license": "MIT",
18
21
  "devDependencies": {
22
+ "@types/node": "^24.0.15",
23
+ "components-helper": "^2.2.0",
24
+ "ts-node": "^10.9.2",
25
+ "tsx": "^4.20.3",
26
+ "typescript": "^5.8.3",
19
27
  "vue-docgen-api": "^4.79.2",
28
+ "vue-docgen-cli": "^4.79.0",
20
29
  "vue-docgen-web-types": "^0.1.8"
21
30
  }
22
31
  }
@@ -1,8 +1,7 @@
1
1
  module.exports = {
2
- components: './components/**/*.vue', // 组件路径
3
- outFile: 'web-types.json',
4
- parserOptions: {
5
- tsconfigPath: './tsconfig.json', // 关联项目的 tsconfig
6
- skipChildren: false, // 不跳过子类型解析
7
- },
2
+ // 1. 告诉扫描器去哪里找组件
3
+ components: './components/**/*.vue',
4
+
5
+ // 2. 输出生成的文件
6
+ outFile: './web-types.json',
8
7
  }