Exemple #1
0
#!/usr/bin/env python

import sys
from setup import setup
from util import nodeenv_delegate

YARN_DEPENDENCY_MANAGEMENT_COMMANDS = [
    "add",
    "install",
    "link",
    "remove",
    "unlink",
    "upgrade",
    "upgrade-interactive",
]

if __name__ == "__main__":
    command = next((arg for arg in sys.argv[1:] if not arg.startswith("-")),
                   "install")
    setup(skip_dependencies=(command in YARN_DEPENDENCY_MANAGEMENT_COMMANDS))
    nodeenv_delegate("yarn")
Exemple #2
0
#!/usr/bin/env python

from util import nodeenv_delegate

if __name__ == '__main__':
    nodeenv_delegate('node')
Exemple #3
0
#!/usr/bin/env python

from util import nodeenv_delegate

if __name__ == '__main__':
    nodeenv_delegate('yarn')
Exemple #4
0
#!/usr/bin/env python

from util import nodeenv_delegate

if __name__ == '__main__':
    nodeenv_delegate('npx')
Exemple #5
0
#!/usr/bin/env python

from util import nodeenv_delegate
from setup import setup

if __name__ == "__main__":
    setup(skip_dependencies=True)
    nodeenv_delegate("npx")
Exemple #6
0
#!/usr/bin/env python

from util import nodeenv_delegate
from setup import setup
import os

if __name__ == "__main__":
    setup()
    nodeenv_delegate("node")