{"id":18939117,"url":"https://github.com/monai/cc-web-runner","last_synced_at":"2026-05-01T17:34:31.275Z","repository":{"id":72743834,"uuid":"53158693","full_name":"monai/cc-web-runner","owner":"monai","description":"Closure Compiler web runner","archived":false,"fork":false,"pushed_at":"2023-06-14T22:22:21.000Z","size":82,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2024-12-31T22:12:15.265Z","etag":null,"topics":["browserify","closure-compiler","compiler","javascript","minify"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/monai.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-03-04T18:59:48.000Z","updated_at":"2019-06-02T18:17:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"a1b793a7-e0df-4337-b4d0-190dd149cbb3","html_url":"https://github.com/monai/cc-web-runner","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monai%2Fcc-web-runner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monai%2Fcc-web-runner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monai%2Fcc-web-runner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monai%2Fcc-web-runner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/monai","download_url":"https://codeload.github.com/monai/cc-web-runner/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239937701,"owners_count":19721484,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["browserify","closure-compiler","compiler","javascript","minify"],"created_at":"2024-11-08T12:16:26.551Z","updated_at":"2026-03-22T10:30:14.772Z","avatar_url":"https://github.com/monai.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cc-web-runner\n\n[Closure Compiler](https://developers.google.com/closure/compiler/) web runner.\n\nDownload [latest](https://github.com/monai/cc-web-runner/releases) release.\n\n## Build\n\n```bash\nmvn compile package\n```\n\nProduces 2 artifacts:\n\n- WAR archive that can be deployed on servlet container\n- Standalone executable JAR archive\n\n## Run\n\n```bash\njava -jar target/cc-web-runner-standalone-1.0-SNAPSHOT.jar\n```\n\n## Use\n\nRequest:\n\n```bash\ncurl -X POST -H \"Content-Type: application/json\" -d '{\n  \"compilationLevelOptions\": {\n    \"level\": \"SIMPLE_OPTIMIZATIONS\"\n  },\n  \"sources\": [{\n    \"fileName\": \"bar.js\",\n    \"code\": \"(console.log(function(){return 42-9;}));\"\n  }]\n}\n' \"http://localhost:8080/compile\"\n```\n\n## Endpoints\n\nRequest and response content types are `application/json`.\n\n### GET /status\n\nReturns Closure Compiler version.\n\nResponse:\n\n- `compilerVersions` String - Closure Compiler version\n\n### GET /options\n\nReturns default options with given compilationLevelOptions.\n\nQuery parameters:\n\n- `level` String - is of type [CompilationLevel](https://github.com/google/closure-compiler/blob/29bbd198f0bf4967e4f406674b3eaf302a1f16a4/src/com/google/javascript/jscomp/CompilationLevel.java), compilation level\n- `debug` Boolean - whether to call `setDebugOptionsForCompilationLevel`\n- `typeBased` Boolean - whether to call `setTypeBasedOptimizationOptions`\n- `wrappedOutput` Boolean - whether to call `setWrappedOutputOptimizations`\n\nResponse:\n\n- `options` Object - is of type [CompilerOptions](https://github.com/google/closure-compiler/blob/v20160208/src/com/google/javascript/jscomp/CompilerOptions.java), compiler options\n\n### GET /externs\n\nReturns default externs.\n\nResponse:\n\n- `externs` Array - is of type List\u0026lt;[SourceFile](https://github.com/google/closure-compiler/blob/master/src/com/google/javascript/jscomp/SourceFile.java)\u0026gt;, an array of extern files\n\n### POST /compile\n\nRequest:\n\n- `externs` Array - `[{ fileName: String, code: String }]`, array of extern files\n- `sources` Array - `[{ fileName: String, code: String }]`, array of source files to compile\n- `compilationLevelOptions`\n  - `level` String - is of type [CompilationLevel](https://github.com/google/closure-compiler/blob/29bbd198f0bf4967e4f406674b3eaf302a1f16a4/src/com/google/javascript/jscomp/CompilationLevel.java), compilation level\n  - `debug` Boolean - whether to call `setDebugOptionsForCompilationLevel`\n  - `typeBased` Boolean - whether to call `setTypeBasedOptimizationOptions`\n  - `wrappedOutput` Boolean - whether to call `setWrappedOutputOptimizations`\n- `options` Object - is of type [CompilerOptions](https://github.com/google/closure-compiler/blob/v20160208/src/com/google/javascript/jscomp/CompilerOptions.java), compiler options\n\nQuery parameters:\n\n- `?debug` Boolean - whether to return error messages\n\nResponse:\n\n- `result` Object - is of type [Result](https://github.com/google/closure-compiler/blob/v20160208/src/com/google/javascript/jscomp/Result.java), compilations results\n- `source` String - compiled source\n- `status` String - SUCCESS|ERROR\n- `message` String - error message if the status is 'ERROR'\n- `exception` Object - is of type Throwable, occurred exception\n\n## License\n\nISC\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonai%2Fcc-web-runner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmonai%2Fcc-web-runner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonai%2Fcc-web-runner/lists"}