A Closure Compiler docker image builder.
closure-compiler help
docker run --rm ghcr.io/sndsgd/closure-compiler:latest --help
compile some javascript
docker run --rm \
-v "$(pwd)":"$(pwd)" \
-w "$(pwd)" \
ghcr.io/sndsgd/closure-compiler:latest \
--js="$(pwd)/path/to/src/**.js" \
--js="$(pwd)/path/to/entrypoint.js"
If you want to build the image locally, you can follow these steps:
- Checkout this repo
- Run
make image