Closed dirkdev98 closed 2 years ago
Depends on #1881
Resolve create-compas
package
npx create-compas@latest ...args
yarn create compas...args
(auto resolves latest)Accepted arguments;
# Resolve default template from compasjs/compas/examples/default
npx create-compas@latest
# Resolve a custom template from compasjs/compas/example/{name}
npx create-compas@latest --template cli
# Specify output directory
npx create-compas@latest --template cli --output-directory ./my-cli
# Resolve custom repo, uses default branch and no subdirectory
npx create-compas@latest --template github:user/repo
# Specify custom ref and subdir
npx create-compas@latest --template github:user/repo --template-path ./my-app --template-ref main
Done for now, there are some fixes in the CLI that need to be released for the default template to work. But i will probably release that the upcoming weekend.
Make it easier to start with Compas.
package.json
contains*
exampleMetadata
property from the package.json