@hx-cd/core
v0.1.0
Published
Umbrella package that re-exports all `@hx-cd/*` packages. Install this single package for on-demand access to the entire toolkit.
Downloads
47
Readme
@hx-cd/core
Umbrella package that re-exports all @hx-cd/* packages. Install this single package for on-demand access to the entire toolkit.
Installation
pnpm add @hx-cd/coreUsage
Subpath Imports (recommended — tree-shakable)
import { FetchClient } from "@hx-cd/core/fetch-client";
import { Screenshot } from "@hx-cd/core/screenshot";
import { RestfulService, CacheService } from "@hx-cd/core/services";
import { sleep, dateFormat, LRUSessionStorage } from "@hx-cd/core/utils";
import { CrudTable, BaseForm } from "@hx-cd/core/ui";Main Barrel (namespaced access)
import { fetchClient, ui, utils } from "@hx-cd/core";
const client = new fetchClient.FetchClient({ baseURL: "/api" });
const { sleep, dateFormat } = utils;Styles
import "@hx-cd/core/screenshot/styles";
import "@hx-cd/core/ui/style.css";Subpath Map
| Subpath | Re-exports from |
| ------------------------------- | ------------------------------ |
| @hx-cd/core/fetch-client | @hx-cd/fetch-client |
| @hx-cd/core/screenshot | @hx-cd/screenshot |
| @hx-cd/core/screenshot/styles | @hx-cd/screenshot/styles.css |
| @hx-cd/core/services | @hx-cd/services |
| @hx-cd/core/utils | @hx-cd/utils |
| @hx-cd/core/ui | @hx-cd/ui |
| @hx-cd/core/ui/style.css | @hx-cd/ui/style.css |
Build
pnpm build # tsup → ESM + CJS + declarations
pnpm dev # tsup --watchLicense
MIT
