Skip to content

Commit

Permalink
build: release 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
fengyuanchen committed Feb 7, 2022
1 parent 313e4dd commit 8537e3e
Show file tree
Hide file tree
Showing 7 changed files with 24,244 additions and 10,449 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# [2.0.0](https://github.com/fengyuanchen/vue-barcode/compare/v2.0.0-beta...v2.0.0) (2022-02-07)



# [2.0.0-beta](https://github.com/fengyuanchen/vue-barcode/compare/v2.0.0-alpha...v2.0.0-beta) (2021-06-12)


Expand Down
31 changes: 23 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# vue-barcode

[![Coverage Status](https://img.shields.io/codecov/c/github/fengyuanchen/vue-barcode.svg)](https://codecov.io/gh/fengyuanchen/vue-barcode) [![Downloads](https://img.shields.io/npm/dm/@chenfengyuan/vue-barcode.svg)](https://www.npmjs.com/package/@chenfengyuan/vue-barcode) [![Version](https://img.shields.io/npm/v/@chenfengyuan/vue-barcode/next.svg)](https://www.npmjs.com/package/@chenfengyuan/vue-barcode) [![Gzip Size](https://img.shields.io/bundlephobia/minzip/@chenfengyuan/vue-barcode.svg)](https://unpkg.com/@chenfengyuan/vue-barcode/dist/vue-barcode.js)
[![Coverage Status](https://img.shields.io/codecov/c/github/fengyuanchen/vue-barcode.svg)](https://codecov.io/gh/fengyuanchen/vue-barcode) [![Downloads](https://img.shields.io/npm/dm/@chenfengyuan/vue-barcode.svg)](https://www.npmjs.com/package/@chenfengyuan/vue-barcode) [![Version](https://img.shields.io/npm/v/@chenfengyuan/vue-barcode.svg)](https://www.npmjs.com/package/@chenfengyuan/vue-barcode) [![Gzip Size](https://img.shields.io/bundlephobia/minzip/@chenfengyuan/vue-barcode.svg)](https://unpkg.com/@chenfengyuan/vue-barcode/dist/vue-barcode.js)

> Bar code component for Vue 3, bases on [JsBarcode](https://github.com/lindell/JsBarcode).
> Bar code component for Vue 3, bases on [JsBarcode](https://github.com/lindell/JsBarcode). For Vue 2, check out the [`v1`](https://github.com/fengyuanchen/vue-barcode/tree/v1) branch.
- [Docs](src/README.md)
- [Demo](https://fengyuanchen.github.io/vue-barcode)
Expand All @@ -14,23 +14,38 @@ dist/
├── vue-barcode.js (UMD, default)
├── vue-barcode.min.js (UMD, compressed)
├── vue-barcode.esm.js (ECMAScript Module)
└── vue-barcode.esm.min.js (ECMAScript Module, compressed)
├── vue-barcode.esm.min.js (ECMAScript Module, compressed)
└── vue-barcode.d.ts (TypeScript Declaration File)
```

## Getting started

### Installation

Using npm:

```shell
npm install vue@3 jsbarcode@3 @chenfengyuan/vue-barcode@2
```

Using pnpm:

```shell
pnpm add vue@3 jsbarcode@3 @chenfengyuan/vue-barcode@2
```

Using Yarn:

```shell
npm install vue@next jsbarcode @chenfengyuan/vue-barcode@next
yarn add vue@3 jsbarcode@3 @chenfengyuan/vue-barcode@2
```

In browser:
Using CDN:

```html
<script src="/path/to/vue.js"></script><!-- Vue.js is required -->
<script src="/path/to/JsBarcode.all.js"></script><!-- JsBarcode is required -->
<script src="/path/to/vue-barcode.js"></script>
<script src="https://unpkg.com/vue@3"></script><!-- Vue.js is required -->
<script src="https://unpkg.com/jsbarcode@3/dist/JsBarcode.all.min.js"></script><!-- JsBarcode is required -->
<script src="https://unpkg.com/@chenfengyuan/vue-barcode@2"></script>
```

### Usage
Expand Down
3 changes: 2 additions & 1 deletion docs/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
</div>
</div>
</div>
<div class="container">
<div class="container pt-4">
<div class="markdown-body">
<readme />
</div>
Expand Down Expand Up @@ -145,6 +145,7 @@ export default defineComponent({
.markdown-body {
table {
display: table;
width: 100%;
}
code {
Expand Down
4 changes: 2 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<meta name="description" content="Number input component for Vue.js.">
<meta name="author" content="Chen Fengyuan">
<link href="https://unpkg.com/bootstrap@5/dist/css/bootstrap.min.css" rel="stylesheet" crossorigin="anonymous">
<link rel="stylesheet" href="https://unpkg.com/github-markdown-css@4/github-markdown.css" crossorigin="anonymous">
<link rel="stylesheet" href="https://unpkg.com/github-markdown-css@5/github-markdown.css" crossorigin="anonymous">
<link rel="stylesheet" href="https://unpkg.com/@highlightjs/cdn-assets@11/styles/github.min.css" crossorigin="anonymous">
</head>
<body>
Expand All @@ -18,6 +18,6 @@
<script src="https://unpkg.com/vue@3/dist/vue.global.prod.js" crossorigin="anonymous"></script>
<script src="https://unpkg.com/[email protected]/dist/JsBarcode.all.min.js" crossorigin="anonymous"></script>
<script src="https://fengyuanchen.github.io/shared/google-analytics.js" crossorigin="anonymous"></script>
<script>hljs.initHighlightingOnLoad();</script>
<script>hljs.highlightAll();</script>
</body>
</html>
Loading

0 comments on commit 8537e3e

Please sign in to comment.