@powerlines/plugin-nitro 0.1.569 → 0.1.571
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 +28 -0
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -74,6 +74,34 @@ A package containing a Powerlines plugin that integrates with Nitro.
|
|
|
74
74
|
|
|
75
75
|
<!-- END doctoc -->
|
|
76
76
|
|
|
77
|
+
## Features
|
|
78
|
+
|
|
79
|
+
- Builds a server application that runs on [Nitro](https://nitro.build).
|
|
80
|
+
- Serves project routes through the Nitro runtime.
|
|
81
|
+
- Supports options such as `preset` (e.g. `"node-server"`).
|
|
82
|
+
|
|
83
|
+
## Usage
|
|
84
|
+
|
|
85
|
+
Install the package:
|
|
86
|
+
|
|
87
|
+
```bash
|
|
88
|
+
pnpm add @powerlines/plugin-nitro
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
Register the plugin in `powerlines.config.ts`:
|
|
92
|
+
|
|
93
|
+
```ts
|
|
94
|
+
import { defineConfig } from "powerlines/config";
|
|
95
|
+
import { plugin as nitro } from "@powerlines/plugin-nitro";
|
|
96
|
+
|
|
97
|
+
export default defineConfig({
|
|
98
|
+
plugins: [nitro({ preset: "node-server" })],
|
|
99
|
+
nitro: { preset: "node-server" }
|
|
100
|
+
});
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
Then run the Powerlines build for your project and start the server to serve the routes locally.
|
|
104
|
+
|
|
77
105
|
## Installing
|
|
78
106
|
|
|
79
107
|
Using [pnpm](http://pnpm.io):
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-nitro",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.571",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing a Powerlines plugin for creating a server application that runs on Nitro.",
|
|
6
6
|
"repository": {
|
|
@@ -86,22 +86,22 @@
|
|
|
86
86
|
"files": ["dist/**/*"],
|
|
87
87
|
"keywords": ["nitro", "powerlines", "storm-software", "powerlines-plugin"],
|
|
88
88
|
"dependencies": {
|
|
89
|
-
"@storm-software/config-tools": "^1.190.
|
|
89
|
+
"@storm-software/config-tools": "^1.190.154",
|
|
90
90
|
"@stryke/cli": "^0.13.90",
|
|
91
91
|
"@stryke/convert": "^0.7.47",
|
|
92
92
|
"@stryke/fs": "^0.33.118",
|
|
93
93
|
"@stryke/path": "^0.29.43",
|
|
94
94
|
"defu": "^6.1.7",
|
|
95
95
|
"nitro": "3.0.260429-beta",
|
|
96
|
-
"powerlines": "^0.47.
|
|
96
|
+
"powerlines": "^0.47.217"
|
|
97
97
|
},
|
|
98
98
|
"devDependencies": {
|
|
99
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
99
|
+
"@powerlines/plugin-plugin": "^0.12.630",
|
|
100
100
|
"@types/node": "^25.9.9"
|
|
101
101
|
},
|
|
102
102
|
"publishConfig": { "access": "public" },
|
|
103
103
|
"main": "./dist/index.cjs",
|
|
104
104
|
"module": "./dist/index.mjs",
|
|
105
105
|
"types": "./dist/index.d.cts",
|
|
106
|
-
"gitHead": "
|
|
106
|
+
"gitHead": "bb4e1f2b32a8bb9d20559ca7c3df3a2f30a0d14e"
|
|
107
107
|
}
|