Skip to content

Commit 47d4cb4

Browse files
committed
Migrate to npm
Additionally: - Add cooldown to dependabot configuration - Remove tailwind ignore - Add `.node-version` for parity with `.ruby-version` - Add reference to mise tool version manager
1 parent d6e7a20 commit 47d4cb4

9 files changed

Lines changed: 1277 additions & 587 deletions

File tree

.github/dependabot.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ updates:
88
github_actions:
99
patterns:
1010
- "*"
11+
cooldown:
12+
default-days: 5
1113
- package-ecosystem: bundler
1214
directory: /
1315
schedule:
@@ -17,6 +19,8 @@ updates:
1719
bundler:
1820
patterns:
1921
- "*"
22+
cooldown:
23+
default-days: 5
2024
- package-ecosystem: npm
2125
directory: /
2226
schedule:
@@ -26,6 +30,5 @@ updates:
2630
npm:
2731
patterns:
2832
- "*"
29-
ignore:
30-
- dependency-name: "tailwindcss"
31-
versions: ">= 4.0"
33+
cooldown:
34+
default-days: 5

.github/workflows/tests.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ jobs:
2323
with:
2424
ruby-version: .ruby-version
2525
bundler-cache: true
26+
- uses: actions/setup-node@v6
27+
with:
28+
node-version-file: .node-version
29+
cache: npm
2630
- name: Run tests
2731
env:
2832
COVERAGE: true

.node-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
lts/krypton

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ignore-scripts=true

Procfile.dev

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
web: env RUBY_DEBUG_OPEN=true bin/rails server
2-
css: yarn build:css --watch
2+
css: npm run build:css -- --watch

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,10 @@ https://activeadmin-demo.onrender.com
77
## Development Setup
88

99
- Clone this repository
10-
- Install Ruby 4.0 with [rbenv](https://github.com/rbenv/rbenv)
11-
- Install Node 24 with [nodenv](https://github.com/nodenv/nodenv)
12-
- `corepack enable`
10+
- Install Ruby with [rbenv](https://github.com/rbenv/rbenv) or [mise](https://mise.jdx.dev/) (see `.ruby-version` for the required version)
11+
- Install Node with [nodenv](https://github.com/nodenv/nodenv) or [mise](https://mise.jdx.dev/) (see `.node-version` for the required version)
1312
- `bundle install`
14-
- `yarn install`
13+
- `npm install`
1514
- `bin/rails db:seed`
1615
- `bin/dev`
1716

0 commit comments

Comments
 (0)