Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save chanchalg/1855626 to your computer and use it in GitHub Desktop.

Select an option

Save chanchalg/1855626 to your computer and use it in GitHub Desktop.

Revisions

  1. @insin insin revised this gist Dec 22, 2011. 1 changed file with 3 additions and 2 deletions.
    5 changes: 3 additions & 2 deletions README.txt
    Original file line number Diff line number Diff line change
    @@ -1,9 +1,10 @@
    This build uses Google's Closure Compiler solely for its error output, allowing
    you to cycle through compile errors with F4 and Shift+F4.
    you to use Ctrl+B for a quick syntax sanity check while editing JavaScript files,
    using F4/Shift+F4 to cycle through any syntax errors the compiler flags up.

    To add the build:

    1. Create a new file in Packages/Google Closure/Google Closure.sublime-build
    with contents as per this Gist.
    2. Download the Google Closure jar from http://code.google.com/closure/compiler/
    2. Download the Closure compiler.jar from http://code.google.com/closure/compiler/
    and place it in Packages/Google Closure.
  2. @insin insin revised this gist Dec 22, 2011. 1 changed file with 6 additions and 4 deletions.
    10 changes: 6 additions & 4 deletions README.txt
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,9 @@
    This build uses Google's Closure Compiler solely for its error output, allowing you to cycle through compile errors with F4 and Shift+F4.
    This build uses Google's Closure Compiler solely for its error output, allowing
    you to cycle through compile errors with F4 and Shift+F4.

    To add the build:

    1. Create a new file in Packages/Google Closure/Google Closure.sublime-build with contents as per this Gist.
    2. Download the Google Closure jar from http://code.google.com/closure/compiler/ and place it in Packages/Google Closure.

    1. Create a new file in Packages/Google Closure/Google Closure.sublime-build
    with contents as per this Gist.
    2. Download the Google Closure jar from http://code.google.com/closure/compiler/
    and place it in Packages/Google Closure.
  3. @insin insin created this gist Dec 22, 2011.
    5 changes: 5 additions & 0 deletions Google Closure.sublime-build
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    {
    "cmd": ["java", "-jar", "${packages}/Google Closure/compiler.jar", "--js", "$file", "--js_output_file", "/dev/null", "--compilation_level", "WHITESPACE_ONLY"],
    "file_regex": "^(.*):([0-9]+):() ERROR - (.*)",
    "selector": "source.js"
    }
    7 changes: 7 additions & 0 deletions README.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    This build uses Google's Closure Compiler solely for its error output, allowing you to cycle through compile errors with F4 and Shift+F4.

    To add the build:

    1. Create a new file in Packages/Google Closure/Google Closure.sublime-build with contents as per this Gist.
    2. Download the Google Closure jar from http://code.google.com/closure/compiler/ and place it in Packages/Google Closure.