@cli.command()
def build_webui():
 cwd = os.path.join('flexget', 'ui')
 click.echo('cleaning previous builds')
 for folder in ['bower_componentsnode_modules']:
  folder = os.path.join(cwd, folder)
  if os.path.exists(folder):
   click.echo('Deleting recursively {}'.format(folder))
   shutil.rmtree(folder)
 click.echo('running `npm install`')
 subprocess.check_call('npm install', cwd=cwd, shell=True)
 click.echo('running `bower install`')
 subprocess.check_call('bower install', cwd=cwd, shell=True)
 click.echo('running `gulp buildapp`')
 subprocess.check_call('gulp buildapp', cwd=cwd, shell=True)

@ cli . command ( ) def build_webui ( ) : cwd = os . path . join ( 'flexget' , 'ui' ) click . echo ( 'cleaning previous builds' ) for folder in [ 'bower_componentsnode_modules' ] : folder = os . path . join ( cwd , folder ) if os . path . exists ( folder ) : click . echo ( 'Deleting recursively {}' . format ( folder ) ) shutil . rmtree ( folder ) click . echo ( 'running `npm install`' ) subprocess . check_call ( 'npm install' , cwd = cwd , shell = True ) click . echo ( 'running `bower install`' ) subprocess . check_call ( 'bower install' , cwd = cwd , shell = True ) click . echo ( 'running `gulp buildapp`' ) subprocess . check_call ( 'gulp buildapp' , cwd = cwd , shell = True )
build webui for release packaging .