akatechis / koa-hotwire

Koa middleware to enable the hotwire web application architecture
MIT License
2 stars 0 forks source link

Figure out test-only dependencies #5

Closed akatechis closed 3 years ago

akatechis commented 3 years ago

This middleware depends on koa(peer) and consolidate(direct), which requires a peer templating engine dependency (eg, if I use koa-hotwire, I need to install something like ejs or hogan). This is necessary because the tests create a real Koa server and call consolidate with a real templating engine. While this is nice because the tests are more representative of real world usage, it imposes the burden on consumers of the package, because installing this middleware also installs hogan/koa on a development environment which is unnecessary.

It's not a huge deal since it's just 2 packages both of which are pretty light, but it would be nice to not list them as dependencies in any way (particularly hogan).

akatechis commented 3 years ago

Closing as this is not an issue. When installing a dependency, its devDependencies are not installed.