Added build script.

This commit is contained in:
Stefan Bohacek 2024-06-02 15:33:05 -04:00
parent aa6b35d2a5
commit cd9f1b721b
No known key found for this signature in database
GPG key ID: FC75CD588A42BC10
2 changed files with 13 additions and 2 deletions

View file

@ -89,8 +89,7 @@ After making changes to the JS and CSS files, make sure to minify them.
```sh
npm install terser -g
npm install minify -g
terser fediverse-share-button/script.js > fediverse-share-button/script.min.js
minify fediverse-share-button/styles.css > fediverse-share-button/styles.min.css
npm run build
```
## Attributions

12
package.json Normal file
View file

@ -0,0 +1,12 @@
{
"name": "fediverse-share-button",
"version": "1.0.0",
"description": "Let your site's visitors share your work with the fediverse!",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "terser fediverse-share-button/script.js > fediverse-share-button/script.min.js && minify fediverse-share-button/styles.css > fediverse-share-button/styles.min.css"
},
"author": "Stefan Bohacek",
"license": "MIT"
}