From 9244a2f4fd89da9a9d6dc112568905cc4551b26f Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Fri, 9 Aug 2019 10:30:26 +0100 Subject: [PATCH] Bring over remaining scripts from build.jermolene.github.io --- bin/npm-publish.sh | 7 +++++++ bin/quick-bld.sh | 8 ++++++++ bin/verbump.sh | 17 +++++++++++++++++ 3 files changed, 32 insertions(+) create mode 100755 bin/npm-publish.sh create mode 100755 bin/quick-bld.sh create mode 100755 bin/verbump.sh diff --git a/bin/npm-publish.sh b/bin/npm-publish.sh new file mode 100755 index 000000000..c37de5c24 --- /dev/null +++ b/bin/npm-publish.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +# publish to npm + +./bin/clean.sh + +npm publish || exit 1 diff --git a/bin/quick-bld.sh b/bin/quick-bld.sh new file mode 100755 index 000000000..bc11208f2 --- /dev/null +++ b/bin/quick-bld.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +# Abbreviated build script for building prerelease + +tiddlywiki editions/prerelease \ + --verbose \ + --build favicon index \ + || exit 1 diff --git a/bin/verbump.sh b/bin/verbump.sh new file mode 100755 index 000000000..ae4b0da80 --- /dev/null +++ b/bin/verbump.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +# Bump to a new version number + +if [ -z "$1" ] + then + echo "Missing version (eg '5.1.38-prerelease')" + exit 1 +fi + +# Set the new version number (will also commit and tag the release) + +npm version $1 -m "Version number update for $1" || exit 1 + +# Make sure our tags are pushed to the origin server + +git push origin --tags || exit 1