whatsapp-cloud-api icon indicating copy to clipboard operation
whatsapp-cloud-api copied to clipboard

Adding gulp as a task runner

Open nyandika opened this issue 2 years ago • 1 comments

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

nyandika avatar Sep 04 '22 19:09 nyandika

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:

image

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:

image

And this:

npm run lint
# or if I need to fix errors
npm run lint -- --fix

To this: image

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 🙂

tawn33y avatar Sep 05 '22 20:09 tawn33y