@pipelex/create-method-app 0.32.1 → 0.35.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 CHANGED
@@ -10,7 +10,7 @@ make -C my-app serve
10
10
 
11
11
  The first command writes the [`webapp-js`](https://github.com/Pipelex/pipelex-sdk/tree/main/method-apps/webapp-js) template of the [method-app family](https://github.com/Pipelex/pipelex-sdk/tree/main/method-apps), the `method-apps/` directory of `Pipelex/pipelex-sdk`, into `my-app/`, commits it as it came, and runs the copy's own `make create`, which scaffolds the method, names the project after it and runs `make all`. The second starts the dev server in the background, proves that the page answers, and prints its URL; `make stop` stops it. `make dev` runs the same server in the foreground instead.
12
12
 
13
- `--method` takes a `.mthds` file or a directory of them, a method id from your organization's catalog (`mt_…`), or a published package address (`github.com/Pipelex/methods/text_stats@v0.1.1`). A path is read from where you typed the command.
13
+ `--method` takes a `.mthds` file or a directory of them, a method id from your organization's catalog (`mt_…`, or `mt_…@<version>` and `mt_…@draft` to pin a version or run the draft), or a published package address (`github.com/Pipelex/methods/text_stats@v0.1.1`). A path is read from where you typed the command.
14
14
 
15
15
  ## What it needs
16
16
 
package/lib/args.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * The command line:
3
3
  *
4
- * create-method-app <dir> --method <bundle | mt_… | address> [create options]
4
+ * create-method-app <dir> --method <bundle | mt_…[@<version>|@draft] | address> [create options]
5
5
  * [--template <name>] [--no-create] [--no-git] [--quiet]
6
6
  *
7
7
  * Each create option is a flag named after its make variable, taking its value
@@ -13,7 +13,7 @@
13
13
  import { Verdict } from "./verdict.mjs";
14
14
 
15
15
  export const USAGE =
16
- "usage: npm create @pipelex/method-app@latest <dir> -- --method <path/to/bundle | mt_… | github.com/owner/repo[/package][@tag]> " +
16
+ "usage: npm create @pipelex/method-app@latest <dir> -- --method <path/to/bundle | mt_…[@<version>|@draft] | github.com/owner/repo[/package][@tag]> " +
17
17
  "[--name <package>] [--title <title>] [--description <text>] [--pipe <pipe_code>] " +
18
18
  "[--author-name <name>] [--author-email <email>] [--repo-url <url>] [--license <mit|proprietary|spdx>] " +
19
19
  "[--license-holder <holder>] [--license-year <year>] [--dry-run] [--method-name <dir-name>] [--label <label>] " +
package/lib/main.mjs CHANGED
@@ -287,7 +287,7 @@ async function create(argv, d, say, state) {
287
287
  if (!args.noCreate && args.values[table.required] === undefined) {
288
288
  throw Verdict.refused(
289
289
  "no-method",
290
- "pass --method with a .mthds file or a directory of them, a catalog id (mt_…) or a package address (github.com/owner/repo[/package][@tag]), or --no-create to write the template alone",
290
+ "pass --method with a .mthds file or a directory of them, a catalog id (mt_…, mt_…@<version> or mt_…@draft) or a package address (github.com/owner/repo[/package][@tag]), or --no-create to write the template alone",
291
291
  );
292
292
  }
293
293
  if (!args.noCreate && !d.env.PIPELEX_API_KEY?.trim()) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pipelex/create-method-app",
3
- "version": "0.32.1",
3
+ "version": "0.35.0",
4
4
  "description": "Start a Pipelex method app: npm create @pipelex/method-app@latest my-app -- --method <bundle | mt_… | address>",
5
5
  "keywords": [
6
6
  "pipelex",
Binary file