34
34
@echo " check-env: compare keys in .env files with .env.example files"
35
35
@echo " logs: show logs for all containers"
36
36
@echo " clean: clean up workspace"
37
+ @echo " pretty: run prettier write for all services"
38
+ @echo " lint: run eslint for all services"
37
39
@echo
38
40
@echo " stop: stop all containers"
39
41
@echo " stop-web: stop only web"
@@ -64,14 +66,6 @@ check-env:
64
66
./scripts/check-env.sh .env.example web/.env
65
67
./scripts/check-env.sh cms/.env.example cms/.env
66
68
67
- # NOTE: Package throws an error when using the CLI to import or export config
68
- import-config :
69
- @echo " Syncing config files to the database"
70
- cd cms/ && npm run cs i
71
- export-config :
72
- @echo " Exporting config files from the database"
73
- cd cms/ && npm run cs e
74
-
75
69
logs :
76
70
$(DC ) logs -t -f web db cms
77
71
@@ -116,4 +110,22 @@ build-web:
116
110
$(DC ) build web
117
111
118
112
build-cms :
119
- $(DC ) build cms
113
+ $(DC ) build cms
114
+
115
+ # # Tooling
116
+ lint :
117
+ cd web && . ${NVM_DIR} /nvm.sh && nvm use && npm run lint:fix
118
+ cd cms && . ${NVM_DIR} /nvm.sh && nvm use && npm run lint:fix
119
+
120
+ pretty :
121
+ cd web && . ${NVM_DIR} /nvm.sh && nvm use && npm run format
122
+ cd cms && . ${NVM_DIR} /nvm.sh && nvm use && npm run format
123
+
124
+ # NOTE: Package throws an error when using the CLI to import or export config
125
+ import-config :
126
+ @echo " Syncing config files to the database"
127
+ cd cms/ && npm run cs i
128
+
129
+ export-config :
130
+ @echo " Exporting config files from the database"
131
+ cd cms/ && npm run cs e
0 commit comments