storybook-vue3-rsbuild 0.0.1 → 0.0.2
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/LICENSE +1 -1
- package/README.md +3 -1
- package/package.json +15 -4
- package/preset.js +1 -1
- package/dist/chunk-3EIOPNXP.mjs +0 -57
- package/dist/chunk-4WQDGMXE.mjs +0 -57
- package/dist/chunk-5UCYT2FA.mjs +0 -66
- package/dist/chunk-5ZQEOG4N.mjs +0 -50
- package/dist/chunk-A5GQNXZ2.mjs +0 -58
- package/dist/chunk-BWOSHFK4.mjs +0 -44
- package/dist/chunk-C26GBKJG.mjs +0 -72
- package/dist/chunk-CDFKRFI5.mjs +0 -52
- package/dist/chunk-CIPUH5EH.mjs +0 -56
- package/dist/chunk-D6UQSHGU.mjs +0 -56
- package/dist/chunk-DOD3HV6P.mjs +0 -71
- package/dist/chunk-I3W2BDYZ.mjs +0 -71
- package/dist/chunk-IDUKMUEB.mjs +0 -52
- package/dist/chunk-IH3TXYTU.mjs +0 -72
- package/dist/chunk-JZRX3EGM.mjs +0 -74
- package/dist/chunk-KLVY43ZM.mjs +0 -44
- package/dist/chunk-LBVFB7EC.mjs +0 -47
- package/dist/chunk-MPIQ664X.mjs +0 -71
- package/dist/chunk-MY2IYEFI.mjs +0 -58
- package/dist/chunk-O6KUUZA6.mjs +0 -53
- package/dist/chunk-PEWUKCXX.mjs +0 -58
- package/dist/chunk-PFDX7D2C.mjs +0 -55
- package/dist/chunk-PHFFO7A6.mjs +0 -71
- package/dist/chunk-PJZVTTEB.mjs +0 -56
- package/dist/chunk-Q2SNQVVN.mjs +0 -57
- package/dist/chunk-R57CWIPS.mjs +0 -51
- package/dist/chunk-RNDU3TK7.mjs +0 -72
- package/dist/chunk-RTN725VB.mjs +0 -52
- package/dist/chunk-SKTSBEAV.mjs +0 -66
- package/dist/chunk-TCBK3RAA.mjs +0 -38
- package/dist/chunk-TFF6KQ6T.mjs +0 -73
- package/dist/chunk-U3HZHJ2X.mjs +0 -72
- package/dist/chunk-U42XVPSO.mjs +0 -53
- package/dist/chunk-U4E5MR76.mjs +0 -44
- package/dist/chunk-UQ3S245P.mjs +0 -56
- package/dist/chunk-V5RZT43H.mjs +0 -72
- package/dist/chunk-VGEIG6F4.mjs +0 -30
- package/dist/chunk-WAXGOBY2.mjs +0 -0
- package/dist/chunk-WBQAMGXK.mjs +0 -0
- package/dist/chunk-WKGR473C.mjs +0 -67
- package/dist/chunk-X2B4PYBX.mjs +0 -44
- package/dist/chunk-YAXBE2N5.mjs +0 -57
- package/dist/chunk-ZSNEJSBE.mjs +0 -56
- package/dist/chunk-ZXIRSC62.mjs +0 -47
- package/dist/framework-preset-vue3-docs.d.mts +0 -7
- package/dist/framework-preset-vue3-docs.d.ts +0 -7
- package/dist/framework-preset-vue3-docs.js +0 -72
- package/dist/framework-preset-vue3-docs.mjs +0 -6
- package/dist/index.d.mts +0 -3
- package/dist/plugins/vue-component-meta.js +0 -1
- package/dist/plugins/vue-component-meta.mjs +0 -0
- package/dist/plugins/vue-docgen.js +0 -1
- package/dist/plugins/vue-docgen.mjs +0 -0
- package/dist/preset.d.mts +0 -9
- package/dist/preset.mjs +0 -27
- package/dist/types.d.mts +0 -26
- package/dist/types.d.ts +0 -26
- package/dist/types.js +0 -18
- package/dist/types.mjs +0 -1
package/dist/preset.mjs
DELETED
@@ -1,27 +0,0 @@
|
|
1
|
-
import {
|
2
|
-
__require,
|
3
|
-
rsbuildFinal
|
4
|
-
} from "./chunk-YAXBE2N5.mjs";
|
5
|
-
|
6
|
-
// src/preset.ts
|
7
|
-
import { dirname, join } from "path";
|
8
|
-
var getAbsolutePath = (input) => dirname(__require.resolve(join(input, "package.json")));
|
9
|
-
var core = async (config, options) => {
|
10
|
-
const framework = await options.presets.apply("framework");
|
11
|
-
return {
|
12
|
-
builder: {
|
13
|
-
name: getAbsolutePath("@storybook/builder-rsbuild"),
|
14
|
-
options: typeof framework === "string" ? {} : framework.options.builder || {}
|
15
|
-
},
|
16
|
-
renderer: getAbsolutePath("@storybook/vue3")
|
17
|
-
};
|
18
|
-
};
|
19
|
-
var typescript = async (config) => ({
|
20
|
-
...config,
|
21
|
-
skipCompiler: true
|
22
|
-
});
|
23
|
-
export {
|
24
|
-
core,
|
25
|
-
rsbuildFinal,
|
26
|
-
typescript
|
27
|
-
};
|
package/dist/types.d.mts
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
import { StorybookConfig as StorybookConfig$1 } from '@storybook/types';
|
2
|
-
import { BuilderOptions, StorybookConfigRsbuild } from '@storybook/builder-rsbuild';
|
3
|
-
|
4
|
-
type FrameworkName = '@storybook/vue3-rsbuild';
|
5
|
-
type BuilderName = '@storybook/builder-rsbuild';
|
6
|
-
type FrameworkOptions = {
|
7
|
-
builder?: BuilderOptions;
|
8
|
-
};
|
9
|
-
type StorybookConfigFramework = {
|
10
|
-
framework: FrameworkName | {
|
11
|
-
name: FrameworkName;
|
12
|
-
options: FrameworkOptions;
|
13
|
-
};
|
14
|
-
core?: StorybookConfig$1['core'] & {
|
15
|
-
builder?: BuilderName | {
|
16
|
-
name: BuilderName;
|
17
|
-
options: BuilderOptions;
|
18
|
-
};
|
19
|
-
};
|
20
|
-
};
|
21
|
-
/**
|
22
|
-
* The interface for Storybook configuration in `main.ts` files.
|
23
|
-
*/
|
24
|
-
type StorybookConfig = Omit<StorybookConfig$1, keyof StorybookConfigRsbuild | keyof StorybookConfigFramework> & StorybookConfigRsbuild & StorybookConfigFramework;
|
25
|
-
|
26
|
-
export type { FrameworkOptions, StorybookConfig };
|
package/dist/types.d.ts
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
import { StorybookConfig as StorybookConfig$1 } from '@storybook/types';
|
2
|
-
import { BuilderOptions, StorybookConfigRsbuild } from '@storybook/builder-rsbuild';
|
3
|
-
|
4
|
-
type FrameworkName = '@storybook/vue3-rsbuild';
|
5
|
-
type BuilderName = '@storybook/builder-rsbuild';
|
6
|
-
type FrameworkOptions = {
|
7
|
-
builder?: BuilderOptions;
|
8
|
-
};
|
9
|
-
type StorybookConfigFramework = {
|
10
|
-
framework: FrameworkName | {
|
11
|
-
name: FrameworkName;
|
12
|
-
options: FrameworkOptions;
|
13
|
-
};
|
14
|
-
core?: StorybookConfig$1['core'] & {
|
15
|
-
builder?: BuilderName | {
|
16
|
-
name: BuilderName;
|
17
|
-
options: BuilderOptions;
|
18
|
-
};
|
19
|
-
};
|
20
|
-
};
|
21
|
-
/**
|
22
|
-
* The interface for Storybook configuration in `main.ts` files.
|
23
|
-
*/
|
24
|
-
type StorybookConfig = Omit<StorybookConfig$1, keyof StorybookConfigRsbuild | keyof StorybookConfigFramework> & StorybookConfigRsbuild & StorybookConfigFramework;
|
25
|
-
|
26
|
-
export type { FrameworkOptions, StorybookConfig };
|
package/dist/types.js
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __defProp = Object.defineProperty;
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
6
|
-
var __copyProps = (to, from, except, desc) => {
|
7
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
8
|
-
for (let key of __getOwnPropNames(from))
|
9
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
10
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
11
|
-
}
|
12
|
-
return to;
|
13
|
-
};
|
14
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
15
|
-
|
16
|
-
// src/types.ts
|
17
|
-
var types_exports = {};
|
18
|
-
module.exports = __toCommonJS(types_exports);
|
package/dist/types.mjs
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
import "./chunk-WBQAMGXK.mjs";
|