mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
General changes
- Remove scripts/test.sh and move functionality into `Makefile` - improve rebuilting ability of Makefile with better dependencies - change default jest env to jsdom, remove all file headers except for integration test file which should be run with jest env node - Remove package.json test script as `make test` covers that Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
1 parent
e69f07d1af
commit
6452426fb0
8 files changed
+18
-25
No files matched your search
@@ -1,3 +1,8 @@
|
||||
CMD_ARGS = $(filter-out $@,$(MAKECMDGOALS))
|
||||
|
||||
%:
|
||||
@:
|
||||
|
||||
EXTENSIONS_DIR = ./extensions
|
||||
extensions = $(foreach dir, $(wildcard $(EXTENSIONS_DIR)/*), ${dir})
|
||||
extension_node_modules = $(foreach dir, $(wildcard $(EXTENSIONS_DIR)/*), ${dir}/node_modules)
|
||||
@@ -9,6 +14,7 @@ else
|
||||
DETECTED_OS := $(shell uname)
|
||||
endif
|
||||
|
||||
.PHONY: binaries/client
|
||||
binaries/client: node_modules
|
||||
yarn download-bins
|
||||
|
||||
@@ -34,7 +40,7 @@ lint:
|
||||
|
||||
.PHONY: test
|
||||
test: binaries/client
|
||||
yarn test
|
||||
yarn run jest $(or $(CMD_ARGS), "src")
|
||||
|
||||
.PHONY: integration-linux
|
||||
integration-linux: binaries/client build-extension-types build-extensions
|
||||
@@ -58,10 +64,6 @@ integration-win: binaries/client build-extension-types build-extensions
|
||||
yarn build:win
|
||||
yarn integration
|
||||
|
||||
.PHONY: test-app
|
||||
test-app:
|
||||
yarn test
|
||||
|
||||
.PHONY: build
|
||||
build: node_modules binaries/client build-extensions
|
||||
ifeq "$(DETECTED_OS)" "Windows"
|
||||
|
||||
Reference in new issue
Block a user