@getstrata/core 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +40 -0
- package/dist/index.js +2187 -0
- package/index.ts +1 -0
- package/package.json +36 -0
package/README.md
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# @getstrata/core
|
|
2
|
+
|
|
3
|
+
Stable **Strata** framework surface for application modules.
|
|
4
|
+
|
|
5
|
+
**Source:** `src/framework/public-api.ts` (monorepo)
|
|
6
|
+
**Repository:** [EyK-26/strata](https://github.com/EyK-26/strata) — directory `packages/strata-core`
|
|
7
|
+
|
|
8
|
+
WorkHub is the reference application built on Strata; import the framework from this package in your own modules.
|
|
9
|
+
|
|
10
|
+
## Usage
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import {
|
|
14
|
+
BaseRepository,
|
|
15
|
+
FormRequest,
|
|
16
|
+
Policy,
|
|
17
|
+
mailer,
|
|
18
|
+
storage,
|
|
19
|
+
withErrorHandling,
|
|
20
|
+
} from "@getstrata/core";
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Build & verify (monorepo root)
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
bun run build:framework
|
|
27
|
+
bun run verify:framework # build + public API tests
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Publish to npm
|
|
31
|
+
|
|
32
|
+
Package name: **`@getstrata/core`** (npm org [`@getstrata`](https://www.npmjs.com/org/getstrata)).
|
|
33
|
+
|
|
34
|
+
1. Add `NPM_TOKEN` to GitHub repository secrets.
|
|
35
|
+
2. Tag a release: `git tag v0.2.0 && git push origin v0.2.0`
|
|
36
|
+
3. [Release workflow](../../.github/workflows/release.yml) builds and runs `npm publish --access public`.
|
|
37
|
+
|
|
38
|
+
Previously published as `@eyk-workhub/framework@0.1.0` — deprecated in favor of this package.
|
|
39
|
+
|
|
40
|
+
See [docs/PACKAGING.md](../../docs/PACKAGING.md) for boundaries and future extraction.
|