diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2018-07-26 13:07:50 +1000 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-07-25 23:07:50 -0400 |
commit | 5562c36824a63634212ee0c6ad501f230a8e1133 (patch) | |
tree | 1646a6fc7c783ab8a9f66db73bd4d6d2da5428d8 /tools | |
parent | 180170d860921f93a7e28e57b8d0dae84f8076ba (diff) |
Remove msg_generated hack (#409)
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/flatbufferjs_hack.py | 26 | ||||
-rwxr-xr-x | tools/format.py | 2 |
2 files changed, 1 insertions, 27 deletions
diff --git a/tools/flatbufferjs_hack.py b/tools/flatbufferjs_hack.py deleted file mode 100755 index 163a1893c..000000000 --- a/tools/flatbufferjs_hack.py +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/env python -""" -gn can only run python scripts. - -Generates flatbuffer TypeScript code. -""" -import subprocess -import sys -import os -import shutil -import util - -# TODO(ry) Ideally flatc output files should be written into target_gen_dir, but -# its difficult to get this working in a way that parcel can resolve their -# location. (Parcel does not support NODE_PATH.) Therefore this hack: write the -# generated msg_generated.ts outputs into the js/ folder, and we check them into -# the repo. Hopefully this hack can be removed at some point. If msg.fps is -# changed, commit changes to the generated JS file. - -src = sys.argv[1] -dst = sys.argv[2] -stamp_file = sys.argv[3] - -shutil.copyfile(src, dst) - -util.touch(stamp_file) diff --git a/tools/format.py b/tools/format.py index 2bbc95bed..c25a78051 100755 --- a/tools/format.py +++ b/tools/format.py @@ -23,7 +23,7 @@ run(["yapf", "-i"] + find_exts("tools/", ".py") + find_exts("build_extra", ".py")) run(["node", prettier, "--write"] + find_exts("js/", ".js", ".ts") + - ["tsconfig.json", "tslint.json"]) + ["rollup.config.js", "tsconfig.json", "tslint.json"]) # Set RUSTFMT_FLAGS for extra flags. rustfmt_extra_args = [] |