Separate files, add wrapper and write taks to wrap them after compilation.
Lint and fix all files. Get files concatenating, minifying, wrapping and passing tests.