Skip to content

Commit

Permalink
Add a script to publish to npm
Browse files Browse the repository at this point in the history
Doing this so I don't forget anymore to run both build and dist.
I also changed bower to use the minimized version of the script.
  • Loading branch information
aadsm committed Jul 6, 2019
1 parent 4b24339 commit aab8bb0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "jsmediatags",
"description": "Media Tags Reader (ID3, MP4)",
"main": "dist/jsmediatags.js",
"main": "dist/jsmediatags.min.js",
"authors": [
"António Afonso"
],
Expand All @@ -21,6 +21,6 @@
"homepage": "https://github.com/aadsm/jsmediatags",
"ignore": [
"*",
"!dist/jsmediatags.js"
"!dist/jsmediatags.min.js"
]
}
7 changes: 7 additions & 0 deletions publish.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash

npm install
npm run dist
npm run build
rm dist/jsmediatags.js
npm publish

0 comments on commit aab8bb0

Please sign in to comment.