Skip to content

Commit

Permalink
build(share-button): add docs and build clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
p-m-p committed Dec 22, 2024
1 parent 0c25f0c commit 25456cc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/fuzzy-clocks-compete.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@parsonic/share-button': minor
---

Add minified distributions of share button
3 changes: 2 additions & 1 deletion packages/share-button/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ npm install --save @parsonic/share-button
## Usage

The share button can be used with your favourite bundler or directly
from a CDN.
from a CDN. Minified builds for the browser are supplied in the [`dist`
directory](`https://cdn.jsdelivr.net/npm/@parsonic/share-button@latest/dist/index.js`)

### Quick start

Expand Down
1 change: 1 addition & 0 deletions packages/share-button/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"scripts": {
"build": "esbuild index.js ShareButton.js --bundle --minify --sourcemap --outdir=dist --format=esm",
"clean": "rm -rf dist",
"prepare": "cp ../../LICENSE ./",
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [
Expand Down

0 comments on commit 25456cc

Please sign in to comment.