@bscotch/stitch
Version:
Stitch: The GameMaker Studio 2 Asset Pipeline Development Kit.
67 lines • 1.86 kB
JavaScript
import { oneline } from '@bscotch/utility';
const globalParamsGroup = 'General Options';
export const targetProjectParam = {
targetProject: {
alias: 't',
type: String,
optional: true,
defaultValue: process.cwd(),
description: oneline `
Path to the target GameMaker Studio 2 project.
If not set, will auto-search the current directory.
`,
group: globalParamsGroup,
},
};
export const targetParams = {
...targetProjectParam,
force: {
alias: 'f',
type: Boolean,
optional: true,
description: oneline `
Bypass safety checks, including the normal requirement that the project be
in a clean git state. Only use this option if you know what you're doing.
`,
group: globalParamsGroup,
},
readOnly: {
type: Boolean,
optional: true,
description: oneline `
Prevent any file-writes from occurring. Useful to prevent
automatic fixes from being applied and for testing purposes.
Commands may behave unexpectedly when this option is enabled.
`,
group: globalParamsGroup,
},
};
export const watchParam = {
watch: {
alias: 'w',
type: Boolean,
optional: true,
description: oneline `
Run the command with a watcher, so that it will re-run
any time there is a change to the source files that might
warrant a re-run.
`,
group: globalParamsGroup,
},
};
export const globalParams = {
help: {
alias: 'h',
type: Boolean,
optional: true,
group: globalParamsGroup,
},
debug: {
alias: 'd',
type: Boolean,
optional: true,
defaultValue: !!process.env.DEBUG,
group: globalParamsGroup,
},
};
//# sourceMappingURL=params.global.js.map