open-consul/ui/packages/consul-ui/GNUmakefile
John Cowen c98130cc08
ui: Move to Workspaced Structure (#8994)
* ui: Add the most basic workspace root in /ui

* We already have a LICENSE file in the repository root

* Change directory path in build scripts ui-v2 -> ui

* Make yarn install flags configurable from elsewhere

* Minimal workspace root makefile

* Call the new docker specific target

* Update yarn in the docker build image

* Reconfigure the netlify target and move to the higher makefile

* Move ui-v2 -> ui/packages/consul-ui

* Change repo root to refleect new folder structure

* Temporarily don't hoist consul-api-double

* Fixup CI configuration

* Fixup lint errors

* Fixup Netlify target
2020-10-21 15:23:16 +01:00

84 lines
1.4 KiB
Makefile

ROOT:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
CONSUL_UI_INSTALL_FLAGS?=
all: build
deps: node_modules clean
clean:
rm -rf ./tmp
build-staging: deps
yarn run build:staging
build-ci: deps
yarn run build:ci --output-path=dist
build: deps
yarn run build
start: deps
yarn run start
start-consul: deps
yarn run start:consul
start-api: deps
yarn run start:api
# testing
# things with 'view' will open your browser for you
# otherwise its headless
# oss is currently with namespace support disabled
test: deps test-node
yarn run test
test-view: deps test-node
yarn run test:view
test-oss: deps test-node
yarn run test:oss
test-oss-view: deps test-node
yarn run test:oss:view
# these run from CI, both with and without namespaces
test-ci: deps test-node
yarn run test:ci
test-oss-ci: deps test-node
yarn run test:oss:ci
# these tests are only possible to run outside of ember
# and use node + tape for a test harness
test-node:
yarn run test:node
test-coverage: deps
yarn run test:coverage
test-coverage-view: deps
yarn run test:coverage:view
test-coverage-ci: deps
yarn run test:coverage:ci
test-parallel: deps
yarn run test:parallel
lint: deps
yarn run lint:hbs && yarn run lint:js
format: deps
yarn run format:js
steps:
yarn run steps:list
node_modules: yarn.lock package.json
yarn install $(CONSUL_UI_INSTALL_FLAGS)
.PHONY: all deps build start test test-view lint format clean