0.0.5 • Published 1 year ago

opsin v0.0.5

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

Opsin

It's a component library build with vue-demi

to-do-list

  • 适配 Vue2、Vue2.7、Vue3
  • 发布 npm 仓库测试兼容性
  • 生成 d.ts 定义文件
  • 发布 npm 仓库测试编码提示

针对用户

安装

npm

npm add opsin

yarn

yarn add opsin

pnpm

pnpm add opsin

使用

\< vue 2.7

import Vue from 'vue'
// install opsin need compostion-api
import CompositionAPI from '@vue/composition-api'
+ import Opsin from 'opsin'

Vue.use(CompositionAPI)
+ Vue.use(Opsin)
...

vue 2.7.x

import Vue from 'vue'
+ import Opsin from 'opsin'

Vue.use(CompositionAPI)
+ Vue.use(Opsin)
...

>= vue 3.2

import { createApp } from 'vue'
import App from "./App.vue";
+ import Opsin from 'opsin'

const app = createApp(App)
+ app.use(Opsin)
...

针对开发者

准备

node >= 16 && pnpm >= 7

安装

> cd opsin/
> pnpm i

打包

> pnpm build

也可以单独进行特定版本打包

> pnpm build:2     -- 针对于 vue2.6.x 环境打包
> pnpm build:2.7   -- 针对于 vue2.7.x 环境打包
> pnpm build:3     -- 针对于 vue3.2.x 环境打包

发布

确保 .npmrcregistry 地址是 https://registry.npmjs.org/

> pnpm publish
0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago

0.0.0

1 year ago