UNPKG

@nx/expo

Version:

The Expo Plugin for Nx contains executors and generators for managing and developing an expo application within your workspace. For example, you can directly build for different target platforms as well as generate projects and publish your code.

26 lines (25 loc) 1.02 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.processExportOptions = processExportOptions; const devkit_1 = require("@nx/devkit"); const process_generic_options_1 = require("./process-generic-options"); function processExportOptions(tree, options, projectName, projectRoot, migrationLogs) { const args = []; if ('minify' in options) { if (options.minify === false) args.push('--no-minify'); delete options.minify; } if ('bytecode' in options) { if (options.bytecode === false) args.push('--no-bytecode'); delete options.bytecode; } if ('outputDir' in options) { const value = (0, devkit_1.joinPathFragments)((0, devkit_1.offsetFromRoot)(projectRoot), options.outputDir); args.push(`--output-dir=${value}`); delete options.outputDir; } options.args = args; (0, process_generic_options_1.processGenericOptions)(tree, options, projectName, projectRoot, migrationLogs); }