@pipelex/create-method-app 0.4.0 → 0.5.1
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 +3 -1
- package/lib/verdict.mjs +4 -2
- package/package.json +1 -1
- package/templates/webapp-js.pack +0 -0
package/README.md
CHANGED
|
@@ -56,7 +56,7 @@ The pristine commit reads `Start from Pipelex/pipelex-method-apps/webapp-js <ver
|
|
|
56
56
|
|
|
57
57
|
## What it prints
|
|
58
58
|
|
|
59
|
-
A run ends with one verdict line, the last line
|
|
59
|
+
A run ends with one verdict line, the last line it prints on standard output, whose first word is stable:
|
|
60
60
|
|
|
61
61
|
| Verdict | Meaning |
|
|
62
62
|
| --------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
@@ -72,6 +72,8 @@ A run ends with one verdict line, the last line of its output, whose first word
|
|
|
72
72
|
|
|
73
73
|
Before the verdict come the warnings `make create` printed, each once, and the git outcome. The exit code is 0 for `created` and `copied` and 1 otherwise, but the verdict is the line to read.
|
|
74
74
|
|
|
75
|
+
Everything the initializer prints goes to standard output, `make create`'s output included when `--quiet` is not given. Under `npm create`, a run that exits 1 is followed by npm's own `npm error` lines on standard error, so read the verdict from standard output rather than from the last line of everything printed. `npm create --loglevel=silent @pipelex/method-app@latest …` removes npm's lines and leaves the initializer's alone.
|
|
76
|
+
|
|
75
77
|
A Python template gets its own initializer, run with `uvx create-pipelex-method-app`, and this one refuses it with `refused: other-ecosystem`.
|
|
76
78
|
|
|
77
79
|
## License
|
package/lib/verdict.mjs
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The verdicts. A run ends with one line whose first word is stable —
|
|
3
3
|
* `created`, `copied`, `refused: <why>` or `failed: <what>` — and that line is
|
|
4
|
-
* the last one printed
|
|
5
|
-
*
|
|
4
|
+
* the last one printed. Everything goes to standard output, and a caller reads
|
|
5
|
+
* the verdict from its last line, because under `npm create` npm prints its own
|
|
6
|
+
* `npm error` lines on standard error after a run that exits 1. The exit code
|
|
7
|
+
* is presentation: 0 for `created` and `copied`, 1 otherwise.
|
|
6
8
|
*
|
|
7
9
|
* created <dir> the copy, the git outcome, and a green make create
|
|
8
10
|
* copied <dir> --no-create or --dry-run: the copy and the git outcome only
|
package/package.json
CHANGED
package/templates/webapp-js.pack
CHANGED
|
Binary file
|