Opal-Estate-Pro/node_modules/browser-sync/dist/cli/transforms/handleFilesOption.js

23 lines
738 B
JavaScript
Raw Normal View History

2019-09-13 06:27:52 +02:00
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var immutable_1 = require("immutable");
var cli_options_1 = require("../cli-options");
function handleFilesOption(incoming) {
var value = incoming.get('files');
var namespaces = {
core: {
globs: [],
objs: []
}
};
var processed = cli_options_1.makeFilesArg(value);
if (processed.globs.length) {
namespaces.core.globs = processed.globs;
}
if (processed.objs.length) {
namespaces.core.objs = processed.objs;
}
return [incoming.set('files', immutable_1.fromJS(namespaces)), []];
}
exports.handleFilesOption = handleFilesOption;
//# sourceMappingURL=handleFilesOption.js.map