UNPKG

opensphere-build-resolver

Version:

Resolves projects, their dependencies, plugins, and config to the correct arguments for compilation via the Google Closure Compiler, sass/node-sass, and other tools.

17 lines (13 loc) 412 B
'use strict'; const Promise = require('bluebird'); const fs = Promise.promisifyAll(require('fs')); const path = require('path'); const writer = function(basePackage, dir, options) { var file = 'gcc-args.json'; var outputfile = path.join(dir, file); console.log('Writing ' + outputfile); return fs.writeFileAsync(outputfile, JSON.stringify(options, null, 2)); }; module.exports = { writer: writer };