-
Notifications
You must be signed in to change notification settings - Fork 166
Adds make tidy #8439
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds make tidy #8439
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -15,6 +15,9 @@ ARTIFACT_DESTINATION_FILE ?= ./tmp/idp.tar.gz | |||||||
| brakeman \ | ||||||||
| build_artifact \ | ||||||||
| check \ | ||||||||
| clobber_db \ | ||||||||
| clobber_assets \ | ||||||||
| clobber_logs \ | ||||||||
| docker_setup \ | ||||||||
| download_acuant_sdk \ | ||||||||
| fast_setup \ | ||||||||
|
|
@@ -34,6 +37,7 @@ ARTIFACT_DESTINATION_FILE ?= ./tmp/idp.tar.gz | |||||||
| optimize_assets \ | ||||||||
| optimize_svg \ | ||||||||
| run \ | ||||||||
| tidy \ | ||||||||
| update \ | ||||||||
| urn \ | ||||||||
| README.md \ | ||||||||
|
|
@@ -268,3 +272,25 @@ README.md: docs/ ## Generates README.md based on the contents of the docs direct | |||||||
|
|
||||||||
| download_acuant_sdk: ## Downloads the most recent Acuant SDK release from Github | ||||||||
| @scripts/download_acuant_sdk.sh | ||||||||
|
|
||||||||
| clobber_db: ## resets the database for make setup | ||||||||
| bin/rake db:create | ||||||||
| bin/rake db:environment:set | ||||||||
| bin/rake db:reset | ||||||||
| bin/rake db:environment:set | ||||||||
| bin/rake dev:prime | ||||||||
|
|
||||||||
| clobber_assets: ## removes assets | ||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. extra space
Suggested change
|
||||||||
| bin/rake assets:clobber | ||||||||
| RAILS_ENV=test bin/rake assets:clobber | ||||||||
|
Comment on lines
+283
to
+285
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd personally find some value in this one, curious if it is aware of all of the asset outputs, i.e.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. https://www.rubydoc.info/gems/sprockets-rails/2.3.3 suggests it isn't natively aware of some of those.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, to be fair, that seems like something the
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @n1zyy Based on what I see here, it can be achieved with
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @aduth I like the idea, but I can't seem to verify what it's actually removing. https://github.com/rails/jsbundling-rails/blob/main/lib/tasks/jsbundling/clobber.rake suggests that it may automatically extend
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (More concretely: I can see that it runs
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh! I forgot that we do things a little custom such that we don't output JavaScript to |
||||||||
|
|
||||||||
| clobber_logs: ## purges logs | ||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. extra space ```suggestion |
||||||||
| rm -f log/* | ||||||||
| rm -rf tmp/cache/* | ||||||||
| rm -rf tmp/encrypted_doc_storage | ||||||||
| rm -rf tmp/letter_opener | ||||||||
| rm -rf tmp/mails | ||||||||
|
|
||||||||
| ## Remove assets and logs, and unused gems, but leave DB alone | ||||||||
| tidy: clobber_assets clobber_logs | ||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. putting the comment at the end lets
Suggested change
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On the "It would look better to say nothing" front... Until I saw this comment, I was unaware of Thanks for these comments; I'm going to clean these up and also make the comments read slightly better now that I have this context. |
||||||||
| bundle clean | ||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extra space
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
I think this explanation makes it worse, but: I had done this deliberately, because it looked like that was the pattern used elsewhere in the file. But looking at it again, nothing else uses 2 spaces. Maybe I saw the two pound signs and wires got crossed in my mind...? Will fix these.