Add capacitorjs runtime

This commit is contained in:
olcxja 2026-05-03 17:09:55 +02:00
commit f90c0e6c40
8362 changed files with 1502407 additions and 1 deletions

55
node_modules/replace/bin/parse-arguments.js generated vendored Normal file
View file

@ -0,0 +1,55 @@
var sharedOptions = require("./shared-options");
module.exports = function(scriptName, addlPosArgs, addlOpts) {
addlPosArgs = addlPosArgs || [];
addlOpts = addlOpts || {};
var posArgs = {};
var opts = {};
Object.keys(sharedOptions).forEach(function(name) {
var option = sharedOptions[name];
if (typeof option.position === 'number') {
posArgs[name] = option;
} else {
opts[name] = option;
}
});
var options = Object.assign({}, opts, addlOpts);
var positionalArgs = [];
[posArgs, addlPosArgs].forEach(function(posArgs) {
Object.keys(posArgs).forEach(function(name) {
var posArg = posArgs[name];
posArg.name = name;
positionalArgs[posArg.position] = posArg;
});
});
var command = "$0";
positionalArgs.forEach(function(positionalArg) {
var option = positionalArg.name;
if (positionalArg.array) {
option += "..";
}
if (positionalArg.demandOption) {
option = "<" + option + ">";
} else {
option = "[" + option + "]";
}
command += " " + option;
});
return require("yargs")
.scriptName(scriptName)
.command(command, "", function(yargs) {
positionalArgs.forEach(function(positionalArg) {
yargs.positional(positionalArg.name, positionalArg);
});
})
.options(options)
.argv;
};

42
node_modules/replace/bin/replace.js generated vendored Executable file
View file

@ -0,0 +1,42 @@
#!/usr/bin/env node
var parseArguments = require("./parse-arguments"),
replace = require("../replace");
/* Additional options that apply to `replace`, but not `search` */
var positionalArgs = {
replacement: {
position: 1,
string: true,
describe: "Replacement string for matches",
demandOption: true
},
paths: {
position: 2,
array: true,
describe: "File or directory to search",
default: ["*"]
}
};
var addlOptions = {
'function-file': {
alias: 'f',
describe: "Path of file containing JS replacement function",
hidden: true
},
silent: {
abbr: 's',
boolean: true,
describe: "Don't print out anything"
},
preview: {
abbr: 'p',
boolean: true,
describe: "Preview the replacements, but don't modify files"
}
}
var options = parseArguments("replace", positionalArgs, addlOptions);
replace(options);

8
node_modules/replace/bin/search.js generated vendored Executable file
View file

@ -0,0 +1,8 @@
#!/usr/bin/env node
var parseArguments = require("./parse-arguments"),
replace = require("../replace");
var options = parseArguments("search");
replace(options);

87
node_modules/replace/bin/shared-options.js generated vendored Normal file
View file

@ -0,0 +1,87 @@
var path = require("path");
module.exports = {
regex: {
position: 0,
string: true,
describe: "JavaScript regex for searching file e.g. '\\d+'",
demandOption: true
},
paths: {
position: 1,
array: true,
describe: "File or directory to search",
default: ["*"]
},
stdin: {
abbr: 'z',
boolean: true,
describe: 'Use standard in for input'
},
recursive: {
abbr: 'r',
boolean: true,
describe: "Recursively search directories"
},
ignoreCase: {
abbr: 'i',
boolean: true,
describe: "Ignore case when searching"
},
multiline: {
abbr: 'm',
boolean: true,
describe: "Match line by line",
default: true
},
include: {
string: true,
describe: "Only search in these files, e.g. '*.js,*.foo'"
},
exclude: {
string: true,
describe: "Don't search in these files, e.g. '*.min.js'"
},
'exclude-list': {
string: true,
describe: "Path of file containing a new-line separated list of files to ignore",
default: path.join(__dirname, "..", "defaultignore"),
hidden: true
},
n: {
number: true,
describe: "Limit the number of lines to preview"
},
count: {
abbr: 'c',
boolean: true,
describe: 'Display count of occurances in each file'
},
quiet: {
abbr: 'q',
boolean: true,
describe: "Just print the names of the files matches occured in (faster)"
},
color: {
string: true,
describe: "Highlight color",
choices: ['red', 'green', 'blue', 'cyan', 'yellow', 'magenta', 'bold', 'italic'],
default: 'cyan'
},
fileColor: {
string: true,
describe: "Highlight matching file's name in color",
choices: ['red', 'green', 'blue', 'cyan', 'yellow', 'magenta', 'bold', 'italic'],
default: 'yellow'
},
async: {
abbr: 'a',
boolean: true,
describe: "Asynchronously read/write files in directory (faster)",
hidden: true
},
noColor: {
boolean: true,
describe: "Disable color output"
}
};