@lo1/plugin-celerity 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 +41 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +11 -0
- package/package.json +23 -0
package/README.md
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# @lo1/plugin-celerity
|
|
2
|
+
|
|
3
|
+
[Celerity](https://celerityframework.io) plugin for [lo1](../../README.md) — blueprint-driven compose generation, infrastructure provisioning, data seeding, and runtime configuration.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
bun add @lo1/plugin-celerity
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Configuration
|
|
12
|
+
|
|
13
|
+
Register the plugin in your `lo1.yaml`:
|
|
14
|
+
|
|
15
|
+
```yaml
|
|
16
|
+
version: "1"
|
|
17
|
+
name: my-project
|
|
18
|
+
|
|
19
|
+
plugins:
|
|
20
|
+
celerity: "@lo1/plugin-celerity"
|
|
21
|
+
|
|
22
|
+
services:
|
|
23
|
+
api:
|
|
24
|
+
type: celerity
|
|
25
|
+
path: ./services/api
|
|
26
|
+
port: 8080
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Plugin Lifecycle
|
|
30
|
+
|
|
31
|
+
| Method | Description |
|
|
32
|
+
|---|---|
|
|
33
|
+
| `contributeCompose` | Reads Celerity blueprints and generates Docker Compose service definitions for local infrastructure (queues, topics, datastores) |
|
|
34
|
+
| `provisionInfra` | Creates infrastructure resources (tables, buckets, schemas) after the compose stack is healthy |
|
|
35
|
+
| `seedData` | Applies seed data to provisioned infrastructure |
|
|
36
|
+
| `configureContainer` | Returns container configuration for running a Celerity service in container mode |
|
|
37
|
+
| `watchForChanges` | Watches blueprint and source files for changes, yielding restart signals |
|
|
38
|
+
|
|
39
|
+
## Status
|
|
40
|
+
|
|
41
|
+
This plugin is a placeholder for future implementation. The lifecycle methods will be implemented as part of the lo1 L8 milestone.
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE9C,QAAA,MAAM,YAAY,EAAE,aAanB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
package/dist/index.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@lo1/plugin-celerity",
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "Celerity plugin for lo1 — blueprint-driven compose, provisioning, seeding, and runtime",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist"
|
|
10
|
+
],
|
|
11
|
+
"scripts": {
|
|
12
|
+
"build": "bun build ./src/index.ts --outdir ./dist --target node && bun x tsc --emitDeclarationOnly --outDir ./dist",
|
|
13
|
+
"typecheck": "tsc --noEmit",
|
|
14
|
+
"clean": "rm -rf dist",
|
|
15
|
+
"test": "bun test"
|
|
16
|
+
},
|
|
17
|
+
"dependencies": {
|
|
18
|
+
"@lo1/sdk": "0.1.0"
|
|
19
|
+
},
|
|
20
|
+
"devDependencies": {
|
|
21
|
+
"@types/bun": "latest"
|
|
22
|
+
}
|
|
23
|
+
}
|