UNPKG

opensphere-build-closure-helper

Version:

Helper functions for working with opensphere-build-resolver and the Google Closure Compiler

16 lines (11 loc) 391 B
#!/usr/bin/env node 'use strict'; const path = require('path'); const {writeDeps} = require('./index.js'); if (process.argv.length < 4) { console.error('Usage: os-gendeps <gcc opts> <output>'); process.exit(1); } const depsDirs = require(path.resolve(process.cwd(), process.argv[2])); const outputFile = path.resolve(process.cwd(), process.argv[3]); writeDeps(depsDirs, outputFile);