{"id":20147810,"url":"https://github.com/montymxb/closure-compiler-bash-wrapper","last_synced_at":"2026-05-31T01:31:27.488Z","repository":{"id":75129054,"uuid":"52558363","full_name":"montymxb/closure-compiler-bash-wrapper","owner":"montymxb","description":"A bash script wrapper for the closure-compiler tool","archived":false,"fork":false,"pushed_at":"2016-02-25T22:12:57.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-13T11:17:24.921Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/montymxb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-02-25T21:33:16.000Z","updated_at":"2016-02-25T22:01:24.000Z","dependencies_parsed_at":"2023-05-10T12:16:38.709Z","dependency_job_id":null,"html_url":"https://github.com/montymxb/closure-compiler-bash-wrapper","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/montymxb%2Fclosure-compiler-bash-wrapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/montymxb%2Fclosure-compiler-bash-wrapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/montymxb%2Fclosure-compiler-bash-wrapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/montymxb%2Fclosure-compiler-bash-wrapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/montymxb","download_url":"https://codeload.github.com/montymxb/closure-compiler-bash-wrapper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241587802,"owners_count":19986628,"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":[],"created_at":"2024-11-13T22:32:01.174Z","updated_at":"2026-05-31T01:31:27.482Z","avatar_url":"https://github.com/montymxb.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# closure-compiler-bash-wrapper\nA bash script wrapper for the closure-compiler tool\n\nBased off of an older yuijs bash wrapper, this script allows you to use closure compiler with ease on a variable amount of js files, including wildcards. Allowing you to compress just one, two or a whole folder if you wish.\n\n# Installation\n\u003col\u003e\n\u003cli\u003e\nDownload the \u003ca href=\"https://dl.google.com/closure-compiler/compiler-latest.zip\"\u003eclosure-compiler\u003c/a\u003e tool to start. Place it wherever you like, but in this example we'll just put it in \u003cstrong\u003e/\u003c/strong\u003e\n\u003c/li\u003e\n\u003cli\u003e\nUnzip and move the contents to \u003cstrong\u003e/closure-compiler\u003c/strong\u003e\n\u003c/li\u003e\n\u003cli\u003e\nPlace the \u003cstrong\u003eclosure-compiler.sh\u003c/strong\u003e file from this example in the \u003cstrong\u003e/closure-compiler\u003c/strong\u003e folder as well.\n\u003c/li\u003e\n\u003cli\u003e\nMake the closure-compiler.sh file executable with \u003cstrong\u003echmod 755 closure-compiler.sh\u003c/strong\u003e\n\u003c/li\u003e\n\u003cli\u003e\nSet up a bash alias to \u003cstrong\u003eclosure-compiler.sh\u003c/strong\u003e in your \u003cstrong\u003e~/.bash_profile\u003c/strong\u003e. It would look a little something like this\u003cbr/\u003e\n\u003cstrong\u003ealias closure-compiler='/closure-compiler/closure-compiler.sh'\u003c/strong\u003e\n\u003c/li\u003e\n\u003cli\u003e\nUpdate the \n\u003cstrong\u003eCC_PATH\u003c/strong\u003e variable at the top of closure-compiler.sh if you used a directory other than \u003cstrong\u003e/closure-compiler\u003c/strong\u003e\n\u003c/li\u003e\n\u003cli\u003e\nYou can invoke the closure-compiler wrapper from the terminal via \u003cstrong\u003eclosure-compiler [args]\u003c/strong\u003e\n\u003c/li\u003e\n\u003c/ol\u003e\n\n# Using\n\nYou can invoke the wrapper in a number of ways:\n\n```\n\n# single file\n\nclosure-compiler file.js \n\n#creates file-min.js\n\n```\n\n```\n\n# multiple files\n\nclosure-compiler file1.js file2.js file3.js \n\n#creates file1-min.js file2-min.js file3-min.js\n\n```\n\n```\n\n# wildcard, compiles all files ending in .js in the current folder\n\nclosure-compiler *.js\n\n# creates [ORIGINAL_NAME]-min.js\n\n```\n\n```\n\n# wildcard in a folder\n\nclosure-compiler js-files/*.js\n\n# creates js-files/[ORIGINAL_NAME]-min.js\n\n```\n\nThis is a brief usage coverage, feel free to add parameters to multiple folders or files in manner that makes sense to you.\n\n# License\n\u003ca href=\"LICENSE\"\u003eMIT License\u003c/a\u003e\n\n# Contact\nIf you have any problems open up an issue or reach me at \u003cben@axolsoft.com\u003e.\u003cbr/\u003e\u003cbr/\u003eIn most cases feel free to hack away at this little script to make it suite your needs!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmontymxb%2Fclosure-compiler-bash-wrapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmontymxb%2Fclosure-compiler-bash-wrapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmontymxb%2Fclosure-compiler-bash-wrapper/lists"}