-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
63 lines (44 loc) · 1.03 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Makefile for building the project
app_name=nextpod
project_dir=$(CURDIR)/../$(app_name)
build_dir=$(CURDIR)/build/artifacts
appstore_dir=$(build_dir)/appstore
source_dir=$(build_dir)/source
sign_dir=$(build_dir)/sign
package_name=$(app_name)
build-release:
rm -rf js/*
composer install --no-dev
npm install
npm run build
all: dev-setup build-js-production
dev-setup: clean-dev npm-init
dependabot: dev-setup npm-update build-js-production
release: appstore create-tag
build-js:
npm run dev
build-js-production:
npm run build
watch-js:
npm run watch
test:
npm run test:unit
lint:
npm run lint
lint-fix:
npm run lint:fix
npm-init:
npm ci
npm-update:
npm update
clean:
rm -rf js/*
rm -rf $(build_dir)
clean-dev: clean
rm -rf node_modules
create-tag:
export version=$$(xmllint --xpath "string(/info/version)" appinfo/info.xml); \
git tag -a v$$version -m "Tagging the $$version release."; \
git push origin v$$version
screenshots:
cd playwright && npx playwright test tests/screenshots.spec.ts --project=chromium --headed