Webpack quality of life improvements for dev mode (#4980)

This commit is contained in:
Jari Kolehmainen authored and GitHub committed 2022-03-08 09:48:16 -05:00
1 parent adf3b8dc60
commit a4954b9f8d
17 files changed
+6902 -11329

No files matched your search

+6 -7
View File
@@ -23,16 +23,14 @@ node_modules: yarn.lock
binaries/client: node_modules
yarn download-bins
static/build/LensDev.html: node_modules
yarn compile:renderer
.PHONY: compile-dev
compile-dev: node_modules
yarn compile:main --cache
yarn compile:renderer --cache
.PHONY: dev
dev: binaries/client build-extensions static/build/LensDev.html
dev: binaries/client build-extensions
rm -rf static/build/
yarn dev
.PHONY: lint
@@ -62,10 +60,11 @@ ifeq "$(DETECTED_OS)" "Windows"
endif
yarn run electron-builder --publish onTag $(ELECTRON_BUILDER_EXTRA_ARGS)
.NOTPARALLEL: $(extension_node_modules)
$(extension_node_modules): node_modules
cd $(@:/node_modules=) && ../../node_modules/.bin/npm install --no-audit --no-fund
cd $(@:/node_modules=) && ../../node_modules/.bin/npm install --no-audit --no-fund --no-save
$(extension_dists): src/extensions/npm/extensions/dist
$(extension_dists): src/extensions/npm/extensions/dist $(extension_node_modules)
cd $(@:/dist=) && ../../node_modules/.bin/npm run build
.PHONY: clean-old-extensions
@@ -73,7 +72,7 @@ clean-old-extensions:
find ./extensions -mindepth 1 -maxdepth 1 -type d '!' -exec test -e '{}/package.json' \; -exec rm -rf {} \;
.PHONY: build-extensions
build-extensions: node_modules clean-old-extensions $(extension_node_modules) $(extension_dists)
build-extensions: node_modules clean-old-extensions $(extension_dists)
.PHONY: test-extensions
test-extensions: $(extension_node_modules)