@vue3-oop/preset-vue 2.4.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.
package/README.md ADDED
@@ -0,0 +1,61 @@
1
+ # @dumijs/preset-vue
2
+
3
+ dumi Vue3 tech stack support
4
+
5
+ ## Features
6
+
7
+ - [x] Supports both Single File Component and JSX/TSX
8
+ - [x] Inline demo and external demo support
9
+ - [x] Support CodeSandbox and StackBlitz preview
10
+ - [x] Webpack processing
11
+ - [x] API Table support
12
+ - [x] Support live demo
13
+
14
+ ## Install
15
+
16
+ ```
17
+ npm i @dumijs/preset-vue
18
+ ```
19
+
20
+ ## Options
21
+
22
+ ### checkOptions
23
+
24
+ Vue component metadata parsing options
25
+
26
+ For example, the following configuration can make the `InternalType` type skip parsing
27
+
28
+ ```js
29
+ vue: {
30
+ checkerOptions: {
31
+ ignore: ['InternalType']
32
+ },
33
+ },
34
+ ```
35
+
36
+ For details, please refer to :point_right: [`MetaCheckerOptions`](../dumi-vue-meta/README.md#metacheckeroptions)
37
+
38
+ ### tsconfigPath
39
+
40
+ The tsconfig used by the checker, the default value is `<project-root>/tsconfig.json`
41
+
42
+ ## directory
43
+
44
+ By default, this option is the repository.directory option in package.json.
45
+
46
+ Mainly used to change the root directory of checker, must be a relative directory.
47
+
48
+ By default, if your project is in a Monorepo, the root directory of the parser is the Monorepo project directory
49
+
50
+ ### compiler
51
+
52
+ The live demo requires a browser-side compiler, so @babel/standalone needs to be loaded. We provide the `babelStandaloneCDN` option to change its loading address. The default url is
53
+ `https://cdn.bootcdn.net/ajax/libs/babel-standalone/7.22.17/babel.min.js`
54
+
55
+ ```js
56
+ vue: {
57
+ compiler: {
58
+ babelStandaloneCDN: 'https://cdn.bootcdn.net/ajax/libs/babel-standalone/7.22.17/babel.min.js'
59
+ },
60
+ },
61
+ ```