mirror of
https://github.com/biobulkbende/biobulkbende.org.git
synced 2025-10-11 23:25:00 +00:00
structure, layout and automation
This commit is contained in:
10
node_modules/browser-sync/dist/cli/transforms/addCwdToWatchOptions.js
generated
vendored
Normal file
10
node_modules/browser-sync/dist/cli/transforms/addCwdToWatchOptions.js
generated
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
function addCwdToWatchOptions(incoming) {
|
||||
var output = incoming.updateIn(['watchOptions', 'cwd'], function (watchCwd) {
|
||||
return watchCwd || incoming.get('cwd');
|
||||
});
|
||||
return [output, []];
|
||||
}
|
||||
exports.addCwdToWatchOptions = addCwdToWatchOptions;
|
||||
//# sourceMappingURL=addCwdToWatchOptions.js.map
|
1
node_modules/browser-sync/dist/cli/transforms/addCwdToWatchOptions.js.map
generated
vendored
Normal file
1
node_modules/browser-sync/dist/cli/transforms/addCwdToWatchOptions.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"addCwdToWatchOptions.js","sourceRoot":"","sources":["../../../lib/cli/transforms/addCwdToWatchOptions.ts"],"names":[],"mappings":";;AAEA,SAAgB,oBAAoB,CAAC,QAAuB;IACxD,IAAM,MAAM,GAAG,QAAQ,CAAC,QAAQ,CAAC,CAAC,cAAc,EAAE,KAAK,CAAC,EAAE,UAAC,QAAQ;QAC/D,OAAO,QAAQ,IAAI,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IAC3C,CAAC,CAAC,CAAC;IAEH,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;AACxB,CAAC;AAND,oDAMC"}
|
29
node_modules/browser-sync/dist/cli/transforms/addDefaultIgnorePatterns.js
generated
vendored
Normal file
29
node_modules/browser-sync/dist/cli/transforms/addDefaultIgnorePatterns.js
generated
vendored
Normal file
@ -0,0 +1,29 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
var immutable_1 = require("immutable");
|
||||
var defaultIgnorePatterns = [
|
||||
/node_modules/,
|
||||
/bower_components/,
|
||||
'.sass-cache',
|
||||
'.vscode',
|
||||
'.git',
|
||||
'.idea',
|
||||
];
|
||||
function addDefaultIgnorePatterns(incoming) {
|
||||
if (!incoming.get("watch")) {
|
||||
return [incoming, []];
|
||||
}
|
||||
var output = incoming.update("watchOptions", function (watchOptions) {
|
||||
var userIgnored = immutable_1.List([])
|
||||
.concat(watchOptions.get("ignored"))
|
||||
.filter(Boolean)
|
||||
.toSet();
|
||||
var merged = userIgnored.merge(defaultIgnorePatterns);
|
||||
return watchOptions.merge({
|
||||
ignored: merged.toList(),
|
||||
});
|
||||
});
|
||||
return [output, []];
|
||||
}
|
||||
exports.addDefaultIgnorePatterns = addDefaultIgnorePatterns;
|
||||
//# sourceMappingURL=addDefaultIgnorePatterns.js.map
|
1
node_modules/browser-sync/dist/cli/transforms/addDefaultIgnorePatterns.js.map
generated
vendored
Normal file
1
node_modules/browser-sync/dist/cli/transforms/addDefaultIgnorePatterns.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"addDefaultIgnorePatterns.js","sourceRoot":"","sources":["../../../lib/cli/transforms/addDefaultIgnorePatterns.ts"],"names":[],"mappings":";;AAAA,uCAA+B;AAG/B,IAAM,qBAAqB,GAAG;IAC1B,cAAc;IACd,kBAAkB;IAClB,aAAa;IACb,SAAS;IACT,MAAM;IACN,OAAO;CACV,CAAC;AAEF,SAAgB,wBAAwB,CAAC,QAAuB;IAC5D,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE;QACxB,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;KACzB;IAED,IAAM,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC,cAAc,EAAE,UAAA,YAAY;QACvD,IAAM,WAAW,GAAG,gBAAI,CAAC,EAAE,CAAC;aACvB,MAAM,CAAC,YAAY,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;aACnC,MAAM,CAAC,OAAO,CAAC;aACf,KAAK,EAAE,CAAC;QAEb,IAAM,MAAM,GAAG,WAAW,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC;QAExD,OAAO,YAAY,CAAC,KAAK,CAAC;YACtB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE;SAC3B,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;IAEH,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;AACxB,CAAC;AAnBD,4DAmBC"}
|
49
node_modules/browser-sync/dist/cli/transforms/addToFilesOption.js
generated
vendored
Normal file
49
node_modules/browser-sync/dist/cli/transforms/addToFilesOption.js
generated
vendored
Normal file
@ -0,0 +1,49 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
var immutable_1 = require("immutable");
|
||||
function addToFilesOption(incoming) {
|
||||
if (!incoming.get("watch")) {
|
||||
return [incoming, []];
|
||||
}
|
||||
var serverPaths = [];
|
||||
var fromServeStatic = incoming
|
||||
.get("serveStatic", immutable_1.List([]))
|
||||
.toArray();
|
||||
var ssPaths = fromServeStatic
|
||||
.reduce(function (acc, ss) {
|
||||
if (typeof ss === "string") {
|
||||
return acc.concat(ss);
|
||||
}
|
||||
if (ss.dir && typeof ss.dir === "string") {
|
||||
return acc.concat(ss);
|
||||
}
|
||||
return acc;
|
||||
}, []);
|
||||
ssPaths.forEach(function (p) { return serverPaths.push(p); });
|
||||
var server = incoming.get("server");
|
||||
if (server) {
|
||||
if (server === true) {
|
||||
serverPaths.push(".");
|
||||
}
|
||||
if (typeof server === "string") {
|
||||
serverPaths.push(server);
|
||||
}
|
||||
if (immutable_1.List.isList(server) &&
|
||||
server.every(function (x) { return typeof x === "string"; })) {
|
||||
server.forEach(function (s) { return serverPaths.push(s); });
|
||||
}
|
||||
if (immutable_1.Map.isMap(server)) {
|
||||
var baseDirProp = server.get("baseDir");
|
||||
var baseDirs = immutable_1.List([]).concat(baseDirProp).filter(Boolean);
|
||||
baseDirs.forEach(function (s) { return serverPaths.push(s); });
|
||||
}
|
||||
}
|
||||
var output = incoming.update("files", function (files) {
|
||||
return immutable_1.List([])
|
||||
.concat(files, serverPaths)
|
||||
.filter(Boolean);
|
||||
});
|
||||
return [output, []];
|
||||
}
|
||||
exports.addToFilesOption = addToFilesOption;
|
||||
//# sourceMappingURL=addToFilesOption.js.map
|
1
node_modules/browser-sync/dist/cli/transforms/addToFilesOption.js.map
generated
vendored
Normal file
1
node_modules/browser-sync/dist/cli/transforms/addToFilesOption.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"addToFilesOption.js","sourceRoot":"","sources":["../../../lib/cli/transforms/addToFilesOption.ts"],"names":[],"mappings":";;AAAA,uCAAoC;AAGpC,SAAgB,gBAAgB,CAAC,QAAuB;IACpD,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE;QACxB,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;KACzB;IAED,IAAI,WAAW,GAAG,EAAE,CAAC;IAErB,IAAM,eAAe,GAAG,QAAQ;SAC3B,GAAG,CAAC,aAAa,EAAE,gBAAI,CAAC,EAAE,CAAC,CAAC;SAC5B,OAAO,EAAE,CAAC;IACf,IAAM,OAAO,GAAG,eAAe;SAC1B,MAAM,CAAC,UAAC,GAAG,EAAE,EAAE;QACZ,IAAI,OAAO,EAAE,KAAK,QAAQ,EAAE;YACxB,OAAO,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;SACzB;QACD,IAAI,EAAE,CAAC,GAAG,IAAI,OAAO,EAAE,CAAC,GAAG,KAAK,QAAQ,EAAE;YACtC,OAAO,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;SACzB;QACD,OAAO,GAAG,CAAC;IACf,CAAC,EAAE,EAAE,CAAC,CAAC;IAEX,OAAO,CAAC,OAAO,CAAC,UAAA,CAAC,IAAI,OAAA,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,EAAnB,CAAmB,CAAC,CAAC;IAE1C,IAAM,MAAM,GAAG,QAAQ,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IACtC,IAAI,MAAM,EAAE;QACR,IAAI,MAAM,KAAK,IAAI,EAAE;YACjB,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;SACzB;QACD,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE;YAC5B,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;SAC5B;QACD,IACI,gBAAI,CAAC,MAAM,CAAC,MAAM,CAAC;YACnB,MAAM,CAAC,KAAK,CAAC,UAAA,CAAC,IAAI,OAAA,OAAO,CAAC,KAAK,QAAQ,EAArB,CAAqB,CAAC,EAC1C;YACE,MAAM,CAAC,OAAO,CAAC,UAAA,CAAC,IAAI,OAAA,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,EAAnB,CAAmB,CAAC,CAAC;SAC5C;QACD,IAAI,eAAG,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE;YACnB,IAAM,WAAW,GAAG,MAAM,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;YAC1C,IAAM,QAAQ,GAAG,gBAAI,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;YAC9D,QAAQ,CAAC,OAAO,CAAC,UAAA,CAAC,IAAI,OAAA,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,EAAnB,CAAmB,CAAC,CAAC;SAC9C;KACJ;IAED,IAAM,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC,OAAO,EAAE,UAAA,KAAK;QACzC,OAAO,gBAAI,CAAC,EAAE,CAAC;aACV,MAAM,CAAC,KAAK,EAAE,WAAW,CAAC;aAC1B,MAAM,CAAC,OAAO,CAAC,CAAC;IACzB,CAAC,CAAC,CAAC;IACH,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;AACxB,CAAC;AAlDD,4CAkDC"}
|
12
node_modules/browser-sync/dist/cli/transforms/appendServerDirectoryOption.js
generated
vendored
Normal file
12
node_modules/browser-sync/dist/cli/transforms/appendServerDirectoryOption.js
generated
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
function appendServerDirectoryOption(incoming) {
|
||||
if (!incoming.get('server'))
|
||||
return [incoming, []];
|
||||
if (incoming.get('directory')) {
|
||||
return [incoming.setIn(['server', 'directory'], incoming.has('directory')), []];
|
||||
}
|
||||
return [incoming, []];
|
||||
}
|
||||
exports.appendServerDirectoryOption = appendServerDirectoryOption;
|
||||
//# sourceMappingURL=appendServerDirectoryOption.js.map
|
1
node_modules/browser-sync/dist/cli/transforms/appendServerDirectoryOption.js.map
generated
vendored
Normal file
1
node_modules/browser-sync/dist/cli/transforms/appendServerDirectoryOption.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"appendServerDirectoryOption.js","sourceRoot":"","sources":["../../../lib/cli/transforms/appendServerDirectoryOption.ts"],"names":[],"mappings":";;AAEA,SAAgB,2BAA2B,CAAC,QAAuB;IAC/D,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,QAAQ,CAAC;QAAE,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;IACnD,IAAI,QAAQ,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE;QAC3B,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE,WAAW,CAAC,EAAE,QAAQ,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;KACnF;IACD,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;AAC1B,CAAC;AAND,kEAMC"}
|
13
node_modules/browser-sync/dist/cli/transforms/appendServerIndexOption.js
generated
vendored
Normal file
13
node_modules/browser-sync/dist/cli/transforms/appendServerIndexOption.js
generated
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
function appendServerIndexOption(incoming) {
|
||||
if (!incoming.get('server'))
|
||||
return [incoming, []];
|
||||
var value = incoming.get('index');
|
||||
if (value) {
|
||||
return [incoming.setIn(['server', 'index'], value), []];
|
||||
}
|
||||
return [incoming, []];
|
||||
}
|
||||
exports.appendServerIndexOption = appendServerIndexOption;
|
||||
//# sourceMappingURL=appendServerIndexOption.js.map
|
1
node_modules/browser-sync/dist/cli/transforms/appendServerIndexOption.js.map
generated
vendored
Normal file
1
node_modules/browser-sync/dist/cli/transforms/appendServerIndexOption.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"appendServerIndexOption.js","sourceRoot":"","sources":["../../../lib/cli/transforms/appendServerIndexOption.ts"],"names":[],"mappings":";;AAEA,SAAgB,uBAAuB,CAAC,QAAuB;IAC3D,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,QAAQ,CAAC;QAAE,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;IACnD,IAAM,KAAK,GAAG,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IAEpC,IAAI,KAAK,EAAE;QACP,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE,OAAO,CAAC,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC;KAC3D;IAED,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;AAC1B,CAAC;AATD,0DASC"}
|
14
node_modules/browser-sync/dist/cli/transforms/copyCLIIgnoreToWatchOptions.js
generated
vendored
Normal file
14
node_modules/browser-sync/dist/cli/transforms/copyCLIIgnoreToWatchOptions.js
generated
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
var immutable_1 = require("immutable");
|
||||
function copyCLIIgnoreToWatchOptions(incoming) {
|
||||
if (!incoming.get("ignore")) {
|
||||
return [incoming, []];
|
||||
}
|
||||
var output = incoming.updateIn(["watchOptions", "ignored"], immutable_1.List([]), function (ignored) {
|
||||
return immutable_1.List([]).concat(ignored, incoming.get("ignore"));
|
||||
});
|
||||
return [output, []];
|
||||
}
|
||||
exports.copyCLIIgnoreToWatchOptions = copyCLIIgnoreToWatchOptions;
|
||||
//# sourceMappingURL=copyCLIIgnoreToWatchOptions.js.map
|
1
node_modules/browser-sync/dist/cli/transforms/copyCLIIgnoreToWatchOptions.js.map
generated
vendored
Normal file
1
node_modules/browser-sync/dist/cli/transforms/copyCLIIgnoreToWatchOptions.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"copyCLIIgnoreToWatchOptions.js","sourceRoot":"","sources":["../../../lib/cli/transforms/copyCLIIgnoreToWatchOptions.ts"],"names":[],"mappings":";;AAAA,uCAA+B;AAG/B,SAAgB,2BAA2B,CAAC,QAAuB;IAC/D,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE;QACzB,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;KACzB;IACD,IAAM,MAAM,GAAG,QAAQ,CAAC,QAAQ,CAAC,CAAC,cAAc,EAAE,SAAS,CAAC,EAAE,gBAAI,CAAC,EAAE,CAAC,EAAE,UAAA,OAAO;QAC3E,OAAO,gBAAI,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO,EAAE,QAAQ,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC5D,CAAC,CAAC,CAAC;IAEH,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;AACxB,CAAC;AATD,kEASC"}
|
20
node_modules/browser-sync/dist/cli/transforms/handleExtensionsOption.js
generated
vendored
Normal file
20
node_modules/browser-sync/dist/cli/transforms/handleExtensionsOption.js
generated
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
var immutable_1 = require("immutable");
|
||||
var cli_options_1 = require("../cli-options");
|
||||
var _ = require("../../lodash.custom");
|
||||
function handleExtensionsOption(incoming) {
|
||||
var value = incoming.get('extensions');
|
||||
if (_.isString(value)) {
|
||||
var split = cli_options_1.explodeFilesArg(value);
|
||||
if (split.length) {
|
||||
return [incoming.set('extensions', immutable_1.List(split)), []];
|
||||
}
|
||||
}
|
||||
if (immutable_1.List.isList(value)) {
|
||||
return [incoming.set('extensions', value), []];
|
||||
}
|
||||
return [incoming, []];
|
||||
}
|
||||
exports.handleExtensionsOption = handleExtensionsOption;
|
||||
//# sourceMappingURL=handleExtensionsOption.js.map
|
1
node_modules/browser-sync/dist/cli/transforms/handleExtensionsOption.js.map
generated
vendored
Normal file
1
node_modules/browser-sync/dist/cli/transforms/handleExtensionsOption.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"handleExtensionsOption.js","sourceRoot":"","sources":["../../../lib/cli/transforms/handleExtensionsOption.ts"],"names":[],"mappings":";;AAAA,uCAA+B;AAC/B,8CAA+E;AAE/E,IAAM,CAAC,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAC;AAEzC,SAAgB,sBAAsB,CAAC,QAAuB;IAC1D,IAAM,KAAK,GAAG,QAAQ,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;IACzC,IAAI,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE;QACnB,IAAM,KAAK,GAAG,6BAAe,CAAC,KAAK,CAAC,CAAC;QACrC,IAAI,KAAK,CAAC,MAAM,EAAE;YACd,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,YAAY,EAAE,gBAAI,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;SACxD;KACJ;IACD,IAAI,gBAAI,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE;QACpB,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,YAAY,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC;KAClD;IACD,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;AAC1B,CAAC;AAZD,wDAYC"}
|
23
node_modules/browser-sync/dist/cli/transforms/handleFilesOption.js
generated
vendored
Normal file
23
node_modules/browser-sync/dist/cli/transforms/handleFilesOption.js
generated
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
"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
|
1
node_modules/browser-sync/dist/cli/transforms/handleFilesOption.js.map
generated
vendored
Normal file
1
node_modules/browser-sync/dist/cli/transforms/handleFilesOption.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"handleFilesOption.js","sourceRoot":"","sources":["../../../lib/cli/transforms/handleFilesOption.ts"],"names":[],"mappings":";;AAAA,uCAAiC;AACjC,8CAA4E;AAG5E,SAAgB,iBAAiB,CAAC,QAAuB;IACrD,IAAM,KAAK,GAAG,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IACpC,IAAM,UAAU,GAAoB;QAChC,IAAI,EAAE;YACF,KAAK,EAAE,EAAE;YACT,IAAI,EAAE,EAAE;SACX;KACJ,CAAC;IAEF,IAAM,SAAS,GAAG,0BAAY,CAAC,KAAK,CAAC,CAAC;IAEtC,IAAI,SAAS,CAAC,KAAK,CAAC,MAAM,EAAE;QACxB,UAAU,CAAC,IAAI,CAAC,KAAK,GAAG,SAAS,CAAC,KAAK,CAAC;KAC3C;IAED,IAAI,SAAS,CAAC,IAAI,CAAC,MAAM,EAAE;QACvB,UAAU,CAAC,IAAI,CAAC,IAAI,GAAG,SAAS,CAAC,IAAI,CAAC;KACzC;IAED,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO,EAAE,kBAAM,CAAC,UAAU,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;AAC3D,CAAC;AApBD,8CAoBC"}
|
53
node_modules/browser-sync/dist/cli/transforms/handleGhostModeOption.js
generated
vendored
Normal file
53
node_modules/browser-sync/dist/cli/transforms/handleGhostModeOption.js
generated
vendored
Normal file
@ -0,0 +1,53 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
var immutable_1 = require("immutable");
|
||||
function handleGhostModeOption(incoming) {
|
||||
var value = incoming.get('ghostMode');
|
||||
var trueAll = {
|
||||
clicks: true,
|
||||
scroll: true,
|
||||
forms: {
|
||||
submit: true,
|
||||
inputs: true,
|
||||
toggles: true
|
||||
}
|
||||
};
|
||||
var falseAll = {
|
||||
clicks: false,
|
||||
scroll: false,
|
||||
forms: {
|
||||
submit: false,
|
||||
inputs: false,
|
||||
toggles: false
|
||||
}
|
||||
};
|
||||
if (value === false ||
|
||||
value === "false") {
|
||||
return [incoming.set('ghostMode', immutable_1.fromJS(falseAll)), []];
|
||||
}
|
||||
if (value === true ||
|
||||
value === "true") {
|
||||
return [incoming.set('ghostMode', immutable_1.fromJS(trueAll)), []];
|
||||
}
|
||||
if (value.get("forms") === false) {
|
||||
return [incoming.set('ghostMode', value.withMutations(function (map) {
|
||||
map.set("forms", immutable_1.fromJS({
|
||||
submit: false,
|
||||
inputs: false,
|
||||
toggles: false
|
||||
}));
|
||||
})), []];
|
||||
}
|
||||
if (value.get("forms") === true) {
|
||||
return [incoming.set('ghostMode', value.withMutations(function (map) {
|
||||
map.set("forms", immutable_1.fromJS({
|
||||
submit: true,
|
||||
inputs: true,
|
||||
toggles: true
|
||||
}));
|
||||
})), []];
|
||||
}
|
||||
return [incoming, []];
|
||||
}
|
||||
exports.handleGhostModeOption = handleGhostModeOption;
|
||||
//# sourceMappingURL=handleGhostModeOption.js.map
|
1
node_modules/browser-sync/dist/cli/transforms/handleGhostModeOption.js.map
generated
vendored
Normal file
1
node_modules/browser-sync/dist/cli/transforms/handleGhostModeOption.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"handleGhostModeOption.js","sourceRoot":"","sources":["../../../lib/cli/transforms/handleGhostModeOption.ts"],"names":[],"mappings":";;AAAA,uCAAiC;AAGjC,SAAgB,qBAAqB,CAAC,QAAuB;IACzD,IAAM,KAAK,GAAG,QAAQ,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;IACxC,IAAI,OAAO,GAAG;QACV,MAAM,EAAE,IAAI;QACZ,MAAM,EAAE,IAAI;QACZ,KAAK,EAAE;YACH,MAAM,EAAE,IAAI;YACZ,MAAM,EAAE,IAAI;YACZ,OAAO,EAAE,IAAI;SAChB;KACJ,CAAC;IAEF,IAAI,QAAQ,GAAG;QACX,MAAM,EAAE,KAAK;QACb,MAAM,EAAE,KAAK;QACb,KAAK,EAAE;YACH,MAAM,EAAE,KAAK;YACb,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,KAAK;SACjB;KACJ,CAAC;IAEF,IACI,KAAK,KAAK,KAAK;QACf,KAAK,KAAK,OAAO,EACnB;QACE,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,WAAW,EAAE,kBAAM,CAAC,QAAQ,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;KAC5D;IAED,IACI,KAAK,KAAK,IAAI;QACd,KAAK,KAAK,MAAM,EAClB;QACE,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,WAAW,EAAE,kBAAM,CAAC,OAAO,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;KAC3D;IAED,IAAI,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC,KAAK,KAAK,EAAE;QAC9B,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,WAAW,EAAE,KAAK,CAAC,aAAa,CAAC,UAAU,GAAG;gBAC/D,GAAG,CAAC,GAAG,CACH,OAAO,EACP,kBAAM,CAAC;oBACH,MAAM,EAAE,KAAK;oBACb,MAAM,EAAE,KAAK;oBACb,OAAO,EAAE,KAAK;iBACjB,CAAC,CACL,CAAC;YACN,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;KACZ;IAED,IAAI,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC,KAAK,IAAI,EAAE;QAC7B,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,WAAW,EAAE,KAAK,CAAC,aAAa,CAAC,UAAU,GAAG;gBAC/D,GAAG,CAAC,GAAG,CACH,OAAO,EACP,kBAAM,CAAC;oBACH,MAAM,EAAE,IAAI;oBACZ,MAAM,EAAE,IAAI;oBACZ,OAAO,EAAE,IAAI;iBAChB,CAAC,CACL,CAAC;YACN,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;KACZ;IAED,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;AAC1B,CAAC;AA/DD,sDA+DC"}
|
35
node_modules/browser-sync/dist/cli/transforms/handleHostOption.js
generated
vendored
Normal file
35
node_modules/browser-sync/dist/cli/transforms/handleHostOption.js
generated
vendored
Normal file
@ -0,0 +1,35 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
var bin_1 = require("../../bin");
|
||||
function handleHostOption(incoming) {
|
||||
var host = incoming.get("host");
|
||||
var listen = incoming.get("listen");
|
||||
if (host && listen) {
|
||||
if (host !== listen) {
|
||||
return [incoming, [{
|
||||
errors: [
|
||||
{
|
||||
error: new Error("Cannot specify both `host` and `listen` options"),
|
||||
meta: function () {
|
||||
return [
|
||||
"",
|
||||
"Tip: Use just the `listen` option *only* if you want to bind only to a particular host.",
|
||||
];
|
||||
}
|
||||
}
|
||||
],
|
||||
level: bin_1.BsErrorLevels.Fatal,
|
||||
type: bin_1.BsErrorTypes.HostAndListenIncompatible
|
||||
}]];
|
||||
}
|
||||
// whenever we have have both `host` + `listen` options,
|
||||
// we remove the 'host' to prevent complication further down the line
|
||||
return [
|
||||
incoming.delete('host'),
|
||||
[]
|
||||
];
|
||||
}
|
||||
return [incoming, []];
|
||||
}
|
||||
exports.handleHostOption = handleHostOption;
|
||||
//# sourceMappingURL=handleHostOption.js.map
|
1
node_modules/browser-sync/dist/cli/transforms/handleHostOption.js.map
generated
vendored
Normal file
1
node_modules/browser-sync/dist/cli/transforms/handleHostOption.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"handleHostOption.js","sourceRoot":"","sources":["../../../lib/cli/transforms/handleHostOption.ts"],"names":[],"mappings":";;AACA,iCAAsD;AAEtD,SAAgB,gBAAgB,CAAC,QAAuB;IACpD,IAAM,IAAI,GAAgB,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IAC/C,IAAM,MAAM,GAAgB,QAAQ,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IAEnD,IAAI,IAAI,IAAI,MAAM,EAAE;QAChB,IAAI,IAAI,KAAK,MAAM,EAAE;YACjB,OAAO,CAAC,QAAQ,EAAE,CAAC;wBACf,MAAM,EAAE;4BACJ;gCACI,KAAK,EAAE,IAAI,KAAK,CAAC,iDAAiD,CAAC;gCACnE,IAAI;oCACA,OAAO;wCACH,EAAE;wCACF,mGAAmG;qCACtG,CAAA;gCACL,CAAC;6BACJ;yBACJ;wBACD,KAAK,EAAE,mBAAa,CAAC,KAAK;wBAC1B,IAAI,EAAE,kBAAY,CAAC,yBAAyB;qBAC/C,CAAC,CAAC,CAAC;SACP;QAED,wDAAwD;QACxD,qEAAqE;QACrE,OAAO;YACH,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;YAC3B,EAAE;SAAC,CAAC;KACP;IAED,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;AAC1B,CAAC;AA/BD,4CA+BC"}
|
27
node_modules/browser-sync/dist/cli/transforms/handlePortsOption.js
generated
vendored
Normal file
27
node_modules/browser-sync/dist/cli/transforms/handlePortsOption.js
generated
vendored
Normal file
@ -0,0 +1,27 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
var immutable_1 = require("immutable");
|
||||
function handlePortsOption(incoming) {
|
||||
var value = incoming.get('ports');
|
||||
if (!value)
|
||||
return [incoming, []];
|
||||
var obj = { min: null, max: null };
|
||||
if (typeof value === "string") {
|
||||
if (~value.indexOf(",")) {
|
||||
var segs = value.split(",");
|
||||
obj.min = parseInt(segs[0], 10);
|
||||
obj.max = parseInt(segs[1], 10);
|
||||
}
|
||||
else {
|
||||
obj.min = parseInt(value, 10);
|
||||
obj.max = null;
|
||||
}
|
||||
}
|
||||
else {
|
||||
obj.min = value.get("min");
|
||||
obj.max = value.get("max") || null;
|
||||
}
|
||||
return [incoming.set('ports', immutable_1.Map(obj)), []];
|
||||
}
|
||||
exports.handlePortsOption = handlePortsOption;
|
||||
//# sourceMappingURL=handlePortsOption.js.map
|
1
node_modules/browser-sync/dist/cli/transforms/handlePortsOption.js.map
generated
vendored
Normal file
1
node_modules/browser-sync/dist/cli/transforms/handlePortsOption.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"handlePortsOption.js","sourceRoot":"","sources":["../../../lib/cli/transforms/handlePortsOption.ts"],"names":[],"mappings":";;AAAA,uCAA8B;AAI9B,SAAgB,iBAAiB,CAAC,QAAuB;IACrD,IAAM,KAAK,GAAG,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IACpC,IAAI,CAAC,KAAK;QAAE,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;IAElC,IAAM,GAAG,GAAgB,EAAC,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAC,CAAC;IAEhD,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;QAC3B,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;YACrB,IAAM,IAAI,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YAC9B,GAAG,CAAC,GAAG,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;YAChC,GAAG,CAAC,GAAG,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;SACnC;aAAM;YACH,GAAG,CAAC,GAAG,GAAG,QAAQ,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;YAC9B,GAAG,CAAC,GAAG,GAAG,IAAI,CAAC;SAClB;KACJ;SAAM;QACH,GAAG,CAAC,GAAG,GAAG,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QAC3B,GAAG,CAAC,GAAG,GAAG,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC;KACtC;IAED,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO,EAAE,eAAG,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;AACjD,CAAC;AArBD,8CAqBC"}
|
38
node_modules/browser-sync/dist/cli/transforms/handleProxyOption.js
generated
vendored
Normal file
38
node_modules/browser-sync/dist/cli/transforms/handleProxyOption.js
generated
vendored
Normal file
@ -0,0 +1,38 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
var url = require("url");
|
||||
var immutable_1 = require("immutable");
|
||||
function handleProxyOption(incoming) {
|
||||
var value = incoming.get('proxy');
|
||||
var mw;
|
||||
var target;
|
||||
if (!value || value === true) {
|
||||
return [incoming, []];
|
||||
}
|
||||
if (typeof value !== "string") {
|
||||
target = value.get("target");
|
||||
mw = value.get("middleware");
|
||||
}
|
||||
else {
|
||||
target = value;
|
||||
value = immutable_1.Map({});
|
||||
}
|
||||
if (!target.match(/^(https?):\/\//)) {
|
||||
target = "http://" + target;
|
||||
}
|
||||
var parsedUrl = url.parse(target);
|
||||
if (!parsedUrl.port) {
|
||||
parsedUrl.port = "80";
|
||||
}
|
||||
var out = {
|
||||
target: parsedUrl.protocol + "//" + parsedUrl.host,
|
||||
url: immutable_1.Map(parsedUrl)
|
||||
};
|
||||
if (mw) {
|
||||
out.middleware = mw;
|
||||
}
|
||||
var proxyOutput = value.mergeDeep(out);
|
||||
return [incoming.set('proxy', proxyOutput), []];
|
||||
}
|
||||
exports.handleProxyOption = handleProxyOption;
|
||||
//# sourceMappingURL=handleProxyOption.js.map
|
1
node_modules/browser-sync/dist/cli/transforms/handleProxyOption.js.map
generated
vendored
Normal file
1
node_modules/browser-sync/dist/cli/transforms/handleProxyOption.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"handleProxyOption.js","sourceRoot":"","sources":["../../../lib/cli/transforms/handleProxyOption.ts"],"names":[],"mappings":";;AAAA,yBAA2B;AAC3B,uCAA8B;AAI9B,SAAgB,iBAAiB,CAAC,QAAuB;IACrD,IAAI,KAAK,GAAG,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IAClC,IAAI,EAAE,CAAC;IACP,IAAI,MAAM,CAAC;IAEX,IAAI,CAAC,KAAK,IAAI,KAAK,KAAK,IAAI,EAAE;QAC1B,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;KACzB;IAED,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;QAC3B,MAAM,GAAG,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;QAC7B,EAAE,GAAG,KAAK,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;KAChC;SAAM;QACH,MAAM,GAAG,KAAK,CAAC;QACf,KAAK,GAAG,eAAG,CAAC,EAAE,CAAC,CAAC;KACnB;IAED,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,gBAAgB,CAAC,EAAE;QACjC,MAAM,GAAG,SAAS,GAAG,MAAM,CAAC;KAC/B;IAED,IAAM,SAAS,GAAG,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAEpC,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE;QACjB,SAAS,CAAC,IAAI,GAAG,IAAI,CAAC;KACzB;IAED,IAAM,GAAG,GAAqB;QAC1B,MAAM,EAAE,SAAS,CAAC,QAAQ,GAAG,IAAI,GAAG,SAAS,CAAC,IAAI;QAClD,GAAG,EAAE,eAAG,CAAC,SAAS,CAAC;KACtB,CAAC;IAEF,IAAI,EAAE,EAAE;QACJ,GAAG,CAAC,UAAU,GAAG,EAAE,CAAC;KACvB;IAED,IAAM,WAAW,GAAG,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;IAEzC,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO,EAAE,WAAW,CAAC,EAAE,EAAE,CAAC,CAAC;AACpD,CAAC;AAvCD,8CAuCC"}
|
39
node_modules/browser-sync/dist/cli/transforms/handleServerOption.js
generated
vendored
Normal file
39
node_modules/browser-sync/dist/cli/transforms/handleServerOption.js
generated
vendored
Normal file
@ -0,0 +1,39 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
var immutable_1 = require("immutable");
|
||||
function handleServerOption(incoming) {
|
||||
var value = incoming.get('server');
|
||||
if (value === false) {
|
||||
return [incoming, []];
|
||||
}
|
||||
// server: true
|
||||
if (value === true) {
|
||||
var obj = {
|
||||
baseDir: ["./"]
|
||||
};
|
||||
return [incoming.set('server', immutable_1.fromJS(obj)), []];
|
||||
}
|
||||
// server: "./app"
|
||||
if (typeof value === "string") {
|
||||
var obj = {
|
||||
baseDir: [value]
|
||||
};
|
||||
return [incoming.set('server', immutable_1.fromJS(obj)), []];
|
||||
}
|
||||
if (immutable_1.List.isList(value)) {
|
||||
var obj = {
|
||||
baseDir: value
|
||||
};
|
||||
return [incoming.set('server', immutable_1.fromJS(obj)), []];
|
||||
}
|
||||
if (immutable_1.Map.isMap(value)) {
|
||||
var dirs = immutable_1.List([])
|
||||
.concat(value.get("baseDir", "./"))
|
||||
.filter(Boolean);
|
||||
var merged = value.merge({ baseDir: dirs });
|
||||
return [incoming.set('server', merged), []];
|
||||
}
|
||||
return [incoming, []];
|
||||
}
|
||||
exports.handleServerOption = handleServerOption;
|
||||
//# sourceMappingURL=handleServerOption.js.map
|
1
node_modules/browser-sync/dist/cli/transforms/handleServerOption.js.map
generated
vendored
Normal file
1
node_modules/browser-sync/dist/cli/transforms/handleServerOption.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"handleServerOption.js","sourceRoot":"","sources":["../../../lib/cli/transforms/handleServerOption.ts"],"names":[],"mappings":";;AACA,uCAA4C;AAG5C,SAAgB,kBAAkB,CAAC,QAAuB;IACtD,IAAM,KAAK,GAAG,QAAQ,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IACrC,IAAI,KAAK,KAAK,KAAK,EAAE;QACjB,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;KACzB;IAED,eAAe;IACf,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,IAAM,GAAG,GAAkB;YACvB,OAAO,EAAE,CAAC,IAAI,CAAC;SAClB,CAAC;QACF,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,QAAQ,EAAE,kBAAM,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;KACpD;IAED,kBAAkB;IAClB,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;QAC3B,IAAM,GAAG,GAAkB;YACvB,OAAO,EAAE,CAAC,KAAK,CAAC;SACnB,CAAC;QACF,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,QAAQ,EAAE,kBAAM,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;KACpD;IAED,IAAI,gBAAI,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE;QACpB,IAAM,GAAG,GAAkB;YACvB,OAAO,EAAE,KAAK;SACjB,CAAC;QACF,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,QAAQ,EAAE,kBAAM,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;KACpD;IAED,IAAI,eAAG,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE;QAClB,IAAM,IAAI,GAAG,gBAAI,CAAC,EAAE,CAAC;aAChB,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;aAClC,MAAM,CAAC,OAAO,CAAC,CAAC;QAErB,IAAM,MAAM,GAAG,KAAK,CAAC,KAAK,CAAC,EAAC,OAAO,EAAE,IAAI,EAAC,CAAC,CAAC;QAE5C,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,QAAQ,EAAE,MAAM,CAAC,EAAE,EAAE,CAAC,CAAC;KAC/C;IAED,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;AAC1B,CAAC;AAxCD,gDAwCC"}
|
Reference in New Issue
Block a user