Skip to content

Commit

Permalink
docs: ..
Browse files Browse the repository at this point in the history
  • Loading branch information
lvjiaxuan committed Mar 9, 2022
1 parent c549a43 commit ee79f00
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .cz-simple.js
Expand Up @@ -6,7 +6,7 @@ const typeChoices = [
{ value: 'fix', name: ' fix: 修复一个bug' },
{ value: 'wip', name: ' wip: 进行中,未完成,to rebase' },
{ value: 'perf', name: ' perf: 优化(性能、逻辑、重构等)' },
{ value: 'build', name: 'build: 构建内容变化(依赖版本、babel、rc文件、confg等)' },
{ value: 'build', name: 'build: 构建内容变化(依赖版本、babel、rc文件、config等)' },
{ value: 'docs', name: ' docs: README、添加帮助注释、其它文档等' },
{ value: 'release', name: ' rel: 发布版本' },
]
Expand Down
19 changes: 9 additions & 10 deletions .github/workflows/gh-action.yml
@@ -1,29 +1,28 @@
name: 'ci'
name: gh-action

on:
push:
branches:
- vite-vue3
# tags:
# - v*
# branches:
# - vite-vue3
tags:
- v*
workflow_dispatch:

jobs:
deploy_job:
name: Deploy Job
ci_job:
name: CI Job
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
with:
node-version: 16 # ${{ matrix.node }}
cache: 'npm'
cache: npm

- uses: lvjiaxuan/release-deploy-publish-action@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
debug: true
enableDeployBoolean: true
deployScript: npm run ci"
deployScript: npm run ci
12 changes: 6 additions & 6 deletions README.md
@@ -1,18 +1,18 @@
# vue2-number-roll
# vue-number-roll

![images](https://img.shields.io/badge/vue-2.6.14-brightgreen)

一个 Vue2 数字滚动组件,[demo](https://lvjiaxuan.github.io/vue-number-roll/index.html)

## 安装

```bash
```shell
npm i vue3-number-roll
```

Vue2 的也有:

```bash
```shell
npm i vue2-number-roll
```

Expand All @@ -38,9 +38,9 @@ npm i vue2-number-roll
## 注意

- 没有负数
- 没空测试边界情况,看着用
- 没多想测试边界情况,看着用

## 说点什么
## 关于 Vue2 说点什么

由于 TypeScript + Vue2 不先天兼容([看这里](https://www.zhihu.com/question/310485097/answer/591869966)),所以需要加点调料去腥([看这里](https://cn.vuejs.org/v2/guide/typescript.html))。

Expand All @@ -56,4 +56,4 @@ npm i vue2-number-roll
都到这个地步,干脆再加个 script setup 吧。

最后,整个项目就使用了这些:Vite2 + Vue2 + Volar(Setup for Vue2) + TypeScript + @vue/composition-api + unplugin-vue2-script-setup
最后,vite-vue2 这个分支就使用了这些:Vite2 + Vue2 + Volar(Setup for Vue2) + TypeScript + @vue/composition-api + unplugin-vue2-script-setup
6 changes: 3 additions & 3 deletions package.json
@@ -1,6 +1,6 @@
{
"name": "vue3-number-roll",
"version": "1.0.0",
"version": "0.0.1",
"private": false,
"scripts": {
"dev": "vite",
Expand All @@ -20,11 +20,11 @@
"vite",
"@vue/composition-api"
],
"main": "dist/index.umd.js",
"module": "dist/index.es.js",
"files": [
"dist"
],
"main": "dist/index.umd.js",
"module": "dist/index.es.js",
"exports": {
".": {
"import": "./dist/my-lib.es.js",
Expand Down

0 comments on commit ee79f00

Please sign in to comment.