mirror of
https://github.com/frappe/bench.git
synced 2025-01-24 23:48:24 +00:00
Install yarn locally
This commit is contained in:
parent
884c0766d2
commit
72968e6bb5
@ -1,4 +1,5 @@
|
|||||||
import subprocess
|
import os
|
||||||
|
from bench.utils import exec_cmd
|
||||||
|
|
||||||
def execute(bench_path):
|
def execute(bench_path):
|
||||||
subprocess.check_output(['sudo', 'npm', 'install', '-g', 'yarn'])
|
exec_cmd('npm install yarn', os.path.join(bench_path, 'apps/frappe'))
|
||||||
|
@ -434,7 +434,7 @@ def update_npm_packages(bench_path='.'):
|
|||||||
for app in os.listdir(apps_dir):
|
for app in os.listdir(apps_dir):
|
||||||
app_path = os.path.join(apps_dir, app)
|
app_path = os.path.join(apps_dir, app)
|
||||||
if os.path.exists(os.path.join(app_path, 'package.json')):
|
if os.path.exists(os.path.join(app_path, 'package.json')):
|
||||||
exec_cmd('yarn install', cwd=app_path)
|
exec_cmd('./node_modules/.bin/yarn install', cwd=app_path)
|
||||||
|
|
||||||
|
|
||||||
def install_requirements(pip, req_file):
|
def install_requirements(pip, req_file):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user