DEST?=dist
ENV?=dev
dev:
	node_modules/.bin/vue-cli-service serve src/main.tsx --open --proxy-env=${ENV}

clear:
	rm -rf ${DEST}/*

build: clear
	yarn install
	node_modules/.bin/vue-cli-service build src/main.tsx --dest ${DEST}

lint:
	node_modules/.bin/vue-cli-service lint src/main.tsx

install:
	yarn install --registry=https://registry.npm.taobao.org

sonar:
	sonar-scanner -Dsonar.projectKey=log-analysis -Dsonar.sources=. -Dsonar.host.url=https://sonar.eoitek.net