File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,14 @@ $(warning Your Golang version is go$(shell expr $(GOVERSION) / 1000000).$(shell
13
13
$(error Update Golang to version to at least 1.16.0)
14
14
endif
15
15
16
+ LTS_NODE_VER =16
17
+ NODE_VER =$(shell node -v)
18
+ ifeq ($(patsubst v$(LTS_NODE_VER ) .% ,matched,$(NODE_VER ) ) , matched)
19
+ NODE_LTS=true
20
+ else
21
+ NODE_LTS=false
22
+ endif
23
+
16
24
# git modules that need to be loaded
17
25
MODULES: =
18
26
@@ -92,11 +100,16 @@ boostci: $(BUILD_DEPS)
92
100
$(GOCC ) build $(GOFLAGS ) -o boostci ./cmd/boostci
93
101
.PHONY : boostci
94
102
95
- react :
103
+ react : check-node-lts
96
104
npm install --prefix react
97
105
npm run --prefix react build
98
106
.PHONY : react
99
107
108
+ .PHONY : check-node-lts
109
+ check-node-lts :
110
+ @$(NODE_LTS ) || echo Build requires Node v$(LTS_NODE_VER ) \( detected Node $(NODE_VER ) \)
111
+ @$(NODE_LTS ) && echo Building using Node v$(LTS_NODE_VER )
112
+
100
113
build-go : boost devnet
101
114
.PHONY : build-go
102
115
You can’t perform that action at this time.
0 commit comments