aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorn-peugnet <n.peugnet@free.fr>2019-11-15 19:31:20 +0100
committern-peugnet <n.peugnet@free.fr>2019-11-15 19:39:20 +0100
commit5c0035fe37cdec5f7927c3213365285a7fd4d51b (patch)
treeb95805b7ab33d739056febd0346e5c1c9673e849
parent848da2065ee7e75db88e6d39f9cb8798148b0580 (diff)
downloadwcms-5c0035fe37cdec5f7927c3213365285a7fd4d51b.tar.gz
wcms-5c0035fe37cdec5f7927c3213365285a7fd4d51b.zip
fix: `make watch` now changes prev_env
+ change default env values
-rw-r--r--.default.env4
-rw-r--r--Makefile9
2 files changed, 9 insertions, 4 deletions
diff --git a/.default.env b/.default.env
index 4f0192c..33fb433 100644
--- a/.default.env
+++ b/.default.env
@@ -1,12 +1,12 @@
# .env
# Build environment. (dev|prod|dist)
-ENV=dev
+ENV=prod
# GitHub token used by release-it to publish releases
GITHUB_TOKEN=
# Sentry variables used to publish releases to Sentry
SENTRY_AUTH_TOKEN=
-SENTRY_ORG=club1
+SENTRY_ORG=vincent-peugnet
SENTRY_PROJECT=wcms \ No newline at end of file
diff --git a/Makefile b/Makefile
index f4e80b4..720127e 100644
--- a/Makefile
+++ b/Makefile
@@ -31,8 +31,13 @@ build: VERSION $(PREV_ENV_FILE) $(js_bundles)
# Run webpack in watch mode.
.PHONY: watch
-watch: node_modules
- webpack --env dev --watch
+watch: ENV := dev
+watch:
+ $(MAKE) .watch ENV=$(ENV)
+
+.PHONY: .watch
+.watch: $(PREV_ENV_FILE) node_modules
+ webpack --env $(ENV) --watch
# Create a new release and upload it on GitHub.
.PHONY: release