Added build script.
This commit is contained in:
parent
aa6b35d2a5
commit
cd9f1b721b
|
@ -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
12
package.json
Normal 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"
|
||||
}
|
Loading…
Reference in a new issue