-
Notifications
You must be signed in to change notification settings - Fork 59
/
Makefile
42 lines (33 loc) · 1.11 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
PACKAGES = packages
.PHONY: install
install: #installs dependencies
yarn
.PHONY: lint
lint: #lints the package for common code smells
yarn run lint
##########################################################################
################################ CLEAN ###################################
##########################################################################
.PHONY: clean_all
clean_all:
git clean -fxd --exclude scripts
.PHONY: test_unit
test_unit:
NODE_ENV=test yarn run jest --detectOpenHandles --no-cache
# server starts the service in development mode
.PHONY: server
server:
yarn start
# test_unit_codecov runs unit tests with code coverage turned on and
# submits the coverage to codecov.io
.PHONY: test_unit_codecov
test_unit_codecov:
NODE_ENV=test yarn run jest --coverage --detectOpenHandles --no-cache
.PHONY: generate_ssl
generate_ssl:
./scripts/generate_ssl.sh
PLACEHOLDER_NPM := \"version\": \"0.0.1\"
.PHONY: update_npmversion
update_npmversion:
grep "$(PLACEHOLDER_NPM)" "website/console/package.json"
sed -i "s/$(PLACEHOLDER_NPM)/\"version\": \"${VERSION}\"/g" "website/console/package.json"