This commit is contained in:
Vinícius Moreira
2019-12-09 19:30:27 -03:00
parent 6bd27b565e
commit b9ed2cf4c1
16 changed files with 215 additions and 12 deletions

6
bauh/gems/web/npm.py Normal file
View File

@@ -0,0 +1,6 @@
from bauh.commons.system import run_cmd
def is_available() -> bool:
res = run_cmd('which npm', print_error=False)
return res and not res.strip().startswith('which ')