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