[ ! -d ./tmp ] && mkdir -p ./tmp;

node build/example.generator.js > ./tmp/example-local.js;
npm run --silent terser -- ./tmp/example-local.js -c -m -e > ./tmp/example-local-min.js;
node build/example.generator.js --cdn > ./tmp/example-cdn.js;
npm run --silent terser -- ./tmp/example-cdn.js -c -m -e > ./tmp/example-cdn-min.js;

printf 'javascript:' > ./examples/bookmarklet/source-min.js;
cat ./tmp/example-cdn-min.js >> ./examples/bookmarklet/source-min.js;
