From bbc1bcbed125e4aeacac0c374f717f65adb838ea Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Thu, 14 Oct 2021 18:55:41 -0700 Subject: [PATCH] Support local templates --- README.md | 161 ++++++++++++++++++++++++++-- examples/README.md | 109 ------------------- examples/react/package.json | 8 +- misctools/publish-examples.js | 27 +++-- src/cli/create_command.zig | 193 +++++++++++++++++++++++++++++++--- src/copy_file.zig | 50 +++++++++ src/string_immutable.zig | 8 ++ src/walker_skippable.zig | 147 ++++++++++++++++++++++++++ 8 files changed, 558 insertions(+), 145 deletions(-) delete mode 100644 examples/README.md create mode 100644 src/copy_file.zig create mode 100644 src/walker_skippable.zig diff --git a/README.md b/README.md index f0b8df9d6f..46ef4f8b3a 100644 --- a/README.md +++ b/README.md @@ -31,8 +31,8 @@ npm install -g bun-cli In your project folder root (where `package.json` is): ```bash -npm install -D bun-framework-next -bun bun --use next +bun create next app +cd app bun ``` @@ -77,17 +77,10 @@ If `public/index.html` exists, it becomes the default page instead of a 404 page #### Using Bun with Create React App -To use Bun with `create-react-app`, there are two changes you will need to make in `public/index.html`: - -1. Replace `%PUBLIC_URL%` with `/` -2. Insert `