Socket
Socket
Sign inDemoInstall

google-closure-compiler

Package Overview
Dependencies
Maintainers
1
Versions
1919
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

google-closure-compiler - npm Package Compare versions

Comparing version 20151015.3.0 to 20151015.4.0

0

contrib/externs/angular_ui_router.js

@@ -0,0 +0,0 @@ /*

@@ -0,0 +0,0 @@ /*

@@ -0,0 +0,0 @@ /*

@@ -0,0 +0,0 @@ /*

@@ -0,0 +0,0 @@ /*

@@ -0,0 +0,0 @@ /*

@@ -0,0 +0,0 @@ /*

@@ -0,0 +0,0 @@ /*

@@ -0,0 +0,0 @@ /*

@@ -0,0 +0,0 @@ /*

@@ -0,0 +0,0 @@ /*

@@ -0,0 +0,0 @@ /*

@@ -0,0 +0,0 @@ /*

@@ -0,0 +0,0 @@ /*

@@ -0,0 +0,0 @@ /*

@@ -0,0 +0,0 @@ /*

@@ -0,0 +0,0 @@ /*

@@ -0,0 +0,0 @@ /*

@@ -0,0 +0,0 @@ /*

@@ -0,0 +0,0 @@ /*

@@ -0,0 +0,0 @@ /*

@@ -0,0 +0,0 @@ /*

@@ -0,0 +0,0 @@ /*

@@ -0,0 +0,0 @@ /*

@@ -0,0 +0,0 @@ /*

@@ -0,0 +0,0 @@ /*

@@ -0,0 +0,0 @@ /*

@@ -0,0 +0,0 @@ /*

@@ -0,0 +0,0 @@ /*

@@ -0,0 +0,0 @@ /*

@@ -0,0 +0,0 @@ /*

2

lib/grunt/index.js

@@ -101,3 +101,3 @@ /*

} else {
options.compilerOpts.js = (options.js || []).concat(src);
options.compilerOpts.js = (options.compilerOpts.js || []).concat(src);
options.compilerOpts.js_output_file = f.dest;

@@ -104,0 +104,0 @@ }

@@ -27,3 +27,5 @@ /*

var spawn = require('child_process').spawn;
var compiler_path = require.resolve('../../compiler.jar');
var compilerPath = require.resolve('../../compiler.jar');
var path = require('path');
var contribPath = path.dirname(compilerPath) + '/contrib';

@@ -114,4 +116,8 @@ /**

Compiler.compiler_path = compiler_path;
/** @type {string} */
Compiler.COMPILER_PATH = compilerPath;
/** @type {string} */
Compiler.CONTRIB_PATH = contribPath;
/**

@@ -118,0 +124,0 @@ * @return {string}

{
"name": "google-closure-compiler",
"version": "20151015.3.0",
"version": "20151015.4.0",
"description": "Check, compile, optimize and compress Javascript with Closure-Compiler",

@@ -5,0 +5,0 @@ "repository": {

@@ -92,2 +92,4 @@ # google-closure-compiler

```js
require('google-closure-compiler').grunt(grunt);
// Project configuration.

@@ -114,2 +116,6 @@ grunt.initConfig({

```js
var compilerPackage = require('google-closure-compiler');
compilerPackage.grunt(grunt);
// Project configuration.

@@ -124,2 +130,3 @@ grunt.initConfig({

js: '/node_modules/google-closure-library/**.js'
externs: compilerPackage.compiler.CONTRIB_PATH + '/externs/jquery-1.9.js',
compilation_level: 'SIMPLE',

@@ -176,3 +183,3 @@ manage_closure_dependencies: true,

language_out: 'ECMASCRIPT5_STRICT',
output_wrapper: '(function(){\n%output%\n}).call(this)\n//# sourceMappingURL=output.min.js.map'
output_wrapper: '(function(){\n%output%\n}).call(this)\n//# sourceMappingURL=output.min.js.map',
js_output_file: 'output.min.js'

@@ -186,3 +193,3 @@ }))

Gulp files are all read into memory, transformed into a JSON stream, and piped through the
compiler. With large source sets this can lead to performance issues.
compiler. With large source sets this may require a large amount of memory.

@@ -192,3 +199,4 @@ Closure-compiler can natively expand file globs which will greatly alleviate this issue.

```js
var closureCompiler = require('google-closure-compiler').gulp();
var compilerPackage = require('google-closure-compiler');
var closureCompiler = compilerPackage.gulp();

@@ -198,2 +206,3 @@ gulp.task('js-compile', function () {

js: './src/js/**.js',
externs: compilerPackage.compiler.CONTRIB_PATH + '/externs/jquery-1.9.js',
compilation_level: 'SIMPLE',

@@ -203,3 +212,3 @@ warning_level: 'VERBOSE',

language_out: 'ECMASCRIPT5_STRICT',
output_wrapper: '(function(){\n%output%\n}).call(this)\n//# sourceMappingURL=output.min.js.map'
output_wrapper: '(function(){\n%output%\n}).call(this)\n//# sourceMappingURL=output.min.js.map',
js_output_file: 'output.min.js'

@@ -248,3 +257,3 @@ })

language_out: 'ECMASCRIPT5_STRICT',
output_wrapper: '(function(){\n%output%\n}).call(this)\n//# sourceMappingURL=output.min.js.map'
output_wrapper: '(function(){\n%output%\n}).call(this)\n//# sourceMappingURL=output.min.js.map',
js_output_file: 'output.min.js'

@@ -262,4 +271,4 @@ }))

This can be avoided by specifying the input globs as compiler arguments via the `--js` flag and
let it expand the files. You can even mix these techniques. Files specified via `js` options will
specified first.
let it expand the files. You can even mix these techniques. Files specified via `js` option will
be included first.

@@ -301,3 +310,4 @@ A flagfile can also be used to workaround this issue.

console.log(ClosureCompiler.jar_path); // absolute path the compiler jar
console.log(ClosureCompiler.COMPILER_PATH); // absolute path the compiler jar
console.log(ClosureCompiler.CONTRIB_PATH); // absolute path the contrib folder which contains

@@ -304,0 +314,0 @@ var closureCompiler = new ClosureCompiler({

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc