From 8693d0e0a7d7ce1e4533aef30c1a735276e3009b Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Tue, 11 Jun 2019 18:03:05 -0400 Subject: [PATCH] Split up tools/sync_third_party This is just encoding my actual workflow; not suggesting that this workflow is ideal. Previously I would edit sync_third_party.py each time I ran it. --- tools/{sync_third_party.py => sync_gclient.py} | 8 ++------ tools/sync_node_modules.py | 6 ++++++ tools/sync_python_modules.py | 6 ++++++ tools/sync_rust_crates.py | 8 ++++++++ 4 files changed, 22 insertions(+), 6 deletions(-) rename tools/{sync_third_party.py => sync_gclient.py} (66%) create mode 100755 tools/sync_node_modules.py create mode 100755 tools/sync_python_modules.py create mode 100755 tools/sync_rust_crates.py diff --git a/tools/sync_third_party.py b/tools/sync_gclient.py similarity index 66% rename from tools/sync_third_party.py rename to tools/sync_gclient.py index 8557c7b5..5da30135 100755 --- a/tools/sync_third_party.py +++ b/tools/sync_gclient.py @@ -1,17 +1,13 @@ #!/usr/bin/env python # Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. -# Run this script if you are changing Deno's dependencies. +# Run this script if you are changing //gclient_config.py # To update the deno_third_party git repo after running this, try the following: # cd third_party -# find . -type f | grep -v "\.git" | \ +# find v8 -type f | grep -v "\.git" | \ # xargs -I% git add -f --no-warn-embedded-repo "%" import third_party import util util.enable_ansi_colors() - -third_party.run_yarn() -third_party.run_cargo() -third_party.run_pip() third_party.run_gclient_sync() diff --git a/tools/sync_node_modules.py b/tools/sync_node_modules.py new file mode 100755 index 00000000..5c5705d9 --- /dev/null +++ b/tools/sync_node_modules.py @@ -0,0 +1,6 @@ +#!/usr/bin/env python +# Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. +import third_party +import util +util.enable_ansi_colors() +third_party.run_yarn() diff --git a/tools/sync_python_modules.py b/tools/sync_python_modules.py new file mode 100755 index 00000000..0a40740f --- /dev/null +++ b/tools/sync_python_modules.py @@ -0,0 +1,6 @@ +#!/usr/bin/env python +# Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. +import third_party +import util +util.enable_ansi_colors() +third_party.run_pip() diff --git a/tools/sync_rust_crates.py b/tools/sync_rust_crates.py new file mode 100755 index 00000000..65820754 --- /dev/null +++ b/tools/sync_rust_crates.py @@ -0,0 +1,8 @@ +#!/usr/bin/env python +# Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. +# There is a magic tool which has no documentation. It is used to update rust +# crates in third_party. https://github.com/piscisaureus/gnargo +import third_party +import util +util.enable_ansi_colors() +third_party.run_cargo() -- GitLab