Skip to content

Commit

Permalink
housekeeping: Fixing makefile from scaffolding update (#3148)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdslaugh authored Oct 17, 2024
1 parent 96e445c commit 51a09f9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
key: ${{ runner.os }}-fe-build-${{ hashFiles('**/yarn.lock') }}
- name: Install dependencies
if: steps.node-modules-cache.outputs.cache-hit != 'true'
run: make yarn-install
run: make frontend-install
- name: build
run: make frontend
lint:
Expand All @@ -72,7 +72,7 @@ jobs:
key: ${{ runner.os }}-${{ steps.setup-node.outputs.node-version }}-node-modules-${{ hashFiles('**/yarn.lock') }}
- name: Install dependencies
if: steps.node-modules-cache.outputs.cache-hit != 'true'
run: make yarn-install
run: make frontend-install
- name: Compile packages
run: yarn run compile:dev
working-directory: ${{ env.FRONTEND_DIR }}
Expand Down Expand Up @@ -135,7 +135,7 @@ jobs:
${{ runner.os }}-go-build-
- name: Install dependencies
if: steps.node-modules-cache.outputs.cache-hit != 'true'
run: make yarn-install
run: make frontend-install
- name: Compile packages
run: yarn run compile:dev
working-directory: ${{ env.FRONTEND_DIR }}
Expand Down Expand Up @@ -169,7 +169,7 @@ jobs:
key: ${{ runner.os }}-${{ steps.setup-node.outputs.node-version }}-node-modules-${{ hashFiles('**/yarn.lock') }}
- name: Install dependencies
if: steps.node-modules-cache.outputs.cache-hit != 'true'
run: make yarn-install
run: make frontend-install
- name: Compile packages
run: yarn run compile:dev
working-directory: ${{ env.FRONTEND_DIR }}
Expand Down Expand Up @@ -199,7 +199,7 @@ jobs:
key: ${{ runner.os }}-${{ steps.setup-node.outputs.node-version }}-node-modules-${{ hashFiles('**/yarn.lock') }}
- name: Install dependencies
if: steps.node-modules-cache.outputs.cache-hit != 'true'
run: make yarn-install
run: make frontend-install
- name: Set Publish Auth
run: yarn config set npmAuthToken $NODE_AUTH_TOKEN
working-directory: ${{ env.FRONTEND_DIR }}
Expand Down
8 changes: 4 additions & 4 deletions tools/scaffolding/templates/gateway/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ backend-with-assets: frontend
cd backend && go run $(PRIMARY_MODULE_DIR)/cmd/assets/generate.go ../frontend/build && go build -tags withAssets -o ../build/clutch -ldflags="-X main.version=$(VERSION)"

.PHONY: frontend
frontend: yarn-install
frontend: frontend-install
$(YARN) --cwd frontend build

.PHONY: yarn-install
yarn-install: yarn-ensure
.PHONY: frontend-install
frontend-install : yarn-ensure
ifneq ("$(wildcard frontend/yarn.lock)","")
$(YARN) --cwd frontend install --immutable
else
Expand All @@ -51,5 +51,5 @@ yarn-ensure:
@$(SHELL) $(TOOLS_MODULE_DIR)/install-yarn.sh

.PHONY: frontend-dev # Start the frontend in development mode.
frontend-dev: yarn-ensure yarn-install
frontend-dev: yarn-ensure frontend-install
$(YARN) --cwd frontend start

0 comments on commit 51a09f9

Please sign in to comment.