Install script not copying js files from submodule
Opened this issue · 0 comments
andrewcsmith commented
The install script is not installing bootstrap-datetimepicker.js
. My guess is that this is because it just globs the js folder, and since there's nothing there it fails silently. I manually cloned the repo and copied over the js file and everything works fine now.
# Gemfile
...
gem 'datetimepicker-rails', github: 'zpaulovics/datetimepicker-rails', branch: 'master', submodules: true
gem 'momentjs-rails', '~> 2.9', github: 'derekprior/momentjs-rails'
...
# Shell
$ bundle exec rails generate datetimepicker_rails:install Font-Awesome
gsub app/inputs/datetime_picker_input.rb
gsub app/inputs/date_picker_input.rb
gsub app/inputs/time_picker_input.rb
icon_family: Font-Awesome
vendor assets/javascripts/pickers.js
identical vendor/assets/stylesheets/bootstrap-datetimepicker.min.css
identical vendor/assets/stylesheets/bootstrap-datetimepicker.css