@task()
def assets(ctx, dev=False, watch=False):
 if (os.getcwd() != HERE):
  os.chdir(HERE)
 npm = 'npm install'
 if (not dev):
  npm += ' --production'
 ctx.run(npm, echo=True)
 bower_install(ctx)
 webpack(ctx, clean=False, watch=watch, dev=dev)

@ task ( ) def assets ( ctx , dev = False , watch = False ) : if ( os . getcwd ( ) != HERE ) : os . chdir ( HERE ) npm = 'npm install' if ( not dev ) : npm += ' --production' ctx . run ( npm , echo = True ) bower_install ( ctx ) webpack ( ctx , clean = False , watch = watch , dev = dev )
install and build static assets for admin .