Package. Test. Duck. Name a more iconic trio.
Who doesn't love managing configuration and tooling? I can tell you who doesn't love it. I don't love it.
This standardizes:
- Building an app for a browser
- Transpiling an app for ... older browsers
- Running unit tests
First you need to install the thing. The easy way is npm or whatever you use to get your packages, which installs the package and puts a couple commands in your node_modules/.bin folder. You run it either with quack
or q
for short.
npm install --save-dev quackage
Second, quack like a duck.
npx quack check-build
npx quack build
npx quack test
npx quack enhance-my-package