compasjs / compas

Unified backend tooling
https://compasjs.com
MIT License
12 stars 8 forks source link

create-compas: provide a simple way to initialize a new compas project #1907

Closed dirkdev98 closed 2 years ago

dirkdev98 commented 2 years ago

Make it easier to start with Compas.

dirkdev98 commented 2 years ago

Depends on #1881

dirkdev98 commented 2 years ago

Resolve create-compas package

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
dirkdev98 commented 2 years ago

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.