summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2019-06-11 18:03:05 -0400
committerRyan Dahl <ry@tinyclouds.org>2019-06-12 10:57:58 -0400
commit8693d0e0a7d7ce1e4533aef30c1a735276e3009b (patch)
tree3d555c721c2eb7149fa89913877012cf74377ccc
parent7bdeee8997bde0efe40bcec41c0706bdab58893b (diff)
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.
-rwxr-xr-xtools/sync_gclient.py (renamed from tools/sync_third_party.py)8
-rwxr-xr-xtools/sync_node_modules.py6
-rwxr-xr-xtools/sync_python_modules.py6
-rwxr-xr-xtools/sync_rust_crates.py8
4 files changed, 22 insertions, 6 deletions
diff --git a/tools/sync_third_party.py b/tools/sync_gclient.py
index 8557c7b58..5da301359 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 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()