UNPKG

create-compas

Version:

Create compas based applications

39 lines (31 loc) 1.56 kB
/** * @param {import("@compas/stdlib").Logger} logger * @param {string} [message] */ export function helpPrintCreateCompasHelp(logger, message) { logger[message ? "error" : "info"](`${message ? `${message}\n` : ""} Usage: create-compas Initialize Compas projects based on Compas examples or a custom repository. Examples: - yarn create compas - npx create-compas@latest - npx create-compas@latest --template with-auth - npx create-compas@latest --template github:user/repo --output-directory ./my-project - npx create-compas@latest --template github:user/repo --template-path ./path/to/scaffold --template-ref v1.0 References: - Docs: https://compasjs.com - Provided templates: https://github.com/compasjs/compas/tree/main/examples Supported templates: - Examples from the Compas repository, for example 'default'. - Your own templates via their Git repository. Currently, only 'github:user/repo' is supported. Note that for templates from the Compas repository, the default value for '--template-ref' is based on the 'create-compas' version that you are using. To use the latest example version, specify '--template-ref main'. Flags: --help Display information about the current command. (boolean) --template Specify Compas example or custom repository. (string) --template-path Use a subdirectory from the provided template repository. (string) --template-ref Use a specific branch, tag or commit. (string) --output-directory Use the provided directory instead of the current directory. (string) `); }