Build the deps tree.
Implement the resolving of closure dependencies and writing them to a file.