def get_deps_js(self):
    # Path that all dependencies will be relative from
    base_path = self.build_env.root_path
    if self.base_js_path:
      base_path = self.base_js_path

    lines = [
        '// Automatically generated by anvil-build - do not modify',
        '',
        ]

    # Write in path order (to make the file easier to debug)
    src_paths = self.dep_files.keys()
    src_paths.sort()
    for src_path in src_paths:
      dep_file = self.dep_files[src_path]
      rel_path = os.path.relpath(dep_file.src_path, base_path)
      rel_path = anvil.util.strip_build_paths(rel_path)
      lines.append('goog.addDependency(\'%s\', %s, %s);' % (
          anvil.util.ensure_forwardslashes(rel_path),
          dep_file.provides, dep_file.requires))
    return u'\n'.join(lines)
Generates the contents of a deps.js file from the dependency graph.
dataset/ETHPy150Open google/anvil-build/anvil/rules/closure_js_rules.py/JsDependencyGraph.get_deps_js