2023-08-27 22:59:51 +00:00
|
|
|
export const CommonArgv = {
|
|
|
|
directory: {
|
|
|
|
string: true,
|
|
|
|
alias: ["d"],
|
|
|
|
default: "content",
|
|
|
|
describe: "directory to look for content files",
|
|
|
|
},
|
|
|
|
verbose: {
|
|
|
|
boolean: true,
|
|
|
|
alias: ["v"],
|
|
|
|
default: false,
|
|
|
|
describe: "print out extra logging information",
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
export const CreateArgv = {
|
|
|
|
...CommonArgv,
|
|
|
|
source: {
|
|
|
|
string: true,
|
|
|
|
alias: ["s"],
|
|
|
|
describe: "source directory to copy/create symlink from",
|
|
|
|
},
|
|
|
|
strategy: {
|
|
|
|
string: true,
|
|
|
|
alias: ["X"],
|
|
|
|
choices: ["new", "copy", "symlink"],
|
|
|
|
describe: "strategy for content folder setup",
|
|
|
|
},
|
|
|
|
links: {
|
|
|
|
string: true,
|
|
|
|
alias: ["l"],
|
|
|
|
choices: ["absolute", "shortest", "relative"],
|
|
|
|
describe: "strategy to resolve links",
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
export const SyncArgv = {
|
|
|
|
...CommonArgv,
|
|
|
|
commit: {
|
|
|
|
boolean: true,
|
|
|
|
default: true,
|
|
|
|
describe: "create a git commit for your unsaved changes",
|
|
|
|
},
|
2023-11-12 22:27:53 +00:00
|
|
|
message: {
|
|
|
|
string: true,
|
|
|
|
alias: ["m"],
|
|
|
|
describe: "option to override the default Quartz commit message",
|
|
|
|
},
|
2023-08-27 22:59:51 +00:00
|
|
|
push: {
|
|
|
|
boolean: true,
|
|
|
|
default: true,
|
|
|
|
describe: "push updates to your Quartz fork",
|
|
|
|
},
|
|
|
|
pull: {
|
|
|
|
boolean: true,
|
|
|
|
default: true,
|
|
|
|
describe: "pull updates from your Quartz fork",
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
export const BuildArgv = {
|
|
|
|
...CommonArgv,
|
|
|
|
output: {
|
|
|
|
string: true,
|
|
|
|
alias: ["o"],
|
|
|
|
default: "public",
|
|
|
|
describe: "output folder for files",
|
|
|
|
},
|
|
|
|
serve: {
|
|
|
|
boolean: true,
|
|
|
|
default: false,
|
|
|
|
describe: "run a local server to live-preview your Quartz",
|
|
|
|
},
|
2024-02-09 15:07:32 +00:00
|
|
|
fastRebuild: {
|
|
|
|
boolean: true,
|
|
|
|
default: false,
|
|
|
|
describe: "[experimental] rebuild only the changed files",
|
|
|
|
},
|
2023-08-27 22:59:51 +00:00
|
|
|
baseDir: {
|
|
|
|
string: true,
|
|
|
|
default: "",
|
|
|
|
describe: "base path to serve your local server on",
|
|
|
|
},
|
|
|
|
port: {
|
|
|
|
number: true,
|
|
|
|
default: 8080,
|
|
|
|
describe: "port to serve Quartz on",
|
|
|
|
},
|
2023-08-28 00:39:42 +00:00
|
|
|
wsPort: {
|
|
|
|
number: true,
|
|
|
|
default: 3001,
|
|
|
|
describe: "port to use for WebSocket-based hot-reload notifications",
|
|
|
|
},
|
|
|
|
remoteDevHost: {
|
|
|
|
string: true,
|
|
|
|
default: "",
|
|
|
|
describe: "A URL override for the websocket connection if you are not developing on localhost",
|
|
|
|
},
|
2023-08-27 22:59:51 +00:00
|
|
|
bundleInfo: {
|
|
|
|
boolean: true,
|
|
|
|
default: false,
|
|
|
|
describe: "show detailed bundle information",
|
|
|
|
},
|
|
|
|
concurrency: {
|
|
|
|
number: true,
|
|
|
|
describe: "how many threads to use to parse notes",
|
|
|
|
},
|
|
|
|
}
|