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