title: How to use google-closure-compiler-js for a node.js app without gulp/grunt/webpack?
body: <p>The <a href="https://github.com/google/closure-compiler-js" rel="nofollow">docs</a> don't have any examples of using this on its own but they do say this:</p>
  
  <blockquote>
    <p>Unless you're using the Gulp or Webpack plugins, you'll need to specify code via flags. Both jsCode and externs accept an array containing objects in the form {src, path, sourceMap}. Using path, you can construct a virtual filesystem for use with ES6 or CommonJS imports—although for CommonJS, be sure to set processCommonJsModules: true.</p>
  </blockquote>
  
  <p>I've created a "compile.js" file based on the docs:</p>
  
  <pre><code>const compile = require('google-closure-compiler-js').compile;
  const flags = {
    jsCode: [{path: './server/server.js'}],
    processCommonJsModules: true
  };
  const out = compile(flags);
  console.info(out.compiledCode); 
  </code></pre>
  
  <p>In my "./server/server.js" file, I put a <code>console.log</code> but it doesn't output. Not sure where to go from here...</p>