@powerlines/plugin-nodejs 0.1.626 → 0.1.627

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.
Files changed (2) hide show
  1. package/README.md +30 -1
  2. package/package.json +8 -8
package/README.md CHANGED
@@ -51,7 +51,7 @@ This package is part of the <b>🔌 Powerlines</b> monorepo. Powerlines is the "
51
51
 
52
52
  # Powerlines - Node.js Plugin
53
53
 
54
- A package containing a Powerlines plugin for building a React application.
54
+ A package containing a Powerlines plugin for building a Node.js application.
55
55
 
56
56
  <!-- START doctoc -->
57
57
  <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
@@ -74,6 +74,35 @@ A package containing a Powerlines plugin for building a React application.
74
74
 
75
75
  <!-- END doctoc -->
76
76
 
77
+ ## Features
78
+
79
+ - Builds a Node.js application through the Powerlines plugin pipeline.
80
+ - Loads environment files into the build via `env` settings.
81
+ - Applies Babel transforms via `babel` settings.
82
+ - Ships shared components for Node.js projects.
83
+
84
+ ## Usage
85
+
86
+ Install the package:
87
+
88
+ ```bash
89
+ pnpm add @powerlines/plugin-nodejs
90
+ ```
91
+
92
+ Register the plugin in `powerlines.config.ts`:
93
+
94
+ ```ts
95
+ import { defineConfig } from "powerlines/config";
96
+ import { plugin as nodejs } from "@powerlines/plugin-nodejs";
97
+
98
+ export default defineConfig({
99
+ plugins: [nodejs()],
100
+ env: { mode: "production" }
101
+ });
102
+ ```
103
+
104
+ Then run the Powerlines build for your project.
105
+
77
106
  ## Installing
78
107
 
79
108
  Using [pnpm](http://pnpm.io):
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-nodejs",
3
- "version": "0.1.626",
3
+ "version": "0.1.627",
4
4
  "type": "module",
5
5
  "description": "A package containing a Powerlines plugin for building a Node.js application.",
6
6
  "repository": {
@@ -120,19 +120,19 @@
120
120
  "@alloy-js/core": "^0.24.1",
121
121
  "@alloy-js/typescript": "^0.24.0",
122
122
  "@power-plant/alloy-js": "^0.0.95",
123
- "@powerlines/plugin-alloy": "^0.26.314",
124
- "@powerlines/plugin-babel": "^0.13.213",
125
- "@powerlines/plugin-env": "^0.16.425",
126
- "@storm-software/config-tools": "^1.190.151",
123
+ "@powerlines/plugin-alloy": "^0.26.315",
124
+ "@powerlines/plugin-babel": "^0.13.214",
125
+ "@powerlines/plugin-env": "^0.16.426",
126
+ "@storm-software/config-tools": "^1.190.154",
127
127
  "@stryke/string-format": "^0.17.58",
128
128
  "defu": "^6.1.7",
129
- "powerlines": "^0.47.216"
129
+ "powerlines": "^0.47.217"
130
130
  },
131
131
  "devDependencies": {
132
- "@powerlines/plugin-plugin": "^0.12.629",
132
+ "@powerlines/plugin-plugin": "^0.12.630",
133
133
  "@types/node": "^25.9.9"
134
134
  },
135
135
  "publishConfig": { "access": "public" },
136
136
  "types": "./dist/index.d.cts",
137
- "gitHead": "75efa1cc4eb8bc90093202669065576aa70fbfef"
137
+ "gitHead": "bb4e1f2b32a8bb9d20559ca7c3df3a2f30a0d14e"
138
138
  }