mirror of
https://github.com/dolthub/dolt.git
synced 2026-05-01 11:49:54 -05:00
6e316d9975
Finding and running build scripts remains in Go (tools/run_all_build.go and supporting libs), but the build scripts themselves are in python now. This is because Go doesn't have much support for copying files and directories around, which is kind of the primary focus of build and packaging scripts. Towards issue 677
22 lines
599 B
Python
22 lines
599 B
Python
#!/usr/bin/python
|
|
|
|
import os, os.path, subprocess, sys
|
|
|
|
import noms.symlink as symlink
|
|
|
|
def main():
|
|
# ln -sf ../../js/.babelrc .babelrc hack, because zip files screw up symlinks.
|
|
babelrcPath = os.path.abspath('.babelrc')
|
|
symlink.Force('../../js/.babelrc', babelrcPath)
|
|
|
|
subprocess.check_call('./link.sh', shell=False)
|
|
subprocess.check_call(['npm', 'install'], shell=False)
|
|
env = None
|
|
if 'NOMS_SERVER' not in os.environ:
|
|
env = os.environ
|
|
env['NOMS_SERVER'] = 'http://localhost:8000'
|
|
subprocess.check_call(['npm', 'run', 'build'], env=env, shell=False)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main() |