mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
tweak makefile
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
parent
af146df7a0
commit
1ec22fb8f1
23
Makefile
23
Makefile
@ -1,4 +1,5 @@
|
|||||||
EXTENSIONS_DIR = ./extensions
|
EXTENSIONS_DIR = ./extensions
|
||||||
|
extensions = $(foreach dir, $(wildcard $(EXTENSIONS_DIR)/*), ${dir})
|
||||||
extension_node_modules = $(foreach dir, $(wildcard $(EXTENSIONS_DIR)/*), ${dir}/node_modules)
|
extension_node_modules = $(foreach dir, $(wildcard $(EXTENSIONS_DIR)/*), ${dir}/node_modules)
|
||||||
extension_dists = $(foreach dir, $(wildcard $(EXTENSIONS_DIR)/*), ${dir}/dist)
|
extension_dists = $(foreach dir, $(wildcard $(EXTENSIONS_DIR)/*), ${dir}/dist)
|
||||||
|
|
||||||
@ -8,16 +9,10 @@ else
|
|||||||
DETECTED_OS := $(shell uname)
|
DETECTED_OS := $(shell uname)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
.PHONY: init
|
binaries/client:
|
||||||
init: install-deps download-bins compile-dev
|
|
||||||
echo "Init done"
|
|
||||||
|
|
||||||
.PHONY: download-bins
|
|
||||||
download-bins:
|
|
||||||
yarn download-bins
|
yarn download-bins
|
||||||
|
|
||||||
.PHONY: install-deps
|
node_modules:
|
||||||
install-deps:
|
|
||||||
yarn install --frozen-lockfile --verbose
|
yarn install --frozen-lockfile --verbose
|
||||||
yarn check --verify-tree --integrity
|
yarn check --verify-tree --integrity
|
||||||
|
|
||||||
@ -27,7 +22,7 @@ compile-dev:
|
|||||||
yarn compile:renderer --cache
|
yarn compile:renderer --cache
|
||||||
|
|
||||||
.PHONY: dev
|
.PHONY: dev
|
||||||
dev: build-extensions
|
dev: node_modules binaries/client build-extensions
|
||||||
yarn dev
|
yarn dev
|
||||||
|
|
||||||
.PHONY: lint
|
.PHONY: lint
|
||||||
@ -35,7 +30,7 @@ lint:
|
|||||||
yarn lint
|
yarn lint
|
||||||
|
|
||||||
.PHONY: test
|
.PHONY: test
|
||||||
test: download-bins
|
test: binaries/client
|
||||||
yarn test
|
yarn test
|
||||||
|
|
||||||
.PHONY: integration-linux
|
.PHONY: integration-linux
|
||||||
@ -58,7 +53,7 @@ test-app:
|
|||||||
yarn test
|
yarn test
|
||||||
|
|
||||||
.PHONY: build
|
.PHONY: build
|
||||||
build: install-deps download-bins build-extensions
|
build: install-deps binaries/client build-extensions
|
||||||
ifeq "$(DETECTED_OS)" "Windows"
|
ifeq "$(DETECTED_OS)" "Windows"
|
||||||
yarn dist:win
|
yarn dist:win
|
||||||
else
|
else
|
||||||
@ -66,9 +61,9 @@ else
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
$(extension_node_modules):
|
$(extension_node_modules):
|
||||||
cd $(@:/node_modules="") && npm install --no-audit --no-fund
|
cd $(@:/node_modules=) && npm install --no-audit --no-fund
|
||||||
|
|
||||||
$(extension_dists):
|
$(extension_dists): build-extension-types
|
||||||
cd $(@:/dist=) && npm run build
|
cd $(@:/dist=) && npm run build
|
||||||
|
|
||||||
.PHONY: build-extensions
|
.PHONY: build-extensions
|
||||||
@ -76,7 +71,7 @@ build-extensions: $(extension_node_modules) $(extension_dists)
|
|||||||
|
|
||||||
.PHONY: test-extensions
|
.PHONY: test-extensions
|
||||||
test-extensions: $(extension_node_modules)
|
test-extensions: $(extension_node_modules)
|
||||||
$(foreach dir, $(wildcard $(EXTENSIONS_DIR)/*), (cd $(dir) && npm run test || exit $?);)
|
$(foreach dir, $(extensions), (cd $(dir) && npm run test || exit $?);)
|
||||||
|
|
||||||
.PHONY: copy-extension-themes
|
.PHONY: copy-extension-themes
|
||||||
copy-extension-themes:
|
copy-extension-themes:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user