Skip to content
This repository was archived by the owner on Jun 5, 2020. It is now read-only.

Commit f61e4be

Browse files
committed
Update dependencies to work with npm 2, fixes #20
1 parent c43e993 commit f61e4be

File tree

7 files changed

+23
-30
lines changed

7 files changed

+23
-30
lines changed

ClosureCompiler.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,7 @@
4545
* Compilation options.
4646
* @type {Object.<string, *>}
4747
*/
48-
this.options = typeof options == 'object' ? options : {};
49-
try {
50-
Object.keys(this.options);
51-
} catch (e) {
52-
this.options = {};
53-
}
48+
this.options = typeof options === 'object' && options ? options : {};
5449
};
5550

5651
/**

ClosureCompiler.min.js

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ The API and `ccjs` support all the command line options of Closure Compiler exce
6262

6363
* [See the output of ccjs --help](https://github.com/dcodeIO/ClosureCompiler.js/blob/master/OPTIONS.md).
6464

65+
Additionally, the JVM parameters `-Xms` and `-Xmx` are supported just in case that you run out of heap space compiling a
66+
rather large code base. When omitted, `-Xmx` defaults to `1024m`.
67+
6568
Usage with Grunt and Gulp
6669
----------------
6770
- [grunt-closurecompiler](https://github.com/dcodeIO/grunt-closurecompiler)

docs/ClosureCompiler.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ <h5>Type:</h5>
253253

254254
<dt class="tag-source">Source:</dt>
255255
<dd class="tag-source"><ul class="dummy"><li>
256-
<a href="ClosureCompiler.js.html">ClosureCompiler.js</a>, <a href="ClosureCompiler.js.html#line76">line 76</a>
256+
<a href="ClosureCompiler.js.html">ClosureCompiler.js</a>, <a href="ClosureCompiler.js.html#line71">line 71</a>
257257
</li></ul></dd>
258258

259259

@@ -503,7 +503,7 @@ <h5>Parameters:</h5>
503503

504504
<dt class="tag-source">Source:</dt>
505505
<dd class="tag-source"><ul class="dummy"><li>
506-
<a href="ClosureCompiler.js.html">ClosureCompiler.js</a>, <a href="ClosureCompiler.js.html#line136">line 136</a>
506+
<a href="ClosureCompiler.js.html">ClosureCompiler.js</a>, <a href="ClosureCompiler.js.html#line131">line 131</a>
507507
</li></ul></dd>
508508

509509

@@ -612,7 +612,7 @@ <h4 class="name" id="getBundledJava"><span class="type-signature">(static) </spa
612612

613613
<dt class="tag-source">Source:</dt>
614614
<dd class="tag-source"><ul class="dummy"><li>
615-
<a href="ClosureCompiler.js.html">ClosureCompiler.js</a>, <a href="ClosureCompiler.js.html#line103">line 103</a>
615+
<a href="ClosureCompiler.js.html">ClosureCompiler.js</a>, <a href="ClosureCompiler.js.html#line98">line 98</a>
616616
</li></ul></dd>
617617

618618

@@ -716,7 +716,7 @@ <h4 class="name" id="getGlobalJava"><span class="type-signature">(static) </span
716716

717717
<dt class="tag-source">Source:</dt>
718718
<dd class="tag-source"><ul class="dummy"><li>
719-
<a href="ClosureCompiler.js.html">ClosureCompiler.js</a>, <a href="ClosureCompiler.js.html#line83">line 83</a>
719+
<a href="ClosureCompiler.js.html">ClosureCompiler.js</a>, <a href="ClosureCompiler.js.html#line78">line 78</a>
720720
</li></ul></dd>
721721

722722

@@ -891,7 +891,7 @@ <h5>Parameters:</h5>
891891

892892
<dt class="tag-source">Source:</dt>
893893
<dd class="tag-source"><ul class="dummy"><li>
894-
<a href="ClosureCompiler.js.html">ClosureCompiler.js</a>, <a href="ClosureCompiler.js.html#line113">line 113</a>
894+
<a href="ClosureCompiler.js.html">ClosureCompiler.js</a>, <a href="ClosureCompiler.js.html#line108">line 108</a>
895895
</li></ul></dd>
896896

897897

@@ -1048,7 +1048,7 @@ <h5>Parameters:</h5>
10481048

10491049
<dt class="tag-source">Source:</dt>
10501050
<dd class="tag-source"><ul class="dummy"><li>
1051-
<a href="ClosureCompiler.js.html">ClosureCompiler.js</a>, <a href="ClosureCompiler.js.html#line148">line 148</a>
1051+
<a href="ClosureCompiler.js.html">ClosureCompiler.js</a>, <a href="ClosureCompiler.js.html#line143">line 143</a>
10521052
</li></ul></dd>
10531053

10541054

@@ -1157,7 +1157,7 @@ <h4 class="name" id="toString"><span class="type-signature"></span>toString<span
11571157

11581158
<dt class="tag-source">Source:</dt>
11591159
<dd class="tag-source"><ul class="dummy"><li>
1160-
<a href="ClosureCompiler.js.html">ClosureCompiler.js</a>, <a href="ClosureCompiler.js.html#line286">line 286</a>
1160+
<a href="ClosureCompiler.js.html">ClosureCompiler.js</a>, <a href="ClosureCompiler.js.html#line281">line 281</a>
11611161
</li></ul></dd>
11621162

11631163

@@ -1228,7 +1228,7 @@ <h2><a href="index.html">Index</a></h2><h3>Classes</h3><ul><li><a href="ClosureC
12281228
<br clear="both">
12291229

12301230
<footer>
1231-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-alpha10</a> on Sat Nov 08 2014 00:46:04 GMT+0100 (Mitteleuropäische Zeit)
1231+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-alpha10</a> on Mon Nov 10 2014 15:42:43 GMT+0100 (Mitteleuropäische Zeit)
12321232
</footer>
12331233

12341234
<script> prettyPrint(); </script>

docs/ClosureCompiler.js.html

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,7 @@ <h1 class="page-title">Source: ClosureCompiler.js</h1>
7373
* Compilation options.
7474
* @type {Object.&lt;string, *>}
7575
*/
76-
this.options = typeof options == 'object' ? options : {};
77-
try {
78-
Object.keys(this.options);
79-
} catch (e) {
80-
this.options = {};
81-
}
76+
this.options = typeof options === 'object' &amp;&amp; options ? options : {};
8277
};
8378

