CI: Add Makefile to /frontend directory
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
parent
14caae4b02
commit
b536e50005
1 changed files with 41 additions and 0 deletions
41
frontend/Makefile
Normal file
41
frontend/Makefile
Normal file
|
@ -0,0 +1,41 @@
|
|||
# Copyright © 2018 - 2023 PhotoPrism UG. All rights reserved.
|
||||
#
|
||||
# Questions? Email us at hello@photoprism.app or visit our website to learn
|
||||
# more about our team, products and services: https://www.photoprism.app/
|
||||
|
||||
# Declare "make" targets.
|
||||
all: install build
|
||||
dep: install-npm install-testcafe install
|
||||
dep-list:
|
||||
npx npm-check-updates
|
||||
install-npm:
|
||||
sudo npm install --unsafe-perm=true --allow-root -g npm@latest npm-check-updates@latest
|
||||
install-testcafe:
|
||||
sudo npm install --unsafe-perm=true --allow-root -g testcafe@3.4.0
|
||||
install:
|
||||
npm install --no-update-notifier --no-audit
|
||||
update:
|
||||
npm update
|
||||
watch:
|
||||
npm run watch
|
||||
build:
|
||||
npm run build
|
||||
lint:
|
||||
npm run lint
|
||||
fmt:
|
||||
npm run fmt
|
||||
test:
|
||||
npm run test
|
||||
upgrade:
|
||||
npm run upgrade
|
||||
testcafe:
|
||||
npm run testcafe
|
||||
acceptance-local:
|
||||
npm run acceptance-local
|
||||
gettext-extract:
|
||||
npm run gettext-extract
|
||||
gettext-compile:
|
||||
npm run gettext-compile
|
||||
|
||||
# Declare all targets as "PHONY", see https://www.gnu.org/software/make/manual/html_node/Phony-Targets.html.
|
||||
MAKEFLAGS += --always-make
|
Loading…
Reference in a new issue