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

Allow quoted js source references to support minimatch globs - #28

Merged
dcodeIO merged 2 commits into
dcodeIO:masterfrom
ChadKillingsworth:master
Jul 25, 2015
Merged

dcodeIO merged 2 commits into
dcodeIO:masterfrom
ChadKillingsworth:master

Conversation

@ChadKillingsworth

Copy link
Copy Markdown
Contributor

Closure-compiler now supports minimatch-style glob inputs. This allows for very large number of files to be passed to the compiler. On windows, command length arguments prohibit passing large source repositories (like all of closure-library) to the compiler directly.

java -jar compiler.jar --js="mylibrary/**.js" --js mysource.js

To support this functionality, I allowed input sources to be quoted, and if so did not verify that they match an existing file.

I also added an error event so that invalid compiler option error messages would be correctly reported.

@TomSeldon

Copy link
Copy Markdown

I'm running in to the same problem due to command line length in Windows. This PR would solve it as it allows passing glob patterns to the compiler, which drastically reduces the length of the executed command.

@dcodeIO can this be merged?

@Kaworru

Kaworru commented Jul 25, 2015

Copy link
Copy Markdown

Run in the same issue under Windows with the "Error: spawn ENAMETOOLONG".
Would be great if this fix could be merged.

@Kaworru Kaworru mentioned this pull request Jul 25, 2015
dcodeIO added a commit that referenced this pull request Jul 25, 2015
Allow quoted js source references to support minimatch globs
@dcodeIO
dcodeIO merged commit 066eadd into dcodeIO:master Jul 25, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants