Something went wrong. Try again.
my website built using Rust (stdweb) → .wasm ricky.codes
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334#!/usr/bin/env bashset -euo pipefail
site_name="${1:-ricky.codes}"
cat <<EOF${site_name} build tool
USAGE: ./build.sh [OPTIONS]
OPTIONS: --help Prints help information --gen, --generate Generate + minify HTML... --build, --build-wasm Runs cargo web deploy --target=wasm32-unknown-unknown (deploys site to ./target/deploy) --watch Starts a local static server + rebuilds wasm on changes (avoids cargo web start runtime panic) --min, --minify Minify deployed *.js files with uglify --lint Run shellcheck against project shell scripts --check-links Check external links referenced in source/static assets --test Run tests
TOOLCHAIN: This repo expects a legacy toolchain for cargo-web: rustup toolchain install nightly-2019-08-01-x86_64-unknown-linux-gnu cargo +nightly-2019-08-01-x86_64-unknown-linux-gnu install cargo-web --version 0.6.26 --locked rustup target add wasm32-unknown-unknown --toolchain nightly-2019-08-01-x86_64-unknown-linux-gnu
Running "bash build.sh" (with zero options) will --generate --build-wasm and --minify (in that order)You can pass multiple options; they run in the order provided.EOF