summary
| default branch | master |
|---|---|
| default commit | 51c95fc15d78b9bb6e6b1a893184992bd2d500c44c6cbd6f4cb6fe54ab31dce6 |
recent commits
| commit | date | author | subject |
|---|---|---|---|
| 51c95fc | 2026-06-14T23:10:06Z | 斟酌 鵬兄 | Update README.md |
| 911c6b9 | 2026-06-12T05:35:47Z | 斟酌 鵬兄 | Proper svc name |
| 5c2ee1d | 2026-06-12T05:34:03Z | 斟酌 鵬兄 | Use port 80 for svc |
files
| path | size |
|---|---|
| .gitignore | 303 |
| Dockerfile | 615 |
| LICENSE | 1073 |
| README.md | 620 |
| concourse/build.yaml | 367 |
| concourse/prepare-deployment-resources.yaml | 325 |
| k8s/deployments.yaml | 793 |
| pom.xml | 1947 |
| src/main/java/dev/penguin/closured/Main.java | 9402 |
closure-api-min
a simple closure compiler server using Java's built-in http server.
Build
mvn -DskipTests package
Run
CLOSURED_ROOT=$PWD \
CLOSURED_PORT=8080 \
CLOSURED_WORKERS=2 \
java -Xms256m -Xmx2g -jar target/closure-api-0.1.0.jar
Test
curl -s http://127.0.0.1:8080/compile \
-H 'Content-Type: application/json' \
-d '{
"externSources": [{
"name": "extern/hello.js",
"source": "var a = {};"
}],
"jsSources": [{
"name": "example/js/hello.js",
"source": "var a = {};"
}],
"defines": {"DEFINE_DEBUG": false}
}'