google/closure-compiler-npm

Using closure-compiler as a browser dependency

divs1210 opened this issue · 1 comments

I'm trying to write a JS (browser) library that depends on the google-closure-compiler to provide some tooling.

I want to set up a basic npm project that:

  1. Has google-closure-compiler as a dependency
  2. Uses the compiler to provide a function (jsCodeString) => compiledJSCodeString
  3. Can be compiled via closure-compiler into a single JS file that works in the browser

But there are a lot of moving parts and I've been unable to get such a project set up.
An outline of what tools I should be using and how they fit together would be much appreciated.

nevermind, got it to work!