Salesforce.com Lightning Development Part 1 - external libraries
tl;dr
Use static resources to share utility javascript throughout your lightning components. Look at the code samples to see how to build a logging utility to avoid using console.log
in your code and easily turn logs off in production without component code changes.