morghulis 2.0.24 → 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 CHANGED
@@ -1 +1,33 @@
1
- # Vue Component npm Example
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,33 +1,37 @@
1
1
  {
2
2
  "name": "morghulis",
3
- "version": "2.0.24",
4
- "type": "module",
3
+ "version": "2.0.31",
4
+ "main": "./dist/lumber.cjs.js",
5
+ "module": "./dist/lumber.es.js",
5
6
  "files": [
6
- "dist"
7
+ "dist/"
7
8
  ],
8
- "main": "./dist/morghulis.umd.js",
9
- "module": "./dist/morghulis.es.js",
10
- "types": "./dist/types/index.d.ts",
11
9
  "exports": {
12
10
  ".": {
13
- "import": "./dist/morghulis.es.js",
14
- "require": "./dist/morghulis.umd.js",
15
- "types": "./dist/types/index.d.ts"
16
- }
11
+ "import": "./dist/plugin.cjs.js",
12
+ "require": "./dist/plugin.es.js"
13
+ },
14
+ "./style.css": "./dist/style.css"
17
15
  },
16
+ "types": "./dist/MyPlugin.d.ts",
18
17
  "scripts": {
19
18
  "dev": "vite",
20
- "build": "vite build && vue-tsc --emitDeclarationOnly",
19
+ "build": "vue-tsc && vite build",
21
20
  "preview": "vite preview"
22
21
  },
23
22
  "dependencies": {
23
+ "rollup-plugin-typescript2": "^0.36.0",
24
24
  "vue": "^3.5.13"
25
25
  },
26
26
  "devDependencies": {
27
+ "@tsconfig/node22": "^22.0.1",
27
28
  "@types/node": "^22.14.0",
28
29
  "@vitejs/plugin-vue": "^5.2.3",
30
+ "@vue/tsconfig": "^0.7.0",
31
+ "npm-run-all2": "^7.0.2",
29
32
  "typescript": "~5.8.0",
30
33
  "vite": "^6.2.4",
34
+ "vite-plugin-vue-devtools": "^7.7.2",
31
35
  "vue-tsc": "^2.2.8"
32
36
  }
33
37
  }
@@ -1,27 +0,0 @@
1
- import { defineComponent as l, ref as c, createElementBlock as r, openBlock as a, Fragment as i, createElementVNode as o, toDisplayString as s } from "vue";
2
- const m = { class: "my" }, p = { class: "card" }, u = /* @__PURE__ */ l({
3
- __name: "MyComp",
4
- props: {
5
- msg: { type: String }
6
- },
7
- setup(t) {
8
- const e = c(0);
9
- return (d, n) => (a(), r(i, null, [
10
- o("h1", m, s(t.msg), 1),
11
- o("div", p, [
12
- o("button", {
13
- type: "button",
14
- onClick: n[0] || (n[0] = (g) => e.value++)
15
- }, "count is " + s(e.value), 1)
16
- ])
17
- ], 64));
18
- }
19
- }), y = {
20
- install(t) {
21
- console.log("[Morghulis] install called"), t.component("MyComp", u);
22
- }
23
- };
24
- export {
25
- u as MyComp,
26
- y as default
27
- };
@@ -1 +0,0 @@
1
- (function(t,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(t.Morghulis={},t.Vue))})(this,function(t,e){"use strict";const l={class:"my"},c={class:"card"},o=e.defineComponent({__name:"MyComp",props:{msg:{type:String}},setup(n){const s=e.ref(0);return(d,i)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("h1",l,e.toDisplayString(n.msg),1),e.createElementVNode("div",c,[e.createElementVNode("button",{type:"button",onClick:i[0]||(i[0]=u=>s.value++)},"count is "+e.toDisplayString(s.value),1)])],64))}}),r={install(n){console.log("[Morghulis] install called"),n.component("MyComp",o)}};t.MyComp=o,t.default=r,Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
@@ -1,10 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
- msg: {
3
- type: StringConstructor;
4
- };
5
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
6
- msg: {
7
- type: StringConstructor;
8
- };
9
- }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
10
- export default _default;
@@ -1,7 +0,0 @@
1
- import MyComp from './MyComp.vue';
2
- import { App } from "vue";
3
- declare const Morghulis: {
4
- install(app: App): void;
5
- };
6
- export { MyComp };
7
- export default Morghulis;