vue-global-config
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -534,1 +534,17 @@ # vue-global-config | ||
在 Vue 2 中,只有组件才能触发 hooks,原生元素不行,所以需要通过劫持 emit 来实现同时触发全局 hooks 和实例 hooks | ||
<br> | ||
## Contributing | ||
1. [安装 Deno](https://deno.land/#installation) | ||
2. `npm add @cloydlau/scripts -g` | ||
3. 启动 | ||
- `npm run dev3` | ||
- `npm run dev2.7` | ||
- `npm run dev2.6` | ||
<br> |
{ | ||
"name": "vue-global-config", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"private": false, | ||
@@ -19,2 +19,3 @@ "description": "Configure your Vue 2.6 / 2.7 / 3 components globally.", | ||
".": { | ||
"types": "./dist/index.d.ts", | ||
"require": "./dist/vue-global-config.umd.js", | ||
@@ -30,2 +31,3 @@ "import": "./dist/vue-global-config.mjs", | ||
"jsdelivr": "./dist/vue-global-config.umd.js", | ||
"types": "./dist/index.d.ts", | ||
"files": [ | ||
@@ -36,10 +38,11 @@ "dist", | ||
"scripts": { | ||
"dev": "pnpm switch3 && vite --config ./demo/vue3/vite.config.ts --open", | ||
"dev3": "pnpm switch3 && vite --config ./demo/vue3/vite.config.ts --open", | ||
"dev2.7": "pnpm switch2.7 && vite --config ./demo/vue2.7/vite.config.ts --open", | ||
"dev2": "pnpm switch2 && vite --config ./demo/vue2/vite.config.ts --open", | ||
"dev2.6": "pnpm switch2.6 && vite --config ./demo/vue2.6/vite.config.ts --open", | ||
"switch3": "cl switchVue 3 --vue2deps \"element-ui\" --vue3deps \"element-plus\"", | ||
"switch2.7": "cl switchVue 2.7 --vue2deps \"element-ui\" --vue3deps \"element-plus\"", | ||
"switch2": "cl switchVue 2 --vue2deps \"element-ui\" --vue3deps \"element-plus\"", | ||
"build": "pnpm switch3 && vite build", | ||
"serve": "vite preview" | ||
"switch2.6": "cl switchVue 2.6 --vue2deps \"element-ui\" --vue3deps \"element-plus\"", | ||
"serve": "vite preview", | ||
"build": "vite build", | ||
"release": "pnpm switch3 && pnpm build && cl release" | ||
}, | ||
@@ -62,3 +65,2 @@ "peerDependencies": { | ||
"@antfu/eslint-config": "latest", | ||
"@cloydlau/scripts": "latest", | ||
"@vitejs/plugin-vue": "latest", | ||
@@ -73,2 +75,3 @@ "@vue/compiler-sfc": "latest", | ||
"typescript": "latest", | ||
"unplugin-auto-import": "latest", | ||
"vite": "latest", | ||
@@ -83,3 +86,6 @@ "vite-plugin-dts": "latest", | ||
] | ||
}, | ||
"publishConfig": { | ||
"registry": "https://registry.npmjs.org/" | ||
} | ||
} |
@@ -532,1 +532,17 @@ English | [简体中文](./docs/README.zh-CN.md) | ||
In Vue 2, only Vue components can trigger a hook, HTML elements don't. So triggering both global & local hooks needs hijacking `emit`. | ||
<br> | ||
## Contributing | ||
1. [Install Deno](https://deno.land/#installation) | ||
2. `npm add @cloydlau/scripts -g` | ||
3. Start | ||
- `npm run dev3` | ||
- `npm run dev2.7` | ||
- `npm run dev2.6` | ||
<br> |
101742
548