jervis-installing-core
v0.1.0
Published
Jervis Installing core engine — detect, plan, execute project workflows.
Downloads
155
Maintainers
Readme
jervis-installing-core
Core engine for Jervis Installing.
Provides project detection, planning, execution, and link resolution for polyglot workflows — Node, PHP, Python, Ruby, Go, Rust, .NET, Java, Dart/Flutter, Elixir, and Makefile-based projects.
Exports
detectProject— detects ecosystem(s), package manager, Node versionplanVerb— builds a step list for a given verb (up,install,deps,start,migrate,optimize,branch,doctor,pull)executePlan— runs the step list and emits structured log eventscreateEmitter— creates a typed event emitter for log streamingloadManifest,saveManifest— read/write.jervis.ymllinkProject,resolveLinkedProjects— manage linked project references
Install
npm i jervis-installing-coreUsage
import {
detectProject,
planVerb,
executePlan,
createEmitter,
} from "jervis-installing-core";
const detection = await detectProject(process.cwd());
// detection.ecosystems → Set { 'node', 'php', ... }
const plan = planVerb(detection, "up");
const emitter = createEmitter();
emitter.on("log", (ev) => console.log(ev.msg));
await executePlan(plan, emitter);Supported Ecosystems
| Ecosystem | Signal files |
| ------------- | ----------------------------------------------- |
| Node.js | package.json |
| PHP / Laravel | composer.json |
| Python | requirements.txt, pyproject.toml, Pipfile |
| Ruby | Gemfile |
| Go | go.mod |
| Rust | Cargo.toml |
| .NET | *.csproj, global.json |
| Java | pom.xml, build.gradle |
| Dart/Flutter | pubspec.yaml |
| Elixir | mix.exs |
| Makefile | Makefile |
License
MIT
