You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@echo "Successfully installed node_modules of LTBrowser app"
14
28
15
29
install-playwright: install-dependencies
16
30
@echo "Installing Playwright Chromium browser of LTBrowser app"
17
31
$(BIN)/playwright install --with-deps chromium
18
32
@echo "Successfully installed Playwright Chromium browser of LTBrowser app"
19
33
20
-
## Install npm dependencies and Playwright Chromium browser with its dependencies
21
-
install: install-dependencies install-playwright
22
-
23
-
## Clean build artifacts, node_modules, and test results
24
-
clean:
25
-
@echo "Cleaning build artifacts, node_modules, and test results of LTBrowser app"
26
-
rm -rf dist
27
-
rm -rf node_modules
28
-
rm -rf e2e_results
29
-
rm -rf .cache
30
-
rm -rf screenshots
34
+
install: install-dependencies install-playwright ## Installs the dependencies and Playwright Chromium browser with its dependencies
31
35
32
36
build-server:
33
37
@echo "Building LTBrowser app"
34
-
@$(nvm_install_node)&&$(BIN)/tsc
38
+
@$(BIN)/tsc
35
39
@echo "LTBrowser app built successfully"
36
40
37
-
## Builds the LTBrowser server, by first installing the dependencies and then building the server. This does not install the Playwright browser which should be done separately
38
-
build: clean install-dependencies build-server
41
+
build: clean install-dependencies build-server ## Builds the LTBrowser server by first installing the dependencies and then building the server
39
42
40
-
## Used by service to start the LTBrowser server in linux environments
41
-
start-service: install
43
+
start-service: install ## Used by service to start the LTBrowser server in linux environments
42
44
@echo "Starting LTBrowser app service"
43
45
node dist/server.js
44
46
45
-
## Start the LTBrowser server by first doing a cleanup and then performing a production mode build
46
-
start: build install-playwright
47
+
start: build install-playwright ## Start the LTBrowser server by first doing a cleanup and then performing a production mode build
47
48
@echo "Starting LTBrowser app"
48
49
node dist/server.js
49
50
50
-
## Start the LTBrowser server in development mode
51
-
dev: install
51
+
dev: nvm-install-node install ## Start the LTBrowser server in development mode
52
52
@echo "Starting LTBrowser app in development mode"
53
53
$(BIN)/tsx src/server.ts
54
54
55
-
## Start the LTBrowser server in development watch mode
56
-
dev-watch: install
55
+
dev-watch: nvm-install-node install ## Start the LTBrowser server in development watch mode
57
56
@echo "Starting LTBrowser app in development watch mode"
58
57
$(BIN)/tsx watch src/server.ts
59
58
60
-
## Run the smoke simulations
61
-
smoke-simulation: install
59
+
smoke-simulation: nvm-install-node install ## Run the smoke simulations
0 commit comments