Skip to content

Commit ba849a0

Browse files
committed
fix: life improvements in Makefile and package.json
1 parent 53c012f commit ba849a0

2 files changed

Lines changed: 16 additions & 2 deletions

File tree

Makefile

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,22 @@ cluster='all'
1010
install:
1111
yarn install
1212

13+
.PHONY: build
14+
build: install
15+
yarn build
16+
17+
.PHONY: warning
18+
warning:
19+
@echo "Note: 'make serve' now does a full static build. For dev mode, use 'make start' instead."
20+
1321
.PHONY: serve
14-
serve: install
22+
serve: warning build
1523
yarn serve
1624

25+
.PHONY: start
26+
start: install
27+
yarn start
28+
1729
.PHONY: tf-fmt
1830
tf-fmt:
1931
cd ./terraform && terraform fmt --recursive

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
"releaser"
1010
],
1111
"scripts": {
12-
"serve": "yarn workspace website start",
12+
"build": "LAB_TIMES_ENABLED=true yarn workspace website build",
13+
"serve": "LAB_TIMES_ENABLED=true yarn workspace website serve",
14+
"start": "LAB_TIMES_ENABLED=true yarn workspace website start",
1315
"spelling:check": "yarn cspell 'website/docs/**/*.md'",
1416
"links:check": "markdown-link-check -q -c link-check-config.json website/docs/**/*.md",
1517
"format:check": "prettier -c .",

0 commit comments

Comments
 (0)