Exemplo n.º 1
0
 def create(self):
     with use_dir(Projects.FRONTEND):
         log.info("Installing custom server dependencies")
         run(["yarn", "add", "express", "express-http-proxy"])
Exemplo n.º 2
0
 def create(self):
     with use_dir(Projects.BACKEND):
         black = which("black")
         if black is not None:
             run([black, "."])
Exemplo n.º 3
0
 def installed(self):
     completed_process = run(["yarn", "info", "react-ga"])
     return completed_process.returncode == 0
Exemplo n.º 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"])
Exemplo n.º 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"])
Exemplo n.º 6
0
 def create(self):
     with use_dir(Projects.FRONTEND):
         log.info("Calling eb init on the frontend project")
         run(["eb", "init"])
Exemplo n.º 7
0
 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"])
Exemplo n.º 8
0
def get_git_commit_hash():
    return (run(["git", "rev-parse", "--short", "HEAD"],
                capture_output=True).stdout.decode().strip())
Exemplo n.º 9
0
 def create(self):
     log.info("Formatting package.json with prettier")
     with use_dir(Projects.FRONTEND):
         run(["yarn", "prettier", "-w", "package.json"])