@powerlines/plugin-capnp 0.1.681 → 0.1.683
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 +33 -0
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -74,6 +74,39 @@ A Powerlines plugin to generate project code with [Cap'n Proto](https://capnprot
|
|
|
74
74
|
|
|
75
75
|
<!-- END doctoc -->
|
|
76
76
|
|
|
77
|
+
## Features
|
|
78
|
+
|
|
79
|
+
- Generates project code from Cap'n Proto schemas (glob supported, `{builtinPath}` tokens expanded)
|
|
80
|
+
- Compiles schemas with `capnpc` during `prepare`; builtin-path output is emitted via `emitBuiltin`
|
|
81
|
+
- Warns and skips cleanly when no schemas resolve
|
|
82
|
+
- Typed options via `./types/plugin` (`CapnpPluginOptions`, user/resolved config, context)
|
|
83
|
+
|
|
84
|
+
## Usage
|
|
85
|
+
|
|
86
|
+
Install the plugin:
|
|
87
|
+
|
|
88
|
+
```bash
|
|
89
|
+
pnpm add @powerlines/plugin-capnp
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
Register it in `powerlines.config.ts`:
|
|
93
|
+
|
|
94
|
+
```ts
|
|
95
|
+
import { defineConfig } from "powerlines";
|
|
96
|
+
import { plugin as capnp } from "@powerlines/plugin-capnp";
|
|
97
|
+
|
|
98
|
+
export default defineConfig({
|
|
99
|
+
plugins: [
|
|
100
|
+
capnp({
|
|
101
|
+
schema: "./schemas/*.capnp",
|
|
102
|
+
ts: true
|
|
103
|
+
})
|
|
104
|
+
]
|
|
105
|
+
});
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
Run the Powerlines build for your project to activate the plugin.
|
|
109
|
+
|
|
77
110
|
## Installing
|
|
78
111
|
|
|
79
112
|
Using [pnpm](http://pnpm.io):
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-capnp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.683",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A Powerlines plugin to generate project code from Cap'n Proto schemas.",
|
|
6
6
|
"repository": {
|
|
@@ -89,19 +89,19 @@
|
|
|
89
89
|
"files": ["dist/**/*"],
|
|
90
90
|
"keywords": ["capnp", "powerlines", "storm-software", "powerlines-plugin"],
|
|
91
91
|
"dependencies": {
|
|
92
|
-
"@stryke/capnp": "^0.12.
|
|
93
|
-
"@stryke/path": "^0.29.
|
|
94
|
-
"@stryke/type-checks": "^0.6.
|
|
95
|
-
"@stryke/types": "^0.12.
|
|
92
|
+
"@stryke/capnp": "^0.12.146",
|
|
93
|
+
"@stryke/path": "^0.29.44",
|
|
94
|
+
"@stryke/type-checks": "^0.6.50",
|
|
95
|
+
"@stryke/types": "^0.12.45",
|
|
96
96
|
"defu": "^6.1.7",
|
|
97
97
|
"jiti": "^2.7.0",
|
|
98
|
-
"powerlines": "^0.47.
|
|
98
|
+
"powerlines": "^0.47.218"
|
|
99
99
|
},
|
|
100
100
|
"devDependencies": {
|
|
101
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
101
|
+
"@powerlines/plugin-plugin": "^0.12.631",
|
|
102
102
|
"@types/node": "^25.9.9"
|
|
103
103
|
},
|
|
104
104
|
"publishConfig": { "access": "public" },
|
|
105
105
|
"types": "./dist/index.d.cts",
|
|
106
|
-
"gitHead": "
|
|
106
|
+
"gitHead": "c71daefe09bbd0d26190c3096e0a30120d3a244b"
|
|
107
107
|
}
|