Skip to content

Commit

Permalink
Use importmap-rails
Browse files Browse the repository at this point in the history
No more:
- esbuild
- yarn
- node_modules
  • Loading branch information
mrhead committed Nov 3, 2024
1 parent d0bcd6f commit 8fd66a7
Show file tree
Hide file tree
Showing 21 changed files with 8,394 additions and 260 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,7 @@ jobs:
with:
bundler-cache: true
ruby-version: 3.1
- uses: actions/setup-node@v3
with:
cache: yarn
- run: yarn install --frozen-lockfile
- run: bin/rails db:create db:schema:load
- run: bin/rails javascript:build
- run: bin/rails test
- run: bin/rails test:system
id: system
Expand Down
11 changes: 0 additions & 11 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,10 @@
/storage/*
!/storage/.keep

/node_modules
/yarn-error.log

/public/assets
.byebug_history

# Ignore master key for decrypting credentials and more.
/config/master.key
/public/packs
/public/packs-test
/node_modules
yarn-debug.log*
.yarn-integrity

/app/assets/builds/*
!/app/assets/builds/.keep

/db/*.sqlite*
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ source "https://rubygems.org"
gem "rails", "~> 7.2.0"

gem "bootsnap"
gem "jsbundling-rails"
gem "importmap-rails"
gem "propshaft"
gem "puma"
gem "sqlite3"
Expand Down
8 changes: 5 additions & 3 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,14 @@ GEM
activesupport (>= 6.1)
i18n (1.14.6)
concurrent-ruby (~> 1.0)
importmap-rails (2.0.3)
actionpack (>= 6.0.0)
activesupport (>= 6.0.0)
railties (>= 6.0.0)
io-console (0.7.2)
irb (1.14.1)
rdoc (>= 4.0.0)
reline (>= 0.4.2)
jsbundling-rails (1.3.1)
railties (>= 6.0.0)
logger (1.6.1)
loofah (2.23.1)
crass (~> 1.0.2)
Expand Down Expand Up @@ -233,7 +235,7 @@ DEPENDENCIES
byebug
capybara
faker
jsbundling-rails
importmap-rails
propshaft
puma
rails (~> 7.2.0)
Expand Down
2 changes: 0 additions & 2 deletions Procfile.dev

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ cd stimulus-search
./bin/setup
```

Start the webserver and esbuild watch process:
Start the webserver:

```
./bin/dev
Expand Down
Loading

0 comments on commit 8fd66a7

Please sign in to comment.