@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 +61 -0
- package/compiled/@vue/babel-plugin-jsx/index.js +33114 -0
- package/compiled/@vue/babel-plugin-jsx/package.json +7 -0
- package/dist/atomParser/index.d.ts +14 -0
- package/dist/atomParser/index.js +115 -0
- package/dist/common.d.ts +3 -0
- package/dist/common.js +57 -0
- package/dist/compiler/browser.d.ts +3 -0
- package/dist/compiler/browser.js +78 -0
- package/dist/compiler/index.d.ts +34 -0
- package/dist/compiler/index.js +208 -0
- package/dist/compiler/node.d.ts +11 -0
- package/dist/compiler/node.js +75 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +59 -0
- package/dist/requireHook.d.ts +2 -0
- package/dist/requireHook.js +67 -0
- package/dist/shared.d.ts +11 -0
- package/dist/shared.js +64 -0
- package/dist/vue/checkVersion.d.ts +2 -0
- package/dist/vue/checkVersion.js +52 -0
- package/dist/vue/index.d.ts +3 -0
- package/dist/vue/index.js +56 -0
- package/dist/vue/techStack/index.d.ts +2 -0
- package/dist/vue/techStack/index.js +95 -0
- package/dist/vue/techStack/jsx.d.ts +2 -0
- package/dist/vue/techStack/jsx.js +81 -0
- package/dist/vue/techStack/sfc.d.ts +2 -0
- package/dist/vue/techStack/sfc.js +80 -0
- package/dist/vue/webpack/config.d.ts +3 -0
- package/dist/vue/webpack/config.js +85 -0
- package/dist/vue/webpack/index.d.ts +2 -0
- package/dist/vue/webpack/index.js +48 -0
- package/lib/compiler.mjs +73 -0
- package/lib/preflight.mjs +5 -0
- package/lib/renderer.mjs +5 -0
- package/lib/runtimePlugin.mjs +60 -0
- package/package.json +58 -0
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
|
+
```
|