code-spike-library
Code
Evaluates a library before adopting it, with a throwaway test of each thing it must be able to do.
How to call it
/code-spike-library <library> [capabilities] | The library, and what it must be able to do. |
|---|---|
usa a lib X ou algo parecido | Before replacing hand-written code with a dependency. |
What it does, in order
Check that it fits: versions and peer dependencies.
Look for alternatives when it does not.
Read the installed source for the internals it relies on.
Write one pass or fail check per capability, in a throwaway folder.
Note each workaround with the check that proved it.
Migrate once the owner agrees: adopt it, delete what it replaces, delete the spike.
The rules it keeps
- One pass or fail check per capability.
- The spike lives in a folder left out of builds.
- Every workaround has the check that proved it.
- Migration waits for the owner’s yes.
What comes out
The library picked, why the obvious one did not fit, pass or fail per capability, and the workarounds.