From 2663473a72d123d66d4529e2ddbdebac80622dfc Mon Sep 17 00:00:00 2001 From: Ronan Berder Date: Thu, 8 May 2025 00:19:23 +0800 Subject: [PATCH] Temporarily using github paths for npm/npx --- docs/src/installation.njk | 2 +- packages/cli/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/installation.njk b/docs/src/installation.njk index 9e31047..6a94bba 100644 --- a/docs/src/installation.njk +++ b/docs/src/installation.njk @@ -97,7 +97,7 @@ toc:

If you're using Nunjucks or Jinja, you can use the CLI to install the CSS and macros for any of the complex components(e.g. Dialog). It will copy the JS and `.html.jinja or .njk macros into your code.

For example, to add the Dialog component, run:

- {% set code %}npx hunvreus/basecoat add dialog{% endset %} + {% set code %}npx github:hunvreus/basecoat/packages/cli add dialog{% endset %} {{ code_block(code, "bash") }}

You will be asked to confirm the template engine and destination directory for the Javascript and macros.

diff --git a/packages/cli/package.json b/packages/cli/package.json index 4d4a460..7a5bbf3 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -4,7 +4,7 @@ "description": "CLI for Basecoat UI components", "type": "module", "bin": { - "basecoat": "./index.js" + "add": "./index.js" }, "dependencies": { "commander": "^13.1.0",