Files
dolt/clients/splore/build.py
T
Chris Masone 6e316d9975 Move build scripts to python
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
2015-12-11 14:46:16 -08:00

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