8479
/**
@@ -333,7 +328,7 @@ <h2><a href="index.html">Index</a></h2><h3>Classes</h3><ul><li><a href="ClosureC
333328
<br clear="both">
334329

335330
<footer>
336-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-alpha10</a> on Sat Nov 08 2014 00:46:04 GMT+0100 (Mitteleuropäische Zeit)
331+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-alpha10</a> on Mon Nov 10 2014 15:42:43 GMT+0100 (Mitteleuropäische Zeit)
337332
</footer>
338333

339334
<script> prettyPrint(); </script>

docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ <h2><a href="index.html">Index</a></h2><h3>Classes</h3><ul><li><a href="ClosureC
5656
<br clear="both">
5757

5858
<footer>
59-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-alpha10</a> on Sat Nov 08 2014 00:46:04 GMT+0100 (Mitteleuropäische Zeit)
59+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-alpha10</a> on Mon Nov 10 2014 15:42:43 GMT+0100 (Mitteleuropäische Zeit)
6060
</footer>
6161

6262
<script> prettyPrint(); </script>

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "closurecompiler",
3-
"version": "1.4.0",
3+
"version": "1.4.1",
44
"description": "ClosureCompiler.js: Closure Compiler for node.js. The all-round carefree package.",
55
"author": "Daniel Wirtz <dcode@dcode.io>",
66
"contributors": [
@@ -21,7 +21,7 @@
2121
"dependencies": {
2222
"tar": "0.1.20",
2323
"closurecompiler-externs": "*",
24-
"jsdoc": "~3.3"
24+
"jsdoc": "~3.3.0-alpha10"
2525
},
2626
"license": "Apache License, Version 2.0",
2727
"engines": {

0 commit comments

Comments
 (0)