#!/bin/sh # Assemble exactly what gets published to Cloudflare. # # An allowlist rather than an .assetsignore denylist: everything that lands in # dist/ becomes publicly readable, so it should be a deliberate list, not # whatever happens to be sitting in the working directory. set -eu cd "$(dirname "$0")" rm -rf dist mkdir -p dist cp index.html _headers dist/ cp index.js index-fallback.js home.js settings.js intervalometer.js \ storage.js config-utils.js preview.js widget.js dist/ echo "dist/ contains:" ls -1 dist