-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds yard and makefile with development commands
- adds makefile with useful development commands - adds `yard` gem and documentation on how to run the local server `yard` is not perfect, but the value add is enough to include it at this time while we consider if this is a tool we want to use (either as-is or with modified templates) https://mitlibraries.atlassian.net/browse/TCO-36
- Loading branch information
Showing
6 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,3 +41,4 @@ | |
|
||
.DS_Store | ||
.vscode/ | ||
.yardoc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
--no-private --protected app/**/*.rb - docs/**/*.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
.PHONY: test | ||
|
||
help: # display Makefile commands | ||
@awk 'BEGIN { FS = ":.*#"; print "Usage: make <target>\n\nTargets:" } \ | ||
/^[-_[:alpha:]]+:.?*#/ { printf " %-15s%s\n", $$1, $$2 }' $(MAKEFILE_LIST) | ||
|
||
####################### | ||
# Local development commands | ||
####################### | ||
|
||
run: # runs server on localhost | ||
bin/rails server | ||
|
||
console: # runs console | ||
bin/rails console | ||
|
||
test: # Run tests | ||
bin/rails test | ||
|
||
coverage: test # Run tests and open coverage report in default web browser | ||
open coverage/index.html | ||
|
||
####################### | ||
# Documentation commands | ||
####################### | ||
|
||
annotate: # update Rails models documentation header | ||
bundle exec annotate --models | ||
|
||
docserver: # runs local documentation server | ||
rm -rf .yardoc # Clears cache as it's sketchy af | ||
yard server --reload | ||
|
||
####################### | ||
# Dependency commands | ||
####################### | ||
|
||
install: # Install dependencies | ||
bundle install | ||
|
||
outdated: # List outdated dependencies | ||
bundle outdated | ||
|
||
#################################### | ||
# Code quality and safety commands | ||
#################################### | ||
|
||
# coming soon! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters