forked from olcxjas-softworks/LarpixClient
Add capacitorjs runtime
This commit is contained in:
parent
d0ece489ee
commit
f90c0e6c40
8362 changed files with 1502407 additions and 1 deletions
42
node_modules/replace/bin/replace.js
generated
vendored
Executable file
42
node_modules/replace/bin/replace.js
generated
vendored
Executable 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);
|
||||
Loading…
Add table
Add a link
Reference in a new issue