whatsapp-cloud-api
whatsapp-cloud-api copied to clipboard
Adding gulp as a task runner
This PR adds gulp and a couple of its plugins to automate some of the tasks specified in package.json You can then have the option of adding further tasks and compilation options without changing much of what is in the package.jsin file
I have disabled the test task for now as several tests are failing at the moment
Hi @nyandika, Thanks for the PR!
This is a great idea; I think one of the things that stood out to me was the build
command which cleans the directory, runs the linter & fixes any errors, then compiles the code:
However, I'm not a huge fan of this. Sometimes I just prefer running quick bash commands:
e.g. I prefer this:
rm -rf dist
To this:
And this:
npm run lint
# or if I need to fix errors
npm run lint -- --fix
To this:
If this was a frontend project where we needed to obfuscate Javascript, or compile Sass, or stuff like that, yes - I'd get it. But for this project, I really want to keep it simple and hence my objection to adding gulp 🙂