Getting to Know Grunt By Writing Your Own Plugin
summary
A developer writes a Grunt plugin that checks the installed Sass version and fails the build if it doesn’t match the required version, because differing Sass installs produced surprising CSS diffs in commits. The process uses scaffolding with grunt-init/Yeoman, adds a dependency on shelljs for sync CLI checks, refactors core logic into a testable library, verifies behavior with nodeunit and integration tests, and uses npm link to test before publish; the plugin works.
AI-written summary · about
chapters (7)
- 0:00Start
- 22:38Integration Testing
- 23:43package.json
- 27:35npm publish
- 29:03Scaffolding
- 32:11Managing Dependencies
- 33:53Contributing
related talks
36mGrow Up With Grunt
51mGrunt JavaScript Automation for the Lazy Developer
45mFront-End Workflows with Gulp
34mModernizing a Stagnant Toolbox
50mAn Introduction to Gulp
29mManaging a Large Front-End Project with Automated Build Tools
48mModernizing The WordPress Toolbox
01h 01mUseful Tools and Utils for JS Development
