Decouple devphase CLI & Service into separate packages
HashWarlock opened this issue · 1 comments
HashWarlock commented
Description
After speaking with @Leechael on how to best integrate devphase
into swanky
a recommendation to avoid dependencies without changing the core functionality of devphase
would be decoupling the devphase-cli
and devphase-service
into separate packages. This allows for adding a plugin to swanky
in a more sustainable way.
Targets
- Separate the 'service' component into a standalone package with no dependencies on
oclif
. - The 'devphase/cli' package is for the CLI only, and acts as a glue layer between
oclif
and theservice
component. - Since we have separated devphase into two packages, only the
devphase/cli
package should have a dependency onoclif
v2. Theswanky-plugin-phala
can usedevphase/service
without declaring any dependencies onoclif
. - We can also implement a
dependency injection
design (if necessary) to further reduce boilerplate code.
l00k commented
Done.
Packages:
@devphase/service: 0.0.1
@devphase/cli: 0.0.1