{"id":17963619,"url":"https://github.com/bramstein/closure-compiler-inline","last_synced_at":"2025-07-05T07:33:31.886Z","repository":{"id":3978874,"uuid":"5074353","full_name":"bramstein/closure-compiler-inline","owner":"bramstein","description":"A Closure Compiler fork with more control over function inlining","archived":false,"fork":false,"pushed_at":"2012-07-19T14:54:44.000Z","size":56980,"stargazers_count":11,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-19T09:14:18.546Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"ksl-univriau/ksl-univriau.github.io","license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bramstein.png","metadata":{"files":{"readme":"README","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-07-16T22:22:30.000Z","updated_at":"2023-11-07T16:33:25.000Z","dependencies_parsed_at":"2022-09-17T19:20:51.729Z","dependency_job_id":null,"html_url":"https://github.com/bramstein/closure-compiler-inline","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/bramstein%2Fclosure-compiler-inline","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bramstein%2Fclosure-compiler-inline/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bramstein%2Fclosure-compiler-inline/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bramstein%2Fclosure-compiler-inline/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bramstein","download_url":"https://codeload.github.com/bramstein/closure-compiler-inline/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245407665,"owners_count":20610231,"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-10-29T11:42:49.944Z","updated_at":"2025-03-25T05:32:19.744Z","avatar_url":"https://github.com/bramstein.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"This fork of the Google Closure compiler extends the annotations with an `@inline` annotation that overrides the cost estimation function that decides if a function gets inlined or not. This can be useful to avoid function call overhead on mobile devices at a slight increase in file size. Note that the annotation does not force inlining, it only overrides the file size cost estimation calculation for functions that are already eligible to be inlined. Use at your own risk.\n\nA compiled version is available in the downloads section: https://github.com/bramstein/closure-compiler-inline/downloads\n\n/*\n * Copyright 2009 The Closure Compiler Authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n//\n// Contents\n//\n\nThe Closure Compiler performs checking, instrumentation, and\noptimizations on JavaScript code. The purpose of this README is to\nexplain how to build and run the Closure Compiler.\n\nThe Closure Compiler requires Java 6 or higher.\nhttp://www.java.com/\n\n\n//\n// Building The Closure Compiler\n//\n\nThere are three ways to get a Closure Compiler executable.\n\n1) Use one we built for you.\n\nPre-built Closure binaries can be found at\nhttp://code.google.com/p/closure-compiler/downloads/list\n\n\n2) Check out the source and build it with Apache Ant.\n\nFirst, check out the full source tree of the Closure Compiler. There\nare instructions on how to do this at the project site.\nhttp://code.google.com/p/closure-compiler/source/checkout\n\nApache Ant is a cross-platform build tool.\nhttp://ant.apache.org/\n\nAt the root of the source tree, there is an Ant file named\nbuild.xml. To use it, navigate to the same directory and type the\ncommand\n\nant jar\n\nThis will produce a jar file called \"build/compiler.jar\".\n\n\n3) Check out the source and build it with Eclipse.\n\nEclipse is a cross-platform IDE.\nhttp://www.eclipse.org/\n\nUnder Eclipse's File menu, click \"New \u003e Project ...\" and create a\n\"Java Project.\"  You will see an options screen. Give the project a\nname, select \"Create project from existing source,\" and choose the\nroot of the checked-out source tree as the existing directory. Verify\nthat you are using JRE version 6 or higher.\n\nEclipse can use the build.xml file to discover rules. When you\nnavigate to the build.xml file, you will see all the build rules in\nthe \"Outline\" pane. Run the \"jar\" rule to build the compiler in\nbuild/compiler.jar.\n\n\n//\n// Running The Closure Compiler\n//\n\nOnce you have the jar binary, running the Closure Compiler is straightforward.\n\nOn the command line, type\n\njava -jar compiler.jar\n\nThis starts the compiler in interactive mode. Type\n\nvar x = 17 + 25;\n\nthen hit \"Enter\", then hit \"Ctrl-Z\" (on Windows) or \"Ctrl-D\" (on Mac or Linux)\nand \"Enter\" again. The Compiler will respond:\n\nvar x=42;\n\nThe Closure Compiler has many options for reading input from a file,\nwriting output to a file, checking your code, and running\noptimizations. To learn more, type\n\njava -jar compiler.jar --help\n\nYou can read more detailed documentation about the many flags at\nhttp://code.google.com/closure/compiler/docs/gettingstarted_app.html\n\n\n//\n// Compiling Multiple Scripts\n//\n\nIf you have multiple scripts, you should compile them all together with\none compile command.\n\njava -jar compiler.jar --js=in1.js --js=in2.js ... --js_output_file=out.js\n\nThe Closure Compiler will concatenate the files in the order they're\npassed at the command line.\n\nIf you need to compile many, many scripts together, you may start to\nrun into problems with managing dependencies between scripts. You\nshould check out the Closure Library. It contains functions for\nenforcing dependencies between scripts, and a tool called calcdeps.py\nthat knows how to give scripts to the Closure Compiler in the right\norder.\n\nhttp://code.google.com/p/closure-library/\n\n//\n// Licensing\n//\n\nUnless otherwise stated, all source files are licensed under\nthe Apache License, Version 2.0.\n\n\n-----\nCode under:\nsrc/com/google/javascript/rhino\ntest/com/google/javascript/rhino\n\nURL: http://www.mozilla.org/rhino\nVersion:  1.5R3, with heavy modifications\nLicense:  Netscape Public License and MPL / GPL dual license\n\nDescription: A partial copy of Mozilla Rhino. Mozilla Rhino is an\nimplementation of JavaScript for the JVM.  The JavaScript parser and\nthe parse tree data structures were extracted and modified\nsignificantly for use by Google's JavaScript compiler.\n\nLocal Modifications: The packages have been renamespaced. All code not\nrelevant to parsing has been removed. A JsDoc parser and static typing\nsystem have been added.\n\n\n-----\nCode in:\nlib/rhino\n\nRhino\nURL: http://www.mozilla.org/rhino\nVersion:  Trunk\nLicense:  Netscape Public License and MPL / GPL dual license\n\nDescription: Mozilla Rhino is an implementation of JavaScript for the JVM.\n\nLocal Modifications: Minor changes to parsing JSDoc that usually get pushed\nup-stream to Rhino trunk.\n\n\n-----\nCode in:\nlib/args4j.jar\n\nArgs4j\nURL: https://args4j.dev.java.net/\nVersion: 2.0.12\nLicense: MIT\n\nDescription:\nargs4j is a small Java class library that makes it easy to parse command line\noptions/arguments in your CUI application.\n\nLocal Modifications: None.\n\n\n-----\nCode in:\nlib/guava.jar\n\nGuava Libraries\nURL: http://code.google.com/p/guava-libraries/\nVersion:  r08\nLicense: Apache License 2.0\n\nDescription: Google's core Java libraries.\n\nLocal Modifications: None.\n\n\n-----\nCode in:\nlib/jsr305.jar\n\nAnnotations for software defect detection\nURL: http://code.google.com/p/jsr-305/\nVersion: svn revision 47\nLicense: BSD License\n\nDescription: Annotations for software defect detection.\n\nLocal Modifications: None.\n\n\n-----\nCode in:\nlib/jarjar.jar\n\nJar Jar Links\nURL: http://jarjar.googlecode.com/\nVersion: 1.1\nLicense: Apache License 2.0\n\nDescription:\nA utility for repackaging Java libraries.\n\nLocal Modifications: None.\n\n\n----\nCode in:\nlib/junit.jar\n\nJUnit\nURL:  http://sourceforge.net/projects/junit/\nVersion:  4.8.2\nLicense:  Common Public License 1.0\n\nDescription: A framework for writing and running automated tests in Java.\n\nLocal Modifications: None.\n\n\n---\nCode in:\nlib/protobuf-java.jar\n\nProtocol Buffers\nURL: http://code.google.com/p/protobuf/\nVersion: 2.3.0\nLicense: New BSD License\n\nDescription: Supporting libraries for protocol buffers,\nan encoding of structured data.\n\nLocal Modifications: None\n\n\n---\nCode in:\nlib/ant.jar\nlib/ant-launcher.jar\n\nURL: http://ant.apache.org/bindownload.cgi\nVersion: 1.8.1\nLicense: Apache License 2.0\nDescription:\n  Ant is a Java based build tool. In theory it is kind of like \"make\"\n  without make's wrinkles and with the full portability of pure java code.\n\nLocal Modifications: None\n\n\n---\nCode in:\nlib/json.jar\nURL: http://json.org/java/index.html\nVersion: JSON version 20090211\nLicense: MIT license\nDescription:\nJSON is a set of java files for use in transmitting data in JSON format.\n\nLocal Modifications: None\n\n---\nCode in:\ntools/maven-ant-tasks-2.1.1.jar\nURL: http://maven.apache.org\nVersion 2.1.1\nLicense: Apache License 2.0\nDescription:\n  Maven Ant tasks are used to manage dependencies and to install/deploy to\n  maven repositories.\n\nLocal Modifications: None\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbramstein%2Fclosure-compiler-inline","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbramstein%2Fclosure-compiler-inline","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbramstein%2Fclosure-compiler-inline/lists"}