blob: 7457bb51b5a6a76ed155a2d8cd5257a3910a1b84 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#!/usr/bin/env python
# This script updates the third party dependencies of deno.
# - Get Depot Tools and make sure it's in your path.
# http://commondatastorage.googleapis.com/chrome-infra-docs/flat/depot_tools/docs/html/depot_tools_tutorial.html#_setting_up
# - You need yarn installed as well.
# https://yarnpkg.com/lang/en/docs/install/
# Use //gclient_config.py to modify the git deps.
# Use //js/package.json to modify the npm deps.
import os
import subprocess
root_path = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
third_party_path = os.path.join(root_path, "third_party")
def main():
os.chdir(third_party_path)
run(["gclient", "sync", "--no-history"])
run(["yarn"])
def run(args):
print " ".join(args)
env = os.environ.copy()
subprocess.check_call(args, env=env)
if '__main__' == __name__:
main()
|