@@ -9,19 +9,40 @@ help: ## Display this help message
99
1010.PHONY : build
1111build : # # Build the frontend
12- ng build
12+ npx ng build
1313
14- .PHONY : build-dev
15- build-dev : # # Build the frontend for development
16- ng build --configuration development
14+ .PHONY : build-development
15+ build-development : # # Build the frontend with development configuration
16+ npx ng build --configuration development
17+
18+ .PHONY : build-fuzzing
19+ build-fuzzing : # # Build the frontend with fuzzing configuration
20+ npx ng build --configuration fuzzing
21+
22+ .PHONY : build-local
23+ build-local : # # Build the frontend with local configuration
24+ npx ng build --configuration local
1725
1826.PHONY : build-prod
1927build-prod : # # Build the frontend for production
20- ng build --configuration production
28+ npx ng build --configuration production
2129
2230.PHONY : build-prod-sentry
2331build-prod-sentry : # # Build the frontend for production with Sentry sourcemaps
24- ng build --configuration production && $(MAKE ) sentry-sourcemaps
32+ npx ng build --configuration production
33+ $(MAKE ) sentry-sourcemaps
34+
35+ .PHONY : build-producer
36+ build-producer : # # Build the frontend with producer configuration
37+ npx ng build --configuration producer
38+
39+ .PHONY : build-production
40+ build-production : # # Build the frontend with production configuration
41+ npx ng build --configuration production
42+
43+ .PHONY : build-webnodelocal
44+ build-webnodelocal : # # Build the frontend with webnodelocal configuration
45+ npx ng build --configuration webnodelocal
2546
2647.PHONY : check-prettify
2748check-prettify : # # Check if files are formatted with Prettier
@@ -38,21 +59,24 @@ copy-env: ## Copy webnode.js to env.js
3859
3960.PHONY : deploy
4061deploy : # # Deploy the application
41- $(MAKE ) prebuild && $(MAKE ) build-prod-sentry && $(MAKE ) copy-env && \
42- firebase deploy
62+ $(MAKE ) prebuild
63+ $(MAKE ) build-prod-sentry
64+ $(MAKE ) copy-env
65+ firebase deploy
4366
4467.PHONY : deploy-leaderboard
4568deploy-leaderboard : # # Deploy the leaderboard application
46- $(MAKE ) prebuild && $(MAKE ) build-prod-sentry && \
47- cp dist/frontend/browser/assets/environments/leaderboard.js \
48- dist/frontend/browser/assets/environments/env.js && \
49- firebase deploy
69+ $(MAKE ) prebuild
70+ $(MAKE ) build-prod-sentry
71+ cp dist/frontend/browser/assets/environments/leaderboard.js \
72+ dist/frontend/browser/assets/environments/env.js
73+ firebase deploy
5074
5175.PHONY : docker
5276docker : # # Build and push Docker image
53- $(MAKE ) build-prod-sentry && \
54- docker buildx build --platform linux/amd64 -t openmina/frontend:latest . && \
55- docker push openmina/frontend:latest
77+ $(MAKE ) build-prod-sentry
78+ docker buildx build --platform linux/amd64 -t openmina/frontend:latest .
79+ docker push openmina/frontend:latest
5680
5781.PHONY : install
5882install : # # Install npm dependencies
@@ -76,34 +100,49 @@ rebuild: clean install build ## Clean, reinstall dependencies, and rebuild
76100.PHONY : sentry-sourcemaps
77101sentry-sourcemaps : # # Upload sourcemaps to Sentry
78102 sentry-cli sourcemaps inject --org openmina-uv --project openmina \
79- ./dist/frontend/browser && \
80- sentry-cli sourcemaps upload --org openmina-uv --project openmina \
103+ ./dist/frontend/browser
104+ sentry-cli sourcemaps upload --org openmina-uv --project openmina \
81105 ./dist/frontend/browser
82106
83107.PHONY : start
84108start : # # Start the development server
85- npm install && ng serve --configuration local --open
109+ npm install
110+ npx ng serve --configuration local --open
86111
87112.PHONY : start-bundle
88113start-bundle : # # Serve the built bundle
89114 serve dist/frontend/browser -s -l 4200
90115
91- .PHONY : start-dev
92- start-dev : # # Start the development server (dev configuration)
93- ng serve --configuration development
94-
95116.PHONY : start-dev-mobile
96117start-dev-mobile : # # Start the development server for mobile (accessible on network)
97- ng serve --configuration development --host 0.0.0.0
118+ npx ng serve --configuration development --host 0.0.0.0
119+
120+ .PHONY : start-development
121+ start-development : # # Start the development server with development configuration
122+ npx ng serve --configuration development
98123
99124.PHONY : start-fuzzing
100125start-fuzzing : # # Start the fuzzing build and serve
101- $(MAKE ) install-deps && ng build --configuration fuzzing && \
102- $(MAKE ) start-bundle
126+ $(MAKE ) install-deps
127+ npx ng build --configuration fuzzing
128+ $(MAKE ) start-bundle
129+
130+ .PHONY : start-local
131+ start-local : # # Start the development server with local configuration
132+ npx ng serve --configuration local
133+
134+ .PHONY : start-production
135+ start-production : # # Start the development server with production configuration
136+ npx ng serve --configuration production
103137
104138.PHONY : start-webnode
105139start-webnode : # # Start the webnode development server
106- npm install && ng serve --configuration webnodelocal --open
140+ npm install
141+ npx ng serve --configuration webnodelocal --open
142+
143+ .PHONY : start-webnodelocal
144+ start-webnodelocal : # # Start the development server with webnodelocal configuration
145+ npx ng serve --configuration webnodelocal
107146
108147.PHONY : test
109148test : # # Run Cypress tests
0 commit comments