Skip to content

Commit

Permalink
Split up tools/sync_third_party
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ry committed Jun 12, 2019
1 parent 7bdeee8 commit 8693d0e
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tools/sync_third_party.py → 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()
6 changes: 6 additions & 0 deletions 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()
6 changes: 6 additions & 0 deletions 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()
8 changes: 8 additions & 0 deletions 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()

0 comments on commit 8693d0e

Please sign in to comment.