From 9c384c9d04dc4405055b46404e883f5c218c0659 Mon Sep 17 00:00:00 2001 From: David Rodriguez Date: Mon, 5 Feb 2024 18:36:37 +0100 Subject: [PATCH] Improve setup instructions I found that it was missing that you need `yarn` installed, and `yarn install` run in order to get started. To make `yarn` available, I added a `packageManager` field with latest yarn 1.x version to `package.json` and included `corepack enable` so that this field is respected and nodejs automatically installs yarn when first run. I also added `yarn install` to setup instructions. --- README.md | 2 ++ package.json | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 59f8d3a7..221351f7 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,9 @@ https://activeadmin-demo.onrender.com - Clone this repository - Install Ruby 3 with [rbenv](https://github.com/rbenv/rbenv) - Install Node 20 with [nodenv](https://github.com/nodenv/nodenv) +- `corepack enable` - `bundle install` +- `yarn install` - `bin/rails db:seed` - `bin/dev` diff --git a/package.json b/package.json index 6c8b7acd..96f6ebdf 100644 --- a/package.json +++ b/package.json @@ -7,5 +7,6 @@ }, "scripts": { "build:css": "tailwindcss -i ./app/assets/stylesheets/active_admin.css -o ./app/assets/builds/active_admin.css --minify -c tailwind-active_admin.config.js" - } + }, + "packageManager": "yarn@1.22.19" }