Пример #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
 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
 def create(self):
     with use_dir(Projects.FRONTEND):
         log.info("Calling eb init on the frontend project")
         run(["eb", "init"])
Пример #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"])
Пример #8
0
def get_git_commit_hash():
    return (run(["git", "rev-parse", "--short", "HEAD"],
                capture_output=True).stdout.decode().strip())
Пример #9
0
 def create(self):
     log.info("Formatting package.json with prettier")
     with use_dir(Projects.FRONTEND):
         run(["yarn", "prettier", "-w", "package.json"])