#!/bin/sh # script/assets: extract Alpine.js from its npm package tarball, committed # in 3p/, to static/js/alpine.min.js, where go:embed reads it. The # extracted file is not committed. script/test, make build and make dev run # this first. set -eu ROOT="$(cd "$(dirname "$0")/.." && pwd -P)" main() { cd "$ROOT" tar -xzOf 3p/alpinejs-3.14.9.tgz package/dist/cdn.min.js \ >static/js/alpine.min.js } main "$@"