From 44dd744f0a062012a40eb38326a40f3e3566cb5a Mon Sep 17 00:00:00 2001 From: cyfung1031 <44498510+cyfung1031@users.noreply.github.com> Date: Wed, 11 Oct 2023 08:34:35 +0900 Subject: [PATCH] docs: rearranged cli/runtime related sections (#6275) * docs: rearranged cli/runtime related sections * docs: update README.md for the updated docs path * Updates * Rearrange * Rearrange * Add files * readme --------- Co-authored-by: Colin McDonnell --- README.md | 4 +- docs/{templates.md => cli/bun-create.md} | 34 +-- docs/cli/create.md | 256 ----------------------- docs/cli/{bun-init.md => init.md} | 28 ++- docs/cli/install.md | 20 +- docs/index.md | 9 +- docs/installation.md | 52 +++++ docs/nav.ts | 12 +- 8 files changed, 110 insertions(+), 305 deletions(-) rename docs/{templates.md => cli/bun-create.md} (92%) delete mode 100644 docs/cli/create.md rename docs/cli/{bun-init.md => init.md} (55%) diff --git a/README.md b/README.md index a3de101646..b30fed5096 100644 --- a/README.md +++ b/README.md @@ -93,8 +93,8 @@ bun upgrade --canary - [`bun run`](https://bun.sh/docs/cli/run) - [`bun install`](https://bun.sh/docs/cli/install) - [`bun test`](https://bun.sh/docs/cli/test) - - [`bun init`](https://bun.sh/docs/templates#bun-init) - - [`bun create`](https://bun.sh/docs/templates#bun-create) + - [`bun init`](https://bun.sh/docs/cli/init) + - [`bun create`](https://bun.sh/docs/cli/bun-create) - [`bunx`](https://bun.sh/docs/cli/bunx) - Runtime - [Runtime](https://bun.sh/docs/runtime/index) diff --git a/docs/templates.md b/docs/cli/bun-create.md similarity index 92% rename from docs/templates.md rename to docs/cli/bun-create.md index 5061b0aff6..c5cc602b62 100644 --- a/docs/templates.md +++ b/docs/cli/bun-create.md @@ -1,36 +1,12 @@ -## `bun init` - -Scaffold an empty project with the interactive `bun init` command. - -```bash -$ bun init -bun init helps you get started with a minimal project and tries to -guess sensible defaults. Press ^C anytime to quit. - -package name (quickstart): -entry point (index.ts): - -Done! A package.json file was saved in the current directory. - + index.ts - + .gitignore - + tsconfig.json (for editor auto-complete) - + README.md - -To get started, run: - bun run index.ts -``` - -Press `enter` to accept the default answer for each prompt, or pass the `-y` flag to auto-accept the defaults. - -## `bun create` - {% callout %} **Note** — You don’t need `bun create` to use Bun. You don’t need any configuration at all. This command exists to make getting started a bit quicker and easier. {% /callout %} Template a new Bun project with `bun create`. This is a flexible command that can be used to create a new project with a `create-