| #!/usr/bin/env python3 |
| # Copyright 2019 The ChromiumOS Authors |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| """Build the library deliverables.""" |
| |
| import sys |
| |
| import libdot |
| |
| |
| def get_parser(): |
| """Get a command line parser.""" |
| parser = libdot.ArgumentParser( |
| description=__doc__, |
| ) |
| return parser |
| |
| |
| def main(argv): |
| """The main func!""" |
| parser = get_parser() |
| _opts = parser.parse_args(argv) |
| |
| # TODO(vapier): Move more logic out of package.json here, maybe? |
| libdot.node.run(["rollup", "-c"], cwd=libdot.DIR) |
| |
| |
| if __name__ == "__main__": |
| sys.exit(main(sys.argv[1:])) |