diff --git a/frontend/Makefile b/frontend/Makefile index 5649f17e..f86c9295 100644 --- a/frontend/Makefile +++ b/frontend/Makefile @@ -9,16 +9,15 @@ UI := $(shell pwd)/../ui install: yarn install --prefer-offline -.PHONY: install-production -install-production: compile clean - yarn install --production --pure-lockfile --prefer-offline - .PHONY: clean clean: @rm -rf node_modules ui: +ifeq ($(BUILD),production) +else $(MAKE) compile -C $(UI) +endif .PHONY: test test: ui @@ -34,7 +33,11 @@ test-ci: ui .PHONY: compile compile: ui install +ifeq ($(BUILD),production) NODE_ENV=production $(bindir)/webpack --config webpack/index.js +else + $(bindir)/webpack --config webpack/index.js +endif .PHONY: build build: diff --git a/frontend/package.json b/frontend/package.json index b601f987..3861220e 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -19,6 +19,7 @@ "clean-static": "git check-ignore static/** | xargs rm" }, "dependencies": { + "@tomgco/joyent-portal-ui": "alpha", "constant-case": "^2.0.0", "force-array": "^3.1.0", "hapi": "^16.1.0", diff --git a/frontend/server/index.html b/frontend/server/index.html index 0e4aa3aa..2faca297 100644 --- a/frontend/server/index.html +++ b/frontend/server/index.html @@ -7,6 +7,6 @@
- +