@rollipop/devtools-kit 0.0.0-stage → 1.0.0-alpha.30

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/dist/node.d.ts ADDED
@@ -0,0 +1,34 @@
1
+ import { DevframeViewIframe } from "@devframes/hub/types";
2
+ import { DevframeDefinition } from "devframe/types";
3
+ import { DevToolsPluginOptions, Plugin, RollipopDevToolsNodeContext } from "rollipop";
4
+ //#region src/node.d.ts
5
+ export interface CreatePluginFromDevframeOptions {
6
+ /**
7
+ * Rollipop plugin name override.
8
+ *
9
+ * Defaults to `devframe:${devframe.id}`.
10
+ */
11
+ name?: string;
12
+ /**
13
+ * Mount path override.
14
+ *
15
+ * Defaults to `devframe.basePath` or `/__${devframe.id}/`.
16
+ */
17
+ base?: string;
18
+ /**
19
+ * Overrides for the auto-synthesized iframe dock entry.
20
+ */
21
+ dock?: Partial<Omit<DevframeViewIframe, 'id' | 'type' | 'url'>>;
22
+ /**
23
+ * Capability flags forwarded to the Rollipop plugin's `devtools` slot.
24
+ *
25
+ * Defaults to `devframe.capabilities`.
26
+ */
27
+ capabilities?: DevToolsPluginOptions['capabilities'];
28
+ /**
29
+ * Additional Rollipop-only setup that runs after the devframe is installed.
30
+ */
31
+ setup?: (context: RollipopDevToolsNodeContext) => void | Promise<void>;
32
+ }
33
+ export declare function createPluginFromDevframe(devframe: DevframeDefinition, options?: CreatePluginFromDevframeOptions): Plugin;
34
+ //#endregion
package/dist/node.js ADDED
@@ -0,0 +1,19 @@
1
+ //#region src/node.ts
2
+ function createPluginFromDevframe(devframe, options = {}) {
3
+ const { name = `devframe:${devframe.id}`, capabilities = devframe.capabilities, base, dock } = options;
4
+ return {
5
+ name,
6
+ devtools: {
7
+ capabilities,
8
+ async setup(context) {
9
+ await context.install(devframe, {
10
+ base,
11
+ dock
12
+ });
13
+ await options.setup?.(context);
14
+ }
15
+ }
16
+ };
17
+ }
18
+ //#endregion
19
+ export { createPluginFromDevframe };
package/package.json CHANGED
@@ -1,6 +1,49 @@
1
1
  {
2
2
  "name": "@rollipop/devtools-kit",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "1.0.0-alpha.30",
4
+ "homepage": "https://github.com/rollipop-dev/rollipop#readme",
5
+ "bugs": {
6
+ "url": "https://github.com/rollipop-dev/rollipop/issues"
7
+ },
8
+ "license": "MIT",
9
+ "author": "leegeunhyeok <dev.ghlee@gmail.com> (https://github.com/leegeunhyeok)",
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git+https://github.com/rollipop-dev/rollipop.git",
13
+ "directory": "packages/devtools-kit"
14
+ },
15
+ "files": [
16
+ "dist"
17
+ ],
18
+ "type": "module",
19
+ "exports": {
20
+ "./node": {
21
+ "types": "./dist/node.d.ts",
22
+ "default": "./dist/node.js"
23
+ },
24
+ "./package.json": "./package.json"
25
+ },
26
+ "scripts": {
27
+ "prepack": "yarn build",
28
+ "typecheck": "tsc --noEmit",
29
+ "test": "vp test --run",
30
+ "build": "vp pack"
31
+ },
32
+ "dependencies": {
33
+ "@devframes/hub": "1.0.0",
34
+ "devframe": "1.0.0"
35
+ },
36
+ "devDependencies": {
37
+ "@vitest/coverage-v8": "4.1.11",
38
+ "rollipop": "1.0.0-alpha.30",
39
+ "typescript": "7.0.2",
40
+ "vite-plus": "0.3.3",
41
+ "vitest": "4.1.11"
42
+ },
43
+ "peerDependencies": {
44
+ "rollipop": "1.0.0-alpha.30"
45
+ },
46
+ "installConfig": {
47
+ "hoistingLimits": "none"
48
+ }
6
49
  }
package/README.md DELETED
@@ -1,3 +0,0 @@
1
- # Temporary Holding Version
2
-
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.