@task()
def assets(dev=False, watch=False):
    if os.getcwd() != HERE:
        os.chdir(HERE)
    npm = 'npm install'
    if not dev:
        npm += ' --production'
    run(npm, echo=True)
    bower_install()
    # Always set clean=False to prevent possible mistakes
    # on prod
    webpack(clean=False, watch=watch, dev=dev)
Install and build static assets for admin.
dataset/ETHPy150Open CenterForOpenScience/osf.io/admin/tasks.py/assets