From 8693d0e0a7d7ce1e4533aef30c1a735276e3009b Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Tue, 11 Jun 2019 18:03:05 -0400 Subject: 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_gclient.py | 13 +++++++++++++ tools/sync_node_modules.py | 6 ++++++ tools/sync_python_modules.py | 6 ++++++ tools/sync_rust_crates.py | 8 ++++++++ tools/sync_third_party.py | 17 ----------------- 5 files changed, 33 insertions(+), 17 deletions(-) create mode 100755 tools/sync_gclient.py create mode 100755 tools/sync_node_modules.py create mode 100755 tools/sync_python_modules.py create mode 100755 tools/sync_rust_crates.py delete mode 100755 tools/sync_third_party.py diff --git a/tools/sync_gclient.py b/tools/sync_gclient.py new file mode 100755 index 000000000..5da301359 --- /dev/null +++ b/tools/sync_gclient.py @@ -0,0 +1,13 @@ +#!/usr/bin/env python +# Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. +# 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 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_gclient_sync() diff --git a/tools/sync_node_modules.py b/tools/sync_node_modules.py new file mode 100755 index 000000000..5c5705d9a --- /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 000000000..0a40740f0 --- /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 000000000..658207546 --- /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() diff --git a/tools/sync_third_party.py b/tools/sync_third_party.py deleted file mode 100755 index 8557c7b58..000000000 --- a/tools/sync_third_party.py +++ /dev/null @@ -1,17 +0,0 @@ -#!/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. -# To update the deno_third_party git repo after running this, try the following: -# cd third_party -# find . -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() -- cgit v1.2.3