From 4343402a04a31c7ec0f02fda296669112fed0833 Mon Sep 17 00:00:00 2001 From: Marc Cataford Date: Thu, 13 Apr 2023 22:02:37 -0400 Subject: [PATCH] chore: add bootstrap script to facilitate startup (#20) * chore: add bootstrap script to facilitate startup * docs: mention bootstrap in README --- README.md | 5 +++-- script/bootstrap | 3 +++ 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 script/bootstrap diff --git a/README.md b/README.md index 6a6dcb7..447f6c0 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,7 @@ can peek at the opinions baked into this [here](./DESIGN_DECISIONS.md). ## Development -This uses `corepack`, which comes bundled with `node>=16` to manage which Yarn version to use. +This uses [Corepack](https://github.com/nodejs/corepack), which comes bundled with `node>=16` to manage which Yarn version to use. -To get started, just `corepack enable` before using `yarn` commands. +To get started, just `corepack enable` before using `yarn` commands. You can also jump in by running `. +script/bootstrap`, which will select the right version of Node, enable Corepack and install devDependencies. diff --git a/script/bootstrap b/script/bootstrap new file mode 100644 index 0000000..0163eed --- /dev/null +++ b/script/bootstrap @@ -0,0 +1,3 @@ +#!/usr/bin/bash + +nvm use && corepack enable && yarn