@willbooster/wb 13.15.3 → 13.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,6 @@
1
+ #!/bin/bash
2
+
3
+ apt-get purge -qq -y curl wget || true \
4
+ && apt-get autoremove -qq -y \
5
+ && apt-get clean -qq \
6
+ && rm -rf /var/lib/apt/lists/*
@@ -0,0 +1,7 @@
1
+ #!/bin/bash
2
+
3
+ yarn config set enableTelemetry 0
4
+ yarn config set enableGlobalCache 0
5
+ yarn config set nmMode hardlinks-local
6
+ yarn config set logFilters --json '[{"code":"YN0007","level":"discard"},{"code":"YN0013","level":"discard"},{"code":"YN0019","level":"discard"}]'
7
+ yarn plugin remove plugin-auto-install &> /dev/null || true
@@ -0,0 +1,6 @@
1
+ #!/bin/bash
2
+
3
+ # This script MUST NOT require superuser privileges; however, prepare-asdf.sh does require them.
4
+ ASDF_VERSION=$(curl --silent "https://api.github.com/repos/asdf-vm/asdf/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/') \
5
+ && git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch ${ASDF_VERSION} \
6
+ && echo 'legacy_version_file = yes' > $HOME/.asdfrc
@@ -0,0 +1,19 @@
1
+ #!/bin/bash
2
+
3
+ set -e
4
+
5
+ SCRIPT_DIR=$(cd -- "$(dirname -- "$0")" && pwd)
6
+
7
+ # Force to use 0.5.10 since the latest litestream is very unstable.
8
+ apt-get -qq install -y --no-install-recommends curl \
9
+ && LITESTREAM_VERSION=$(curl --silent "https://api.github.com/repos/benbjohnson/litestream/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/' | sed 's/^v//') \
10
+ && LITESTREAM_VERSION=0.5.10 \
11
+ && DEB_FILE="litestream-${LITESTREAM_VERSION}-linux-${ARCH}.deb" \
12
+ && echo "Installing Litestream: ${DEB_FILE}" \
13
+ && curl -sLO https://github.com/benbjohnson/litestream/releases/download/v${LITESTREAM_VERSION}/${DEB_FILE} \
14
+ && dpkg-reconfigure debconf -f noninteractive -p critical \
15
+ && dpkg -i ${DEB_FILE} \
16
+ && cp "${SCRIPT_DIR}/run-litestream.sh" /usr/local/bin/run-litestream.sh \
17
+ && chmod +x /usr/local/bin/run-litestream.sh \
18
+ && litestream version \
19
+ && rm -f ${DEB_FILE}
@@ -0,0 +1,3 @@
1
+ #!/bin/bash
2
+
3
+ apt-get -qq install -y --no-install-recommends tar gpg
@@ -0,0 +1,3 @@
1
+ #!/bin/bash
2
+
3
+ # do nothing
@@ -0,0 +1,3 @@
1
+ #!/bin/bash
2
+
3
+ # do nothing
@@ -0,0 +1,3 @@
1
+ #!/bin/bash
2
+
3
+ # do nothing
@@ -0,0 +1,7 @@
1
+ #!/bin/bash
2
+
3
+ # c.f. https://github.com/pyenv/pyenv/wiki#suggested-build-environment
4
+ apt-get -qq install -y --no-install-recommends \
5
+ build-essential libssl-dev zlib1g-dev \
6
+ libbz2-dev libreadline-dev libsqlite3-dev curl \
7
+ libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev
@@ -0,0 +1,4 @@
1
+ #!/bin/bash
2
+
3
+ # cf. https://github.com/rbenv/ruby-build/wiki#ubuntudebianmint
4
+ apt-get -qq install -y --no-install-recommends autoconf patch build-essential rustc libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libgmp-dev libncurses5-dev libffi-dev libgdbm6 libgdbm-dev libdb-dev uuid-dev
@@ -0,0 +1,3 @@
1
+ #!/bin/bash
2
+
3
+ apt-get -qq install -y --no-install-recommends gpg gpg-agent
@@ -0,0 +1,3 @@
1
+ #!/bin/bash
2
+
3
+ apt-get -qq install -y --no-install-recommends curl git
@@ -0,0 +1,5 @@
1
+ #!/bin/bash
2
+
3
+ # Blitz.js requires libssl-dev. wb requires procps.
4
+ # TODO: merge this with bash/prepare-node-web.sh
5
+ apt-get -qq install -y --no-install-recommends ca-certificates libssl3 procps tzdata
@@ -0,0 +1,4 @@
1
+ #!/bin/bash
2
+
3
+ # Web server requires libssl-dev. wb requires git and procps.
4
+ apt-get -qq install -y --no-install-recommends ca-certificates git libssl-dev procps tzdata
@@ -0,0 +1,4 @@
1
+ #!/bin/bash
2
+
3
+ # cf. https://blog.openreplay.com/node-gyp-troubleshooting-guide-fix-common-installation-build-errors/
4
+ apt-get -qq install -y --no-install-recommends g++ make python3 python3-pip && npm install -g bcrypt
@@ -0,0 +1,30 @@
1
+ #!/bin/bash
2
+
3
+ set -u
4
+
5
+ if [[ "$#" -eq 0 ]]; then
6
+ echo "Usage: run-litestream.sh <command>" >&2
7
+ exit 64
8
+ fi
9
+
10
+ litestream replicate -exec "$*" &
11
+ litestream_pid=$!
12
+
13
+ shutdown() {
14
+ kill -TERM "$litestream_pid" 2>/dev/null || true
15
+ wait "$litestream_pid" 2>/dev/null || true
16
+ exit 0
17
+ }
18
+
19
+ trap shutdown TERM INT
20
+
21
+ wait "$litestream_pid"
22
+ status=$?
23
+
24
+ # Railway sends SIGTERM during normal replacement deploys. Litestream forwards
25
+ # the signal to the app process, then reports the app's 143 as a failure.
26
+ if [[ "$status" -eq 143 || "$status" -eq 130 ]]; then
27
+ exit 0
28
+ fi
29
+
30
+ exit "$status"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@willbooster/wb",
3
- "version": "13.15.3",
3
+ "version": "13.16.0",
4
4
  "description": "CLI tool for WillBooster projects",
5
5
  "repository": {
6
6
  "type": "git",
@@ -13,6 +13,7 @@
13
13
  "bin": "bin/index.js",
14
14
  "files": [
15
15
  "bin/",
16
+ "docker/",
16
17
  "dist/"
17
18
  ],
18
19
  "scripts": {