コード例 #1
0
 def create(self):
     with use_dir(Projects.FRONTEND):
         log.info("Installing custom server dependencies")
         run(["yarn", "add", "express", "express-http-proxy"])
コード例 #2
0
ファイル: reformat.py プロジェクト: laks12metlife/zygoat
 def create(self):
     with use_dir(Projects.BACKEND):
         black = which("black")
         if black is not None:
             run([black, "."])
コード例 #3
0
 def installed(self):
     completed_process = run(["yarn", "info", "react-ga"])
     return completed_process.returncode == 0
コード例 #4
0
 def create(self):
     with use_dir(Projects.FRONTEND):
         log.info("Installing react-ga Google Analytics plugin for React")
         run(["yarn", "add", "react-ga"])
コード例 #5
0
 def create(self):
     with use_dir(Projects.FRONTEND):
         log.info(
             "Installing prettier dev dependency into the frontend project")
         run(["yarn", "add", "--dev", "prettier"])
コード例 #6
0
ファイル: deployment.py プロジェクト: kborer/willing-zg
 def create(self):
     with use_dir(Projects.FRONTEND):
         log.info("Calling eb init on the frontend project")
         run(["eb", "init"])
コード例 #7
0
ファイル: mui.py プロジェクト: marco-wong-1/zygoat
 def create(self):
     with use_dir(Projects.FRONTEND):
         log.info("Installing material-ui core and icons")
         run(["yarn", "add", "@material-ui/core", "@material-ui/icons"])
コード例 #8
0
def get_git_commit_hash():
    return (run(["git", "rev-parse", "--short", "HEAD"],
                capture_output=True).stdout.decode().strip())
コード例 #9
0
ファイル: __init__.py プロジェクト: knitHacker/zygoat
 def create(self):
     log.info("Formatting package.json with prettier")
     with use_dir(Projects.FRONTEND):
         run(["yarn", "prettier", "-w", "package.json"])