piilot-pack-compta-ui
v0.1.0
Published
Expert-comptable tools — frontend module view for SILAE payroll journal import. Pairs with piilot-pack-compta (PyPI).
Readme
piilot-pack-compta-ui
Frontend contributions for the hello Piilot plugin. Ships alongside
the backend package piilot-pack-compta on PyPI — the two share a
namespace and a per-company activation flag.
What's in here
src/index.ts— plugin entry point. Exportsregister(core)called by the host at boot.src/HelloModuleView.tsx— React component rendered when the user opens/modules/:slugmatchingcompta.hello.src/locales/{fr,en}.json— translation keys merged under thehellonamespace by the host's i18next.__tests__/— Vitest isolated tests.
Pattern
Source-only package : main/exports point at ./src/index.ts.
The consumer (the Piilot host) transforms and bundles via Vite. No
dist/ to build or ship.
Host import contract
The plugin imports back into the host via the @plugin-host/*
alias — see tsconfig.json paths. Never reach around with
../../../frontend/src/... : the alias is stable across the planned
Module Federation migration; deep paths are not.
Publish
Bump package.json version, commit, tag ui-v<version> in the
plugin repo :
git tag ui-v0.3.0
git push origin ui-v0.3.0The .github/workflows/release-ui.yml workflow publishes to npm.
See the root CLAUDE.md for token setup.
Full contract
For the complete guide (Vite 3-tier resolution, host-side consumption,
module federation roadmap) see :
docs/sdk/PLUGIN_DEVELOPMENT.md
§20 — "Frontend contributions".
