mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Build extensions automatically before app is built (#1093)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
parent
a00d26149c
commit
a478143423
7
Makefile
7
Makefile
@ -1,3 +1,5 @@
|
|||||||
|
EXTENSIONS_DIR = ./extensions
|
||||||
|
|
||||||
ifeq ($(OS),Windows_NT)
|
ifeq ($(OS),Windows_NT)
|
||||||
DETECTED_OS := Windows
|
DETECTED_OS := Windows
|
||||||
else
|
else
|
||||||
@ -46,13 +48,16 @@ integration-win:
|
|||||||
test-app:
|
test-app:
|
||||||
yarn test
|
yarn test
|
||||||
|
|
||||||
build: install-deps download-bins
|
build: install-deps download-bins build-extensions
|
||||||
ifeq "$(DETECTED_OS)" "Windows"
|
ifeq "$(DETECTED_OS)" "Windows"
|
||||||
yarn dist:win
|
yarn dist:win
|
||||||
else
|
else
|
||||||
yarn dist
|
yarn dist
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
build-extensions:
|
||||||
|
$(foreach file, $(wildcard $(EXTENSIONS_DIR)/*), $(MAKE) -C $(file) build;)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
ifeq "$(DETECTED_OS)" "Windows"
|
ifeq "$(DETECTED_OS)" "Windows"
|
||||||
if exist binaries\client del /s /q binaries\client\*.*
|
if exist binaries\client del /s /q binaries\client\*.*
|
||||||
|
|||||||
5
extensions/example-extension/Makefile
Normal file
5
extensions/example-extension/Makefile
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
install-deps:
|
||||||
|
npm install
|
||||||
|
|
||||||
|
build: install-deps
|
||||||
|
npm run build
|
||||||
5
extensions/telemetry/Makefile
Normal file
5
extensions/telemetry/Makefile
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
install-deps:
|
||||||
|
npm install
|
||||||
|
|
||||||
|
build: install-deps
|
||||||
|
npm run build
|
||||||
Loading…
Reference in New Issue
Block a user