@designos/compiler-vue 0.0.0-stage → 0.1.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.
- package/dist/index.d.ts +15 -0
- package/dist/index.js +19 -0
- package/dist/index.js.map +1 -0
- package/package.json +37 -3
- package/README.md +0 -3
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as _builder_io_mitosis from '@builder.io/mitosis';
|
|
2
|
+
import * as _designos_compiler_core from '@designos/compiler-core';
|
|
3
|
+
import { TargetRegistry, GenerationContext, GenerationResult } from '@designos/compiler-core';
|
|
4
|
+
export { ComponentIR, compileComponent } from '@designos/compiler-core';
|
|
5
|
+
|
|
6
|
+
declare function generateVue(context: GenerationContext): GenerationResult;
|
|
7
|
+
declare const vueTarget: {
|
|
8
|
+
generateProjectRegistry?: ((entries: _designos_compiler_core.CompilerProjectRegistryEntry[]) => _designos_compiler_core.GeneratedFile) | undefined;
|
|
9
|
+
name: "react" | "vue" | "angular" | "html" | "svelte" | "solid" | "alpine" | "builder" | "customElement" | "liquid" | "lit" | "marko" | "mitosis" | "preact" | "qwik" | "reactNative" | "rsc" | "stencil" | "swift" | "taro" | "template" | "webcomponent";
|
|
10
|
+
generate: (context: GenerationContext) => GenerationResult;
|
|
11
|
+
generateMitosis: (component: _builder_io_mitosis.MitosisComponent, options: Record<string, unknown>) => GenerationResult;
|
|
12
|
+
};
|
|
13
|
+
declare function createVueCompiler(): TargetRegistry;
|
|
14
|
+
|
|
15
|
+
export { createVueCompiler, generateVue, vueTarget };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// src/index.ts
|
|
2
|
+
import { createMitosisTarget, TargetRegistry, generateWithMitosis } from "@designos/compiler-core";
|
|
3
|
+
import { compileComponent } from "@designos/compiler-core";
|
|
4
|
+
function generateVue(context) {
|
|
5
|
+
return generateWithMitosis({ ...context, target: "vue" });
|
|
6
|
+
}
|
|
7
|
+
var vueTarget = createMitosisTarget("vue");
|
|
8
|
+
function createVueCompiler() {
|
|
9
|
+
const registry = new TargetRegistry();
|
|
10
|
+
registry.register(vueTarget);
|
|
11
|
+
return registry;
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
compileComponent,
|
|
15
|
+
createVueCompiler,
|
|
16
|
+
generateVue,
|
|
17
|
+
vueTarget
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["import { createMitosisTarget, TargetRegistry, generateWithMitosis } from \"@designos/compiler-core\";\nimport type { GenerationContext, GenerationResult } from \"@designos/compiler-core\";\n\nexport function generateVue(context: GenerationContext): GenerationResult {\n return generateWithMitosis({ ...context, target: \"vue\" });\n}\nexport const vueTarget = createMitosisTarget(\"vue\");\nexport function createVueCompiler(): TargetRegistry {\n const registry = new TargetRegistry();\n registry.register(vueTarget);\n return registry;\n}\nexport { compileComponent } from \"@designos/compiler-core\";\nexport type { ComponentIR } from \"@designos/compiler-core\";\n"],"mappings":";AAAA,SAAS,qBAAqB,gBAAgB,2BAA2B;AAYzE,SAAS,wBAAwB;AAT1B,SAAS,YAAY,SAA8C;AACxE,SAAO,oBAAoB,EAAE,GAAG,SAAS,QAAQ,MAAM,CAAC;AAC1D;AACO,IAAM,YAAY,oBAAoB,KAAK;AAC3C,SAAS,oBAAoC;AAClD,QAAM,WAAW,IAAI,eAAe;AACpC,WAAS,SAAS,SAAS;AAC3B,SAAO;AACT;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,40 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@designos/compiler-vue",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"private": false,
|
|
5
|
+
"type": "module",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": {
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"import": "./dist/index.js"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"dependencies": {
|
|
13
|
+
"@designos/compiler-core": "0.1.0",
|
|
14
|
+
"@designos/core": "0.1.0"
|
|
15
|
+
},
|
|
16
|
+
"devDependencies": {
|
|
17
|
+
"typescript": "^5.9.2",
|
|
18
|
+
"tsup": "^8.5.0",
|
|
19
|
+
"vitest": "^3.2.4"
|
|
20
|
+
},
|
|
21
|
+
"files": [
|
|
22
|
+
"dist",
|
|
23
|
+
"README.md"
|
|
24
|
+
],
|
|
25
|
+
"main": "./dist/index.js",
|
|
26
|
+
"types": "./dist/index.d.ts",
|
|
27
|
+
"publishConfig": {
|
|
28
|
+
"access": "public"
|
|
29
|
+
},
|
|
30
|
+
"repository": {
|
|
31
|
+
"type": "git",
|
|
32
|
+
"url": "git+https://github.com/relacloud/design-os.git",
|
|
33
|
+
"directory": "packages/compiler-vue"
|
|
34
|
+
},
|
|
35
|
+
"scripts": {
|
|
36
|
+
"typecheck": "tsc --noEmit",
|
|
37
|
+
"build": "tsup",
|
|
38
|
+
"test": "vitest"
|
|
39
|
+
}
|
|
6
40
|
}
|
package/README.md
DELETED