Skip to content

docs(publishing): scaffold a package with npm create malloy-package - #332

Merged
mtoy-googly-moogly merged 2 commits into
malloydata:mainfrom
mlennie:monty/document-create-malloy-package
Jul 24, 2026
Merged

docs(publishing): scaffold a package with npm create malloy-package#332
mtoy-googly-moogly merged 2 commits into
malloydata:mainfrom
mlennie:monty/document-create-malloy-package

Conversation

@mlennie

@mlennie mlennie commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

The Quick Start opened by asking the reader to hand-build a package directory and a manifest. The scaffolder does that for them, registers the package so the server actually serves it, and sets up the workspace around it, so it belongs first, with the by-hand layout kept underneath for anyone who wants it.

Both the npm create and npx forms are shown, because they parse options differently and getting it wrong fails in a way a reader cannot reason about: npm create treats anything before a -- as one of its own options, so the separator is required, while npx forwards flags untouched and counts a -- as an extra argument. Verified against both entry points rather than assumed.

Both require Node, which is worth stating plainly on a page a non-developer may land on.

The framing points at "your own data" rather than a specific file type: --data seeds the starter model from a local CSV, Parquet, or Excel file, and a note says a package's model can also point at a database connection the config defines, so the same workspace serves a warehouse. This matches the same rewording on the Publisher README (malloydata/publisher#910).

The merge-order caveat this PR originally carried is now cleared: create-malloy-package is published to npm (as is @malloy-publisher/skills, which it installs), and I verified the command scaffolds a real package and copies the skills end to end from the live registry.

The Quick Start opened by asking the reader to hand-build a package directory
and a manifest. The scaffolder does that for them, registers the package so the
server actually serves it, and sets up the workspace around it, so it belongs
first, with the by-hand layout kept underneath for anyone who wants it.

Both the `npm create` and `npx` forms are shown, because they parse options
differently and getting it wrong fails in a way a reader cannot reason about:
`npm create` treats anything before a `--` as one of its own options, so the
separator is required, while `npx` forwards flags untouched and counts a `--` as
an extra argument. Verified against both entry points rather than assumed.

Both require Node, which is worth stating plainly on a page a non-developer may
land on.

Do not merge before `create-malloy-package` is published to npm: it is
unregistered today, so this page would tell readers to run a name anyone can
take.

Signed-off-by: Monty Lennie <montylennie@gmail.com>
@mlennie
mlennie force-pushed the monty/document-create-malloy-package branch from b487cfe to 46ae69a Compare July 24, 2026 15:34
Match the same rewording applied to the Publisher README: say "your own data"
rather than "a CSV or Parquet file", keep the accurate `--data` file list (CSV,
Parquet, Excel), and add that a package's model can point at a database
connection the config defines, so the same workspace serves a warehouse.

Signed-off-by: Monty Lennie <montylennie@gmail.com>
@mtoy-googly-moogly
mtoy-googly-moogly merged commit 6ac9220 into malloydata:main Jul 24, 2026
2 checks passed
mlennie added a commit to mlennie/malloydata.github.io that referenced this pull request Jul 24, 2026
The scaffolder was republished as @malloy-publisher/create-malloy-package and the
old unscoped create-malloy-package was unpublished, so the quick start must show
`npm create @malloy-publisher/malloy-package` / `npx @malloy-publisher/create-malloy-package`.
The unscoped command now 404s. Follow-up to the merged malloydata#332.

Signed-off-by: Monty Lennie <montylennie@gmail.com>
mtoy-googly-moogly pushed a commit that referenced this pull request Jul 24, 2026
The scaffolder was republished as @malloy-publisher/create-malloy-package and the
old unscoped create-malloy-package was unpublished, so the quick start must show
`npm create @malloy-publisher/malloy-package` / `npx @malloy-publisher/create-malloy-package`.
The unscoped command now 404s. Follow-up to the merged #332.

Signed-off-by: Monty Lennie <montylennie@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants