From deda60b8434206a136f4b7fafd98f1f801b44675 Mon Sep 17 00:00:00 2001 From: Bilawal Hameed Date: Fri, 7 Feb 2020 14:33:25 +0100 Subject: [PATCH] Updated to use forego --- Brewfile | 1 - Makefile | 27 +++++++++------------------ 2 files changed, 9 insertions(+), 19 deletions(-) diff --git a/Brewfile b/Brewfile index 9dd655cee3..8e43ffdd88 100644 --- a/Brewfile +++ b/Brewfile @@ -8,7 +8,6 @@ brew "docker" brew "docker-compose" brew "protobuf" brew "prototool" -brew "forego" cask "docker" # Frontend diff --git a/Makefile b/Makefile index e8f709ad74..125f74565e 100644 --- a/Makefile +++ b/Makefile @@ -2,9 +2,9 @@ # All-in-one commands ### init: init-secrets -install: install-homebrew-dependencies install-yarn-dependencies -start: build-protocol-definitions start-backends start-frontend -stop: stop-backends +install: install-homebrew-dependencies install-yarn-dependencies install-forego +start: build-protocol-definitions + forego start ### # Setup secrets @@ -24,6 +24,12 @@ install-homebrew-dependencies: install-yarn-dependencies: yarn --cwd ${PWD}/frontend install +### +# Install Forego for running both frontend and backend in a single command. +### +install-forego: + go get -u github.com/ddollar/forego + ### # Protobuf Definitions. # This will generate Protobuf definitions from ./proto to both Go and JS/TypeScript. @@ -37,18 +43,3 @@ build-protocol-definitions: ### scaffold-new-frontend-plugin: ${PWD}/tools/cookiecutter/init.sh frontend/packages/plugins/_template --output-dir frontend/packages/plugins - -### -# Run the backend services -### -start-backends: - ${PWD}/docker-compose.yaml up --build --detach - -stop-backends: - ${PWD}/docker-compose.yaml down - -### -# Run the frontend services. -### -start-frontend: - yarn --cwd ${PWD}/frontend start