PHP WebShell

Текущая директория: /usr/lib/node_modules/bitgo/node_modules/@expo/cli/build/src/export

Просмотр файла: index.js

#!/usr/bin/env node
"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
exports.expoExport = void 0;
var _chalk = _interopRequireDefault(require("chalk"));
var _args = require("../utils/args");
var _errors = require("../utils/errors");
function _interopRequireDefault(obj) {
    return obj && obj.__esModule ? obj : {
        default: obj
    };
}
function _interopRequireWildcard(obj) {
    if (obj && obj.__esModule) {
        return obj;
    } else {
        var newObj = {};
        if (obj != null) {
            for(var key in obj){
                if (Object.prototype.hasOwnProperty.call(obj, key)) {
                    var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {};
                    if (desc.get || desc.set) {
                        Object.defineProperty(newObj, key, desc);
                    } else {
                        newObj[key] = obj[key];
                    }
                }
            }
        }
        newObj.default = obj;
        return newObj;
    }
}
const expoExport = async (argv)=>{
    const args = (0, _args).assertArgs({
        // Types
        "--help": Boolean,
        "--clear": Boolean,
        "--dump-assetmap": Boolean,
        "--dev": Boolean,
        "--dump-sourcemap": Boolean,
        "--max-workers": Number,
        "--output-dir": String,
        "--platform": String,
        // Aliases
        "-h": "--help",
        // '-s': '--dump-sourcemap',
        // '-d': '--dump-assetmap',
        "-c": "--clear"
    }, argv);
    if (args["--help"]) {
        (0, _args).printHelp(`Export the static files of the app for hosting it on a web server`, _chalk.default`npx expo export {dim <dir>}`, [
            _chalk.default`<dir>                         Directory of the Expo project. {dim Default: Current working directory}`,
            _chalk.default`--platform <all|android|ios>  Platforms: android, ios, all. {dim Default: all}`,
            `--dev                         Configure static files for developing locally using a non-https server`,
            _chalk.default`--output-dir <dir>            The directory to export the static files to. {dim Default: dist}`,
            `--max-workers <number>        Maximum number of tasks to allow the bundler to spawn`,
            `--dump-assetmap               Dump the asset map for further processing`,
            `--dump-sourcemap              Dump the source map for debugging the JS bundle`,
            `-c, --clear                   Clear the bundler cache`,
            `-h, --help                    Usage info`, 
        ].join("\n"));
    }
    const projectRoot = (0, _args).getProjectRoot(args);
    const { resolveOptionsAsync  } = await Promise.resolve().then(function() {
        return _interopRequireWildcard(require("./resolveOptions"));
    });
    const options = await resolveOptionsAsync(args).catch(_errors.logCmdError);
    const { exportAsync  } = await Promise.resolve().then(function() {
        return _interopRequireWildcard(require("./exportAsync"));
    });
    return exportAsync(projectRoot, options).catch(_errors.logCmdError);
};
exports.expoExport = expoExport;

//# sourceMappingURL=index.js.map

Выполнить команду


Для локальной разработки. Не используйте в интернете!