Versioning Coffee Script
KickoffLabs current widget framework was built on CoffeeScript. The entire system is something that started small and then grew over the last seven years.
Either way, at some point recently, the version of CoffeeScript we use locally1 was updated to the 2.x….and wow, everything went to hell.
CoffeeScript 2.x is a significant change. The changes help move the project forward in a major way, but for our existing codebase, we do not need them. I have been slowly migrating the functionality we need to a cleaner ES6/Babel/Webpack/etc. version, but this not something we are ready to ship.
In the meantime, thanks to Yarn (and I am assuming NPM would work as well), I was able to fix the issues, by using the last 1.x version of CoffeeScript.
yarn add firstname.lastname@example.org
Now instead of just issuing
coffee -c blah we do
yarn coffee -c blah and all is good in the world (minus, you know, all the crap in the world today).
Likely via HomeBrew ↩︎