nodejs: add run-develop

This commit is contained in:
Alexander.Trofimov
2019-12-25 18:33:49 +03:00
parent 710d4f4059
commit b58bf412fa
3 changed files with 22 additions and 33 deletions

View File

@ -0,0 +1,22 @@
#!/usr/bin/env python
import sys
sys.path.append('../../../../build_tools/scripts')
import os
import base
def install_module():
base.print_info('Install')
base.cmd('npm', ['install'])
def run_module(directory, args=[]):
base.run_nodejs_in_dir(directory, args)
def run_integration_example():
install_module()
base.set_env('NODE_CONFIG_DIR', '../config')
base.print_info('run integration example')
run_module('bin', ['www'])
base.set_env('NODE_ENV', 'development-windows')
run_integration_example()