22 Mar
2019
22 Mar
'19
9:24 p.m.
Also, I said async hell, not callback hell. The fact that some statements return a promise and others don't... well it's confusing. Where must I sprinkle these "await"s?
Here's an example of a project that that combines:
- Browsersync
- Mozilla Nunjucks
- A File watcher
- PostCSS
- Many PostCSS plugins
- Commander
Took about 2 days to write, builds all files in parallel, and has a unified promise based internal API.
https://www.npmjs.com/package/@superflycss/cli
When the ecosystem gets better I instantly benefit. It's like having a gas driven Porsche 911 that gets upgraded to a Taycan the minute it gets released :)
Ole