diff --git a/script/build b/script/build index 48e19d6..0aac677 100755 --- a/script/build +++ b/script/build @@ -5,6 +5,7 @@ cd "$(dirname "$0")/.." rm -rf dist cp -r public dist -script/download_js_sdk +script/download_js_ble_sdk +script/download_js_serial_sdk NODE_ENV=production npm exec -- eleventy diff --git a/script/develop b/script/develop index c342a74..36b61c4 100755 --- a/script/develop +++ b/script/develop @@ -5,7 +5,8 @@ cd "$(dirname "$0")/.." rm -rf dist cp -r public dist -script/download_js_sdk +script/download_js_ble_sdk +script/download_js_serial_sdk # Quit all background tasks when script exits trap "kill 0" EXIT diff --git a/script/download_js_ble_sdk b/script/download_js_ble_sdk new file mode 100755 index 0000000..a45bfd6 --- /dev/null +++ b/script/download_js_ble_sdk @@ -0,0 +1,13 @@ +# Stop on errors +set -e + +cd "$(dirname "$0")/.." + +SDK_VER=latest + +DOWNLOAD_URL=$(npm view improv-wifi-sdk@$SDK_VER dist.tarball) + +rm -rf dist/sdk-ble-js +mkdir -p dist/sdk-ble-js + +curl $DOWNLOAD_URL | tar zx -C dist/sdk-ble-js --strip-components 3 package/dist/web diff --git a/script/download_js_sdk b/script/download_js_sdk deleted file mode 100755 index 1d5d65d..0000000 --- a/script/download_js_sdk +++ /dev/null @@ -1,13 +0,0 @@ -# Stop on errors -set -e - -cd "$(dirname "$0")/.." - -SDK_VER=latest - -DOWNLOAD_URL=`npm view improv-wifi-sdk@$SDK_VER dist.tarball` - -rm -rf dist/sdk-js -mkdir -p dist/sdk-js - -curl $DOWNLOAD_URL | tar zx -C dist/sdk-js --strip-components 3 package/dist/web diff --git a/script/download_js_serial_sdk b/script/download_js_serial_sdk new file mode 100755 index 0000000..ac42e40 --- /dev/null +++ b/script/download_js_serial_sdk @@ -0,0 +1,13 @@ +# Stop on errors +set -e + +cd "$(dirname "$0")/.." + +SDK_VER=latest + +DOWNLOAD_URL=$(npm view improv-wifi-serial-sdk@$SDK_VER dist.tarball) + +rm -rf dist/sdk-serial-js +mkdir -p dist/sdk-serial-js + +curl $DOWNLOAD_URL | tar zx -C dist/sdk-serial-js --strip-components 3 package/dist/web diff --git a/src/_includes/base.html b/src/_includes/base.html index 1373517..4586fbc 100644 --- a/src/_includes/base.html +++ b/src/_includes/base.html @@ -51,7 +51,8 @@ name="twitter:image" content="https://www.improv-wifi.com/images/social.png" /> - + +