Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setting closurePath #38

Open
charleshross opened this issue Oct 28, 2013 · 12 comments
Open

setting closurePath #38

charleshross opened this issue Oct 28, 2013 · 12 comments

Comments

@charleshross
Copy link

if 'closurePath' is a direct filepath to the closure jar file you should make it so it can use that instead of concatenating /build/compiler.jar at the end all the time.

@langdonx
Copy link

langdonx commented Dec 2, 2013

+1

1 similar comment
@mr-moon
Copy link

mr-moon commented Dec 3, 2013

+1

@langdonx
Copy link

langdonx commented Dec 3, 2013

I saw this, but I don't think it's a very good solution:

A think a better solution would be...

  • if file exists closurePath (file exists, not directory), use it
  • else if file exists closurePath + "/compiler.jar", use it
  • else if file exists closurePath + "/build/compiler.jar", use it
  • else throw an error

@software-engineering
Copy link

+1

2 similar comments
@jhaoda
Copy link

jhaoda commented Mar 23, 2014

+1

@quantuminformation
Copy link

+1

@gmarty
Copy link
Owner

gmarty commented Aug 19, 2014

I agree the current situation is not ideal. The best approach would be to ship grunt-closure-compiler with Closure Compiler. So maybe something like a global npm install that would download Closure Compiler and the externs definition files once for all.
I don't really have time to work on that at the moment, but I'm happy to accept PR.

@ChadKillingsworth
Copy link

👍

@ChadKillingsworth
Copy link

@gmarty Closure compiler is now officially published to npm. Perhaps the compiler should be listed as a node peer dependency? That would allow users to control the version of the compiler separately from the grunt plugin.

https://www.npmjs.com/package/google-closure-compiler

@ChadKillingsworth
Copy link

Apparently peerDependencies are being deprecated, so that option probably isn't the best.

@mandrews
Copy link

+1

@ChadKillingsworth
Copy link

The official distribution of closure-compiler has a grunt and gulp plugin included.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants