Alchemy lab v2 for developers. Transmutation circles are build pipelines, philosopher stone is zero-bug release, homunculi are bots.
- JavaScript 100%
| node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709 | ||
| src | ||
| tests | ||
| package.json | ||
| README.md | ||
code-alchemist-v2
Alchemy lab v2 for developers. Transmutation circles are build pipelines, philosopher stone is zero-bug release, homunculi are bots.
Usage
const { AlchemyLab, INGREDIENT_TYPES, RECIPE_TYPES, HOMUNCULUS_TYPES } = require('./src/alchemy');
const lab = new AlchemyLab('Lab of Transmutation');
lab.setAlchemist('Paracelsus');
// Gather ingredients
lab.addIngredient(INGREDIENT_TYPES.CLEAN_CODE, 3);
lab.addIngredient(INGREDIENT_TYPES.TEST_CASE, 2);
// Create recipe and transmute
lab.createRecipe(RECIPE_TYPES.BUILD_ARTIFACT);
lab.addToRecipe(0, 0);
lab.addToRecipe(0, 1);
lab.transmute(0);
// Create homunculi (bots)
lab.createHomunculus(HOMUNCULUS_TYPES.TEST_RUNNER);
lab.createHomunculus(HOMUNCULUS_TYPES.LINTER);
lab.runHomunculi();
console.log(lab.labView());
console.log(lab.report());
Ingredients
- Raw Data (potency 5) -> Clean Code (15) -> Library Extract (20) -> Docker Image (35) -> Philosopher Dust (100)
Recipes
- Build Artifact (difficulty 3, 80% success)
- Hotfix Potion (difficulty 2, 60% success)
- Feature Elixir (difficulty 4, 70% success)
- Refactor Draught (difficulty 5, 50% success)
- Philosopher Stone (difficulty 10, 5% success) — The zero-bug release
Homunculi (Bots)
- Test Runner, Linter, Formatter, Deployer, Security Auditor