Closed iainbeeston closed 9 years ago
It's tough one. I don't think codemirror can do anything on their side except moving their distribution to single directory. Currently we skip all assets that are outside directory we recognize as main one (in case of codemirror it's lib, because main assets are "lib/codemirror.js", "lib/codemirror.css").
I thought about including for each .gem original, not touched files in location like ./vendor
instead app/assets/...
, and exclude it from default load path, so you could do it manually:
config.assets.paths << RailsAssetsCodeMirror.source_load_path
But this idea needs more discussion.
For now the only solution for you is to paste templates manually in repo..
In our current project, 3/13 packages had this problem: font-awesome, pickadate, typeahead.js.
Due to time constraints and backward-compatibility reasons we won't implement it. Sorry!
I'm using codemirror via rails assets, but there are a number of assets that are in the bower package which are missing in the rails-assets version.
In the bower package I can see:
But in rails assets there is only:
Looks like everything in /mode, /addon and /theme has been missed.
I'm not sure exactly why that is, and I appreciate that codemirror has an unusual directory structure, but is there anything I can do (on the codemirror side perhaps) to help these extra assets get picked up by rails assets?