sails-generate-scaffold
sails-generate-scaffold copied to clipboard
Update lodash dependency and modernize usage.
Summary
I needed to get this to work with a more current lodash
version, so that it would be compatible with Sails v0.12.
My editor auto-stripped the trailing whitespace. Sorry about the added diff noise.
Please review and merge these changes so that others can benefit.
Changes
- Updated
lodash
dependency to4.17.4
- Replaced
_.pluck()
with_.map()
as per Lodash 4.0.0 changelog - Updated calls to
_.template()
as per Lodash 4.0.0 changelog