1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 07:14:47 -05:00

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.
This commit is contained in:
Ryan Dahl 2019-06-11 18:03:05 -04:00
parent 7bdeee8997
commit 8693d0e0a7
4 changed files with 22 additions and 6 deletions

View file

@ -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()

6
tools/sync_node_modules.py Executable file
View file

@ -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()

6
tools/sync_python_modules.py Executable file
View file

@ -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()

8
tools/sync_rust_crates.py Executable file
View file

@ -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()