used nodemon to restart app when main process changed, optimized 'make dev'

This commit is contained in:
Roman committed 2020-06-27 11:38:08 +03:00
1 parent fa3b6b2070
commit 830090302b
4 files changed
+67 -15

No files matched your search

+9 -5
View File
@@ -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"