Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
importmap fix (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeGEINE authored Jul 22, 2024
1 parent 590f9ee commit ba6f2b6
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 11 deletions.
2 changes: 1 addition & 1 deletion app/assets/config/manifest.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//= link_tree ../images
//= link_tree ../builds
//= link_tree ../../javascript .js
//= link_tree ../../../vendor/javascript .js
//= link_tree ../builds
25 changes: 17 additions & 8 deletions config/importmap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,24 @@
# Pin npm packages by running ./bin/importmap

pin 'application'
pin '@hotwired/turbo-rails', to: 'turbo.min.js'
pin '@hotwired/stimulus', to: 'stimulus.min.js'
pin '@hotwired/stimulus-loading', to: 'stimulus-loading.js'
pin_all_from 'app/javascript/controllers', under: 'controllers'
# pin 'bootstrap', to: 'bootstrap.min.js'
pin 'bootstrap', to: 'https://ga.jspm.io/npm:[email protected]/dist/js/bootstrap.esm.js'
pin '@popperjs/core', to: 'https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js'

# can not found in registry
# pin 'application'
# pin_all_from 'app/javascript/controllers', under: 'controllers'

# # can not found in registry
# pin '@hotwired/stimulus-loading', to: 'stimulus-loading.js'

pin '@hotwired/stimulus', to: '@hotwired--stimulus.js' # @3.2.2
pin '@stimulus/webpack-helpers', to: '@stimulus--webpack-helpers.js' # @2.0.0
pin '@hotwired/turbo', to: '@hotwired--turbo.js' # @8.0.4
pin '@rails/actioncable/src', to: '@rails--actioncable--src.js' # @7.1.3
pin '@hotwired/turbo-rails', to: '@hotwired--turbo-rails.js' # @8.0.4
pin 'bootstrap' # @5.3.3
pin '@popperjs/core', to: '@popperjs--core.js' # @2.11.8
# pin '@hotwired/stimulus', to: 'stimulus.min.js' # @3.2.2
# # pin '@stimulus/webpack-helpers', to: '@stimulus--webpack-helpers.js' # @2.0.0
# # pin '@hotwired/turbo', to: '@hotwired--turbo.js' # @8.0.4
# # pin '@rails/actioncable/src', to: '@rails--actioncable--src.js' # @7.1.3
# pin '@hotwired/turbo-rails', to: 'turbo.min.js' # @8.0.4
# pin 'bootstrap', to: 'bootstrap.min.js' # @5.3.3
# # pin '@popperjs/core', to: '@popperjs--core.js' # @2.11.8
4 changes: 2 additions & 2 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ services:
volumes:
- .:/rails
ports:
- 3000:3000
- 80:3000
- 12345:12345
depends_on:
- postgres
Expand Down Expand Up @@ -44,4 +44,4 @@ services:

volumes:
postgres-data:
redis:
redis:

0 comments on commit ba6f2b6

Please sign in to comment.