create-omniflow-plugin 0.2.0 → 0.3.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 +29 -7
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -184,14 +184,36 @@ create-omniflow-plugin
|
|
|
184
184
|
|
|
185
185
|
## Publish to npm
|
|
186
186
|
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
```
|
|
192
|
-
3. Publish:
|
|
187
|
+
### One-time setup
|
|
188
|
+
|
|
189
|
+
1. Create an npm account at [npmjs.com/signup](https://www.npmjs.com/signup) if you don't have one.
|
|
190
|
+
2. Log in from your terminal:
|
|
193
191
|
```sh
|
|
194
|
-
npm
|
|
192
|
+
npm login
|
|
195
193
|
```
|
|
196
194
|
|
|
195
|
+
### Publish a release
|
|
196
|
+
|
|
197
|
+
```sh
|
|
198
|
+
# Build
|
|
199
|
+
npm run build
|
|
200
|
+
|
|
201
|
+
# Publish (first time — public by default for unscoped packages)
|
|
202
|
+
npm publish
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
The package will be live at [npmjs.com/package/create-omniflow-plugin](https://www.npmjs.com/package/create-omniflow-plugin) and users can run `npx create-omniflow-plugin`.
|
|
206
|
+
|
|
197
207
|
The `files` field in `package.json` ensures only `dist/` is included in the published package.
|
|
208
|
+
|
|
209
|
+
### Future releases
|
|
210
|
+
|
|
211
|
+
```sh
|
|
212
|
+
# Bump version (patch/minor/major)
|
|
213
|
+
npm version patch # 0.3.0 → 0.3.1
|
|
214
|
+
npm version minor # 0.3.0 → 0.4.0
|
|
215
|
+
npm version major # 0.3.0 → 1.0.0
|
|
216
|
+
|
|
217
|
+
# Build and publish
|
|
218
|
+
npm run build && npm publish
|
|
219
|
+
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-omniflow-plugin",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Scaffold a new OmniFlow plugin — Java ingestor/action + optional Next.js micro UI",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"start": "node dist/index.js"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@clack/prompts": "1.
|
|
17
|
+
"@clack/prompts": "1.5.0",
|
|
18
18
|
"picocolors": "1.1.1"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|