@@ -5,34 +5,42 @@ help: ## List all make commands
55 @echo ' '
66
77build : # # Build the project with -d and --no-recreate flags
8- $( DOCKER_COMPOSE ) up --build --no-recreate -d
8+ docker compose up --build --no-recreate -d
99
1010install : # # Exec container and make npm install commands
11- $( DOCKER_EXEC_TOOLS_APP ) -c $( NODE_INSTALL )
11+ docker compose exec mct_web npm install
1212
13- bundle : # # Run build npm command script
14- $( DOCKER_EXEC_TOOLS_APP ) -c $( BUNDLE_RUN )
13+ bundle :
14+ docker compose exec mct_web npm run bundle
1515
1616clean : # # Remove all dist/ files
17- $( DOCKER_EXEC_TOOLS_APP ) -c $( CLEAN_RUN )
17+ docker compose exec mct_web rm -r dist/ *
1818
19- interact : # # Interact to install new packages or run specific commands in container
20- $( DOCKER_EXEC_TOOLS_APP )
19+ bash : # # Interact to install new packages or run specific commands in container
20+ docker compose exec -it mct_web bash
2121
2222dev : # Internal command to run dev npm command script
23- $( DOCKER_EXEC_TOOLS_APP ) -c $( SERVER_RUN )
23+ docker compose exec -it mct_web npm run development
2424
2525up : # # Run up -d Docker command container will wait for interactions
26- $( DOCKER_COMPOSE ) up -d
26+ docker compose up -d
2727
2828start : up dev # # Up the docker env and run the npm run dev it to
2929
3030first : build install dev # # Build the env, up it and run the npm install and then run npm run dev it to
3131
32- stop : $( ROOT_DIR ) /compose.yml # # Stop and remove containers
33- $( DOCKER_COMPOSE ) kill
34- $( DOCKER_COMPOSE ) rm --force
32+ stop : . /compose.yml # # Stop and remove containers
33+ docker compose kill
34+ docker compose rm --force
3535restart : stop start dev # # Stop and restart container
3636
37- clear : stop $(ROOT_DIR ) /compose.yml # # Stop and remove container and orphans
38- $(DOCKER_COMPOSE ) down -v --remove-orphans
37+ types : # # Run type check and generator
38+ docker compose exec mct_web npm run types
39+
40+ types-watch : # # Run type check and generator
41+ docker compose exec mct_web npm run types-watch
42+
43+ clear : stop ./compose.yml # # Stop and remove container and orphans
44+ docker compose down -v --remove-orphans
45+
46+ .PHONY : bash build clean help logs start stop types types-watch
0 commit comments