init importmap
This commit is contained in:
parent
82d4ff0284
commit
34a5e86e2f
6 changed files with 15 additions and 1 deletions
2
Gemfile
2
Gemfile
|
@ -126,3 +126,5 @@ group :test do
|
|||
gem 'rswag-specs'
|
||||
gem 'hashie', '~> 3.4.6', require: false # https://github.com/westfieldlabs/apivore/issues/114
|
||||
end
|
||||
|
||||
gem "importmap-rails", "~> 1.1"
|
||||
|
|
|
@ -255,6 +255,9 @@ GEM
|
|||
i18n-spec (0.6.0)
|
||||
iso
|
||||
ice_cube (0.16.4)
|
||||
importmap-rails (1.1.5)
|
||||
actionpack (>= 6.0.0)
|
||||
railties (>= 6.0.0)
|
||||
inherited_resources (1.13.1)
|
||||
actionpack (>= 5.2, < 7.1)
|
||||
has_scope (~> 0.6)
|
||||
|
@ -628,6 +631,7 @@ DEPENDENCIES
|
|||
i18n-js (~> 3.0.0.rc8)
|
||||
i18n-spec
|
||||
ice_cube
|
||||
importmap-rails (~> 1.1)
|
||||
inherited_resources
|
||||
jquery-rails
|
||||
kaminari
|
||||
|
@ -686,4 +690,4 @@ DEPENDENCIES
|
|||
whenever
|
||||
|
||||
BUNDLED WITH
|
||||
2.4.3
|
||||
2.4.5
|
||||
|
|
1
app/javascript/application.js
Normal file
1
app/javascript/application.js
Normal file
|
@ -0,0 +1 @@
|
|||
// Configure your import map in config/importmap.rb. Read more: https://github.com/rails/importmap-rails
|
4
bin/importmap
Executable file
4
bin/importmap
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env ruby
|
||||
|
||||
require_relative "../config/application"
|
||||
require "importmap/commands"
|
3
config/importmap.rb
Normal file
3
config/importmap.rb
Normal file
|
@ -0,0 +1,3 @@
|
|||
# Pin npm packages by running ./bin/importmap
|
||||
|
||||
pin "application", preload: true
|
0
vendor/javascript/.keep
vendored
Normal file
0
vendor/javascript/.keep
vendored
Normal file
Loading…
Reference in a new issue