Skip to content

Commit

Permalink
Improve setup instructions (#825)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
deivid-rodriguez authored Mar 5, 2024
1 parent 7e6557e commit 6d7e05c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`

Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "[email protected]"
}

0 comments on commit 6d7e05c

Please sign in to comment.