2024-10-08 21:22:00 +00:00
|
|
|
.PHONY: all
|
|
|
|
all: add-copyright format lint build test
|
|
|
|
|
|
|
|
.PHONY: build
|
|
|
|
build:
|
2024-10-08 21:40:21 +00:00
|
|
|
@npm install && npm run build
|
2024-10-08 21:22:00 +00:00
|
|
|
|
|
|
|
.PHONY: format
|
|
|
|
format: # format code.
|
|
|
|
@npm run format
|
|
|
|
|
|
|
|
.PHONY: lint
|
|
|
|
lint:
|
|
|
|
@npm run lint
|
|
|
|
|
|
|
|
.PHONY: test
|
|
|
|
test:
|
|
|
|
@npm run test:unit run
|
|
|
|
|
|
|
|
.PHONY: add-copyright
|
|
|
|
add-copyright: # add license to file headers.
|
|
|
|
@addlicense -v -f ../LICENSE ./src --skip-files=database.yml
|