I'm working on a large front end application with a medium sized team. Until now, we've been using requirejs and AMD modules to manage our ~500 file project. We've recently made the decision to migrate to commonjs and use NPM as our package manager for various reasons. Here is my question:
How do I incorporate a random, lone framework file (aka a jquery plugin) into our package.json?
For example, we use this random jquery color picker https://github.com/laktek/really-simple-color-picker/blob/master/jquery.colorPicker.min.js
However the repo on github does not have a package.json so using NPM's built in git awesomeness doesn't work. So what should I be doing instead? I've been trying to use it's 'file:../../' syntax but I think it wants me to point to a node module folder and I"m not sure how best to set that up.
Bonus Question
How do I deal with "shims", e.g. I want my views to reference "knockout" but in reality be referencing a file that itself includes knockout and adds all of our plugins and custom goodness and then re-exports knockout
Any and all help is appreciated!