From aab8bb0951f3b7c95aeb4a8e37b3f7e59b2c6653 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ant=C3=B3nio=20Afonso?= Date: Sat, 6 Jul 2019 10:38:46 -0700 Subject: [PATCH] Add a script to publish to npm 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. --- bower.json | 4 ++-- publish.sh | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100755 publish.sh diff --git a/bower.json b/bower.json index d3b694f..4a0fb62 100644 --- a/bower.json +++ b/bower.json @@ -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" ], @@ -21,6 +21,6 @@ "homepage": "https://github.com/aadsm/jsmediatags", "ignore": [ "*", - "!dist/jsmediatags.js" + "!dist/jsmediatags.min.js" ] } diff --git a/publish.sh b/publish.sh new file mode 100755 index 0000000..d7ca870 --- /dev/null +++ b/publish.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +npm install +npm run dist +npm run build +rm dist/jsmediatags.js +npm publish \ No newline at end of file