morghulis 2.0.30 → 2.0.31

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 ADDED
@@ -0,0 +1,33 @@
1
+ # mfk
2
+
3
+ This template should help get you started developing with Vue 3 in Vite.
4
+
5
+ ## Recommended IDE Setup
6
+
7
+ [VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur).
8
+
9
+ ## Type Support for `.vue` Imports in TS
10
+
11
+ TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) to make the TypeScript language service aware of `.vue` types.
12
+
13
+ ## Customize configuration
14
+
15
+ See [Vite Configuration Reference](https://vite.dev/config/).
16
+
17
+ ## Project Setup
18
+
19
+ ```sh
20
+ npm install
21
+ ```
22
+
23
+ ### Compile and Hot-Reload for Development
24
+
25
+ ```sh
26
+ npm run dev
27
+ ```
28
+
29
+ ### Type-Check, Compile and Minify for Production
30
+
31
+ ```sh
32
+ npm run build
33
+ ```
@@ -0,0 +1,7 @@
1
+ import MyButton from "./components/MyButton.vue";
2
+ declare const _default: {
3
+ install: (app: any) => void;
4
+ };
5
+ export default _default;
6
+ export { MyButton };
7
+ //# sourceMappingURL=MyPlugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MyPlugin.d.ts","sourceRoot":"","sources":["../src/MyPlugin.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,2BAA2B,CAAC;;;;AACjD,wBAIE;AACF,OAAO,EAAE,QAAQ,EAAE,CAAC"}
@@ -0,0 +1,5 @@
1
+ export * from "/Users/ypl/workspace/vm/mfk/src/components/MyButton.vue?vue&type=script&lang.ts";
2
+ import "/Users/ypl/workspace/vm/mfk/src/components/MyButton.vue?vue&type=style&index=0&lang.css";
3
+ declare const _default: any;
4
+ export default _default;
5
+ //# sourceMappingURL=MyButton.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MyButton.vue.d.ts","sourceRoot":"","sources":["../../src/components/MyButton.vue"],"names":[],"mappings":"AACA,cAAc,iFAAiF,CAAC;AAMhG,OAAO,yFAAyF,CAAC;;AAEjG,wBAAiF"}
Binary file
@@ -0,0 +1 @@
1
+ .my-button{border:2px solid red;border-radius:2px}
@@ -0,0 +1,22 @@
1
+ import { defineComponent as s, createElementBlock as r, openBlock as a } from "vue";
2
+ const u = s({
3
+ name: "my-button"
4
+ }), l = (t, n) => {
5
+ const o = t.__vccOpts || t;
6
+ for (const [e, c] of n)
7
+ o[e] = c;
8
+ return o;
9
+ };
10
+ var p = { class: "my-button" };
11
+ function _(t, n, o, e, c, f) {
12
+ return a(), r("button", p, "My Awesome Button");
13
+ }
14
+ const m = /* @__PURE__ */ l(u, [["render", _]]), d = {
15
+ install: function(t) {
16
+ t.component("b-upload-files-modal", m);
17
+ }
18
+ };
19
+ export {
20
+ m as MyButton,
21
+ d as default
22
+ };
@@ -0,0 +1 @@
1
+ (function(e,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e.ViewerPlugin={},e.vue))})(this,function(e,t){"use strict";const f=t.defineComponent({name:"my-button"}),r=(n,i)=>{const o=n.__vccOpts||n;for(const[s,c]of i)o[s]=c;return o};var d={class:"my-button"};function l(n,i,o,s,c,a){return t.openBlock(),t.createElementBlock("button",d,"My Awesome Button")}const u=r(f,[["render",l]]),p={install:function(n){n.component("b-upload-files-modal",u)}};e.MyButton=u,e.default=p,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
package/package.json CHANGED
@@ -1,28 +1,37 @@
1
1
  {
2
2
  "name": "morghulis",
3
- "version": "2.0.30",
4
- "main": "./dist/morghulis.umd.js",
5
- "module": "./dist/morghulis.es.js",
6
- "types": "./dist/index.d.ts",
3
+ "version": "2.0.31",
4
+ "main": "./dist/lumber.cjs.js",
5
+ "module": "./dist/lumber.es.js",
6
+ "files": [
7
+ "dist/"
8
+ ],
7
9
  "exports": {
8
10
  ".": {
9
- "import": "./dist/morghulis.es.js",
10
- "require": "./dist/morghulis.umd.js",
11
- "types": "./dist/index.d.ts"
12
- }
11
+ "import": "./dist/plugin.cjs.js",
12
+ "require": "./dist/plugin.es.js"
13
+ },
14
+ "./style.css": "./dist/style.css"
13
15
  },
14
- "files": ["dist"],
16
+ "types": "./dist/MyPlugin.d.ts",
15
17
  "scripts": {
16
- "build": "vite build && vue-tsc --emitDeclarationOnly"
18
+ "dev": "vite",
19
+ "build": "vue-tsc && vite build",
20
+ "preview": "vite preview"
17
21
  },
18
- "peerDependencies": {
19
- "vue": "^3.0.0"
22
+ "dependencies": {
23
+ "rollup-plugin-typescript2": "^0.36.0",
24
+ "vue": "^3.5.13"
20
25
  },
21
26
  "devDependencies": {
27
+ "@tsconfig/node22": "^22.0.1",
28
+ "@types/node": "^22.14.0",
22
29
  "@vitejs/plugin-vue": "^5.2.3",
23
- "typescript": "^5.0.0",
24
- "vite": "^6.0.0",
25
- "vue": "^3.3.0",
26
- "vue-tsc": "^2.0.0"
30
+ "@vue/tsconfig": "^0.7.0",
31
+ "npm-run-all2": "^7.0.2",
32
+ "typescript": "~5.8.0",
33
+ "vite": "^6.2.4",
34
+ "vite-plugin-vue-devtools": "^7.7.2",
35
+ "vue-tsc": "^2.2.8"
27
36
  }
28
37
  }
@@ -1,5 +0,0 @@
1
- type __VLS_Props = {
2
- msg: string;
3
- };
4
- declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
5
- export default _default;
package/dist/index.d.ts DELETED
@@ -1,7 +0,0 @@
1
- import { App } from 'vue';
2
- import MyComp from './MyComp.vue';
3
- declare const Morghulis: {
4
- install(app: App): void;
5
- };
6
- export default Morghulis;
7
- export { MyComp };
@@ -1,24 +0,0 @@
1
- import { defineComponent as r, ref as m, createElementBlock as p, openBlock as i, createElementVNode as l, toDisplayString as t } from "vue";
2
- const a = /* @__PURE__ */ r({
3
- __name: "MyComp",
4
- props: {
5
- msg: {}
6
- },
7
- setup(e) {
8
- const o = m(0);
9
- return (s, n) => (i(), p("div", null, [
10
- l("h2", null, t(s.msg), 1),
11
- l("button", {
12
- onClick: n[0] || (n[0] = (c) => o.value++)
13
- }, "Clicked " + t(o.value) + " times", 1)
14
- ]));
15
- }
16
- }), d = {
17
- install(e) {
18
- console.log("[Morghulis] install called"), e.component("MyComp", a);
19
- }
20
- };
21
- export {
22
- a as MyComp,
23
- d as default
24
- };
@@ -1 +0,0 @@
1
- (function(n,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(n=typeof globalThis<"u"?globalThis:n||self,e(n.Morghulis={},n.Vue))})(this,function(n,e){"use strict";const t=e.defineComponent({__name:"MyComp",props:{msg:{}},setup(o){const l=e.ref(0);return(u,i)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("h2",null,e.toDisplayString(u.msg),1),e.createElementVNode("button",{onClick:i[0]||(i[0]=r=>l.value++)},"Clicked "+e.toDisplayString(l.value)+" times",1)]))}}),s={install(o){console.log("[Morghulis] install called"),o.component("MyComp",t)}};n.MyComp=t,n.default=s,Object.defineProperties(n,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});