abcnews / aunty

A toolkit for working with ABC News projects
https://www.npmjs.com/package/@abcnews/aunty
MIT License
32 stars 5 forks source link

Optionally depend on private repos #118

Closed drzax closed 3 years ago

drzax commented 4 years ago

Sometimes I want to run builds of aunty on services like Vercel. That's no longer possible due to the dependency on private @abcaustralia libraries. Can we make those optional somehow?

colingourlay commented 4 years ago

I'd imagine we could move the @abcaustralia stuff to package.json's optionalDependencies, then try / catch require()-ing the ABC postcss config during the webpack config generation (skipping the @abcaustralia style-loading config in that case).

Beyond that, we just need devs to be aware that they can't use @abcaustralia component libraries in anything they want to push to a service like Vercel that does its own builds.