wallet-core/Makefile

127 lines
3.9 KiB
Makefile
Raw Normal View History

2020-11-13 22:33:05 +01:00
# This Makefile has been placed in the public domain.
2016-02-22 19:08:16 +01:00
tsc = node_modules/typescript/bin/tsc
pogen = node_modules/@gnu-taler/pogen/bin/pogen.js
2017-05-24 15:10:37 +02:00
typedoc = node_modules/typedoc/bin/typedoc
ava = node_modules/.bin/ava
2017-05-27 18:05:10 +02:00
nyc = node_modules/nyc/bin/nyc.js
2020-11-13 22:12:54 +01:00
git-archive-all = ./build-system/taler-build-scripts/archive-with-submodules/git_archive_all.py
include .config.mk
2016-02-22 19:08:16 +01:00
.PHONY: compile
compile:
pnpm install -r --frozen-lockfile
pnpm run compile
2017-05-27 18:05:10 +02:00
.PHONY: dist
2017-05-24 14:31:13 +02:00
dist:
$(git-archive-all) \
--include ./configure \
--include ./packages/taler-wallet-cli/configure \
--include ./packages/demobank-ui/configure \
2023-01-26 22:14:57 +01:00
--include ./packages/taler-harness/configure \
--include ./packages/merchant-backoffice-ui/configure \
taler-wallet-$(shell git describe --tags --abbrev=0).tar.gz
2021-08-24 15:49:07 +02:00
# Create tarball with git hash prefix in name
.PHONY: dist-git
dist-git:
2020-11-13 22:33:05 +01:00
$(git-archive-all) --include ./configure taler-wallet-$(shell git describe --tags).tar.gz
2016-02-23 15:58:05 +01:00
.PHONY: publish
publish:
pnpm i -r --frozen-lockfile
pnpm run compile
pnpm publish -r --no-git-checks
2023-01-23 19:12:48 +01:00
.PHONY: backoffice-prebuilt
backoffice-prebuilt:
pnpm install --frozen-lockfile --filter @gnu-taler/merchant-backoffice-ui...
pnpm run --filter @gnu-taler/merchant-backoffice-ui... build
./contrib/copy-backoffice-into-prebuilt.sh
2023-01-23 19:12:48 +01:00
2023-03-02 18:43:08 +01:00
.PHONY: backend-prebuilt
backend-prebuilt:
pnpm install --frozen-lockfile --filter @gnu-taler/merchant-backend-ui...
pnpm run --filter @gnu-taler/merchant-backend... build
./contrib/copy-backend-into-prebuilt.sh
2023-03-02 18:43:08 +01:00
.PHONY: demobank-prebuilt
demobank-prebuilt:
pnpm install --frozen-lockfile --filter @gnu-taler/merchant-ba...
pnpm run --filter @gnu-taler/demobank-ui... build
./contrib/copy-demobank-into-prebuilt.sh
2023-03-02 18:43:08 +01:00
2017-05-24 15:10:37 +02:00
# make documentation from docstrings
2017-05-27 18:05:10 +02:00
.PHONY: typedoc
2017-05-24 15:10:37 +02:00
typedoc:
$(typedoc) --out dist/typedoc --readme README
2017-05-24 15:10:37 +02:00
2017-05-27 18:05:10 +02:00
.PHONY: clean
2017-05-24 15:10:37 +02:00
clean:
pnpm run clean
2017-05-24 15:10:37 +02:00
2019-10-14 19:09:12 +02:00
.PHONY: submodules-update
submodules-update:
git submodule update --recursive --remote
2017-05-27 18:05:10 +02:00
.PHONY: check
check:
2022-03-08 13:14:33 +01:00
pnpm install -r --frozen-lockfile
pnpm run compile
pnpm run check
2019-08-20 16:05:38 +02:00
.PHONY: config-lib
config-lib:
pnpm install --frozen-lockfile --filter @gnu-taler/taler-config-lib...
cd ./packages/taler-config-lib/ && pnpm link -g
2022-05-23 17:44:36 +02:00
.PHONY: anastasis-webui
anastasis-webui:
2022-06-24 20:24:41 +02:00
pnpm install --frozen-lockfile --filter . --filter @gnu-taler/anastasis-webui...
2022-06-24 19:55:12 +02:00
pnpm run --filter @gnu-taler/anastasis-webui... build
2022-05-23 17:44:36 +02:00
.PHONY: anastasis-webui-dist
anastasis-webui-dist: anastasis-webui
(cd packages/anastasis-webui/dist && zip -r - fonts ui.html) > anastasis-webui.zip
2022-05-23 17:44:36 +02:00
2022-09-05 18:02:53 +02:00
.PHONY: anastasis-webui-dev
anastasis-webui-dev:
pnpm install --frozen-lockfile --filter @gnu-taler/anastasis-webui...
pnpm run --filter @gnu-taler/anastasis-webui... dev
2022-03-08 13:14:33 +01:00
.PHONY: webextension
webextension:
2022-03-08 13:14:33 +01:00
pnpm install --frozen-lockfile --filter @gnu-taler/taler-wallet-webextension...
pnpm run --filter @gnu-taler/taler-wallet-webextension... compile
2023-05-30 19:59:03 +02:00
cd ./packages/taler-wallet-webextension/ && ./pack.sh prod
2019-08-20 16:05:38 +02:00
2022-09-05 18:02:53 +02:00
.PHONY: webextension-dev
webextension-dev:
pnpm install --frozen-lockfile --filter @gnu-taler/taler-wallet-webextension...
pnpm run --filter @gnu-taler/taler-wallet-webextension... dev
2023-01-02 20:21:53 +01:00
.PHONY: embedded
embedded:
2023-06-06 14:48:21 +02:00
pnpm install --frozen-lockfile --ignore-scripts --filter @gnu-taler/taler-wallet-embedded...
2023-06-06 14:53:27 +02:00
pnpm run --filter @gnu-taler/taler-wallet-embedded compile...
2023-01-17 00:32:13 +01:00
@echo built packages/taler-wallet-embedded/dist/taler-wallet-core-qjs.mjs
2023-01-02 20:21:53 +01:00
2020-04-06 20:02:01 +02:00
.PHONY: lint
lint:
2020-04-07 10:07:32 +02:00
./node_modules/.bin/eslint --ext '.js,.ts,.tsx' 'src'
2022-10-31 16:06:22 +01:00
install: compile
2022-10-31 16:06:22 +01:00
@echo Please run \'make install\' from one of the directories in packages/\'
# Install taler-wallet-cli and taler-harness
install-tools:
2023-06-06 14:59:56 +02:00
pnpm install --frozen-lockfile --ignore-scripts --filter @gnu-taler/taler-wallet-cli... --filter @gnu-taler/taler-harness...
pnpm run --filter @gnu-taler/taler-wallet-cli... --filter @gnu-taler/taler-harness... compile
make -C packages/taler-wallet-cli install-nodeps
make -C packages/taler-harness install-nodeps