sharded.cr (Example)
sharded.cr is a Github Template for new Crystal Shards.
While a shard can be initialized with crystal init lib lib_name
, this shard
template ships with extra goodies that make it faster to get the shard published.
This template ships with:
- ameba for style linting
- Github action for Continuous Integration
- Github action
to automatically deploy crystal docs to the
gh-pages
branch - Habitat for configuration management
- Spectator for testing
- script/setup for easy setup
- Create a New Shard
- Begin coding shard functionality right away; initial configuration and some issues to guide will be automatically created.
gh repo clone grepsedawk/sharded.cr
gh repo create TESTREPONAME
(I tend to usetmp
since I delete this soon after) In the installation, make sure to add a remote (again, I usetmp
) so you can push tests later on- If you used
tmp
, make commits to main then dogit push tmp main -f
. Else, replace your branch name in fortmp
here. - Check results in
example
branch, retry if needed, a common workflow while testing for me isgit add . && git commit --amend --no-edit && git push tmp main -f
- When you're ready to make a PR,
git checkout -b new-branch-name
thengh pr create
and follow the prompts