@aerogel/storybook 0.0.0
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,11 @@
|
|
|
1
|
+
import { bootstrapApplication as p } from "@aerogel/core";
|
|
2
|
+
import { setup as a } from "@storybook/vue3-vite";
|
|
3
|
+
function s(t = {}) {
|
|
4
|
+
a(async (o) => {
|
|
5
|
+
await p(o, t);
|
|
6
|
+
});
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
s as setup
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=aerogel-storybook.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aerogel-storybook.js","sources":["../src/index.ts"],"sourcesContent":["import { bootstrapApplication } from '@aerogel/core';\nimport { setup as setupStorybook } from '@storybook/vue3-vite';\nimport type { AerogelOptions } from '@aerogel/core';\n\nexport function setup(options: AerogelOptions = {}): void {\n setupStorybook(async (app) => {\n await bootstrapApplication(app, options);\n });\n}\n"],"names":["setup","options","setupStorybook","app","bootstrapApplication"],"mappings":";;AAIO,SAASA,EAAMC,IAA0B,IAAU;AACtDC,EAAAA,EAAe,OAAOC,MAAQ;AAC1B,UAAMC,EAAqBD,GAAKF,CAAO;AAAA,EAC3C,CAAC;AACL;"}
|
package/package.json
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@aerogel/storybook",
|
|
3
|
+
"version": "0.0.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"sideEffects": false,
|
|
6
|
+
"exports": {
|
|
7
|
+
".": {
|
|
8
|
+
"types": "./dist/aerogel-storybook.d.ts",
|
|
9
|
+
"default": "./dist/aerogel-storybook.js"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"files": [
|
|
13
|
+
"src",
|
|
14
|
+
"dist"
|
|
15
|
+
],
|
|
16
|
+
"license": "MIT",
|
|
17
|
+
"author": "Noel De Martin",
|
|
18
|
+
"repository": "github:NoelDeMartin/aerogel",
|
|
19
|
+
"scripts": {
|
|
20
|
+
"build": "vite build",
|
|
21
|
+
"lint": "noeldemartin-lint src",
|
|
22
|
+
"verify": "noeldemartin-verify"
|
|
23
|
+
},
|
|
24
|
+
"peerDependencies": {
|
|
25
|
+
"@aerogel/core": "*",
|
|
26
|
+
"@storybook/vue3-vite": "^10.0.0"
|
|
27
|
+
},
|
|
28
|
+
"devDependencies": {
|
|
29
|
+
"@aerogel/core": "workspace:*",
|
|
30
|
+
"@arethetypeswrong/cli": "catalog:",
|
|
31
|
+
"@noeldemartin/scripts": "catalog:",
|
|
32
|
+
"@storybook/vue3-vite": "^10.5.4",
|
|
33
|
+
"@types/node": "catalog:",
|
|
34
|
+
"eslint": "catalog:",
|
|
35
|
+
"prettier-eslint-cli": "^8.0.1",
|
|
36
|
+
"publint": "catalog:"
|
|
37
|
+
},
|
|
38
|
+
"eslintConfig": {
|
|
39
|
+
"extends": [
|
|
40
|
+
"@noeldemartin/eslint-config-typescript"
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
"prettier": {
|
|
44
|
+
"printWidth": 120
|
|
45
|
+
}
|
|
46
|
+
}
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { bootstrapApplication } from '@aerogel/core';
|
|
2
|
+
import { setup as setupStorybook } from '@storybook/vue3-vite';
|
|
3
|
+
import type { AerogelOptions } from '@aerogel/core';
|
|
4
|
+
|
|
5
|
+
export function setup(options: AerogelOptions = {}): void {
|
|
6
|
+
setupStorybook(async (app) => {
|
|
7
|
+
await bootstrapApplication(app, options);
|
|
8
|
+
});
|
|
9
|
+
}
|