This repository has been archived by the owner on Aug 6, 2021. It is now read-only.
Adding all possible model settings to template files #9
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I've added all possible model settings to template files as comments, alongside small descriptions. This would be really useful for beginner developers jumping on Sails.js, as well as experienced developers that needs to check documentation pages to define that specific setting to change a specific behavior of Sails but can't remember the name.
I tried to fix the identation style used in the generated template (I could understand why its that way, since I spent three hours with it trying to reach a perfect output for models). I couldn't figure out how to force the CoffeeScript output, so I couldn't test it - but I believe its working.
Also, I removed the
@description
comment tags that contains TODOs, since there's no need to have them, and IDEs that provide support for TODO comments will get filled with unmeaning entries (it's strange but there are people using it). That's not good.I'm bundling multiple changes into one PR but since it does not add/change/remove functionality and, in practice, I'm just inserting documentation on comments, I though it would be a waste of time if I split these changes on some PRs.