I have a JavaScript library written for my project. It is just that - helper library without configuration. I don't like the idea of empty .module
file loading each time. On the other hand, I need it to be versioned and I need to be able to require it in other modules, with version specification. Libraries API looks like a bit of overkill as my script is from the ground written for Drupal and is no way "external" - and using empty .module
file would be easier and faster anyway.
So, what's the best practice to include JS-only code?
How to include a JavaScript library, with CSS, in Drupal 7 without using a module? is about JavaScript needed by theme, so it looks similar but is unrelated to my question.