mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
used nodemon to restart app when main process changed, optimized 'make dev'
This commit is contained in:
1 parent
fa3b6b2070
commit
830090302b
4 files changed
+67
-15
No files matched your search
@@ -4,16 +4,23 @@ else
|
||||
DETECTED_OS := $(shell uname)
|
||||
endif
|
||||
|
||||
.PHONY: dev build test clean
|
||||
.PHONY: init dev build test clean
|
||||
|
||||
init: download-bins install-deps compile-dev
|
||||
echo "Init done"
|
||||
|
||||
download-bins:
|
||||
yarn download-bins
|
||||
|
||||
install-deps:
|
||||
yarn install --frozen-lockfile
|
||||
|
||||
compile-dev:
|
||||
yarn compile:main --cache
|
||||
yarn compile:renderer --cache
|
||||
|
||||
dev: install-deps compile-dev
|
||||
dev:
|
||||
test -f out/main.js || make init
|
||||
yarn dev # run electron and watch files
|
||||
|
||||
lint:
|
||||
@@ -37,9 +44,6 @@ integration-win:
|
||||
test-app:
|
||||
yarn test
|
||||
|
||||
install-deps:
|
||||
yarn install --frozen-lockfile
|
||||
|
||||
build: install-deps
|
||||
yarn install
|
||||
ifeq "$(DETECTED_OS)" "Windows"
|
||||
|
||||
Reference in new issue
Block a user