@@ -9,15 +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 && $(MAKE ) sentry-sourcemaps
28+ npx ng build --configuration production
29+
30+ .PHONY : build-prod-sentry
31+ build-prod-sentry : # # Build the frontend for production with 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
2146
2247.PHONY : check-prettify
2348check-prettify : # # Check if files are formatted with Prettier
@@ -34,21 +59,24 @@ copy-env: ## Copy webnode.js to env.js
3459
3560.PHONY : deploy
3661deploy : # # Deploy the application
37- $(MAKE ) prebuild && $(MAKE ) build-prod && $(MAKE ) copy-env && \
38- firebase deploy
62+ $(MAKE ) prebuild
63+ $(MAKE ) build-prod-sentry
64+ $(MAKE ) copy-env
65+ firebase deploy
3966
4067.PHONY : deploy-leaderboard
4168deploy-leaderboard : # # Deploy the leaderboard application
42- $(MAKE ) prebuild && $(MAKE ) build-prod && \
43- cp dist/frontend/browser/assets/environments/leaderboard.js \
44- dist/frontend/browser/assets/environments/env.js && \
45- 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
4674
4775.PHONY : docker
4876docker : # # Build and push Docker image
49- $(MAKE ) build-prod && \
50- docker buildx build --platform linux/amd64 -t openmina/frontend:latest . && \
51- 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
5280
5381.PHONY : install
5482install : # # Install npm dependencies
@@ -72,34 +100,49 @@ rebuild: clean install build ## Clean, reinstall dependencies, and rebuild
72100.PHONY : sentry-sourcemaps
73101sentry-sourcemaps : # # Upload sourcemaps to Sentry
74102 sentry-cli sourcemaps inject --org openmina-uv --project openmina \
75- ./dist/frontend/browser && \
76- sentry-cli sourcemaps upload --org openmina-uv --project openmina \
103+ ./dist/frontend/browser
104+ sentry-cli sourcemaps upload --org openmina-uv --project openmina \
77105 ./dist/frontend/browser
78106
79107.PHONY : start
80108start : # # Start the development server
81- npm install && ng serve --configuration local --open
109+ npm install
110+ npx ng serve --configuration local --open
82111
83112.PHONY : start-bundle
84113start-bundle : # # Serve the built bundle
85114 serve dist/frontend/browser -s -l 4200
86115
87- .PHONY : start-dev
88- start-dev : # # Start the development server (dev configuration)
89- ng serve --configuration development
90-
91116.PHONY : start-dev-mobile
92117start-dev-mobile : # # Start the development server for mobile (accessible on network)
93- 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
94123
95124.PHONY : start-fuzzing
96125start-fuzzing : # # Start the fuzzing build and serve
97- $(MAKE ) install-deps && ng build --configuration fuzzing && \
98- $(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
99137
100138.PHONY : start-webnode
101139start-webnode : # # Start the webnode development server
102- 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
103146
104147.PHONY : test
105148test : # # Run Cypress tests
0 commit comments