repo: GNU-style build system for demobank-ui package
This commit is contained in:
parent
f929cbb808
commit
9cc20fc5af
@ -21,6 +21,10 @@ copy_configure() {
|
||||
# accidental changes in the wrong place.
|
||||
chmod ogu-w $dst || true
|
||||
}
|
||||
|
||||
# To enable a GNU-style build system, we copy a configure
|
||||
# script to each package that can be installed
|
||||
our_configure=build-system/taler-build-scripts/configure
|
||||
copy_configure "$our_configure" ./configure
|
||||
copy_configure "$our_configure" ./packages/taler-wallet-cli/configure
|
||||
copy_configure "$our_configure" ./packages/demobank-ui/configure
|
||||
|
21
packages/demobank-ui/Makefile
Normal file
21
packages/demobank-ui/Makefile
Normal file
@ -0,0 +1,21 @@
|
||||
# This Makefile has been placed in the public domain
|
||||
|
||||
# Settings from "./configure"
|
||||
include .config.mk
|
||||
|
||||
all:
|
||||
@echo run \'make install\' to install
|
||||
|
||||
spa_dir=$(prefix)/share/taler/demobank-ui
|
||||
|
||||
install:
|
||||
pnpm install --frozen-lockfile --filter @gnu-taler/demobank-ui...
|
||||
pnpm run check
|
||||
pnpm run build
|
||||
install -d $(spa_dir)
|
||||
install ./dist/index.css $(spa_dir)
|
||||
install ./dist/index.css.map $(spa_dir)
|
||||
install ./dist/index.js $(spa_dir)
|
||||
install ./dist/index.js.map $(spa_dir)
|
||||
install ./dist/index.html $(spa_dir)
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"private": true,
|
||||
"name": "bank",
|
||||
"name": "@gnu-taler/demobank-ui",
|
||||
"version": "0.1.0",
|
||||
"license": "AGPL-3.0-OR-LATER",
|
||||
"scripts": {
|
||||
|
@ -973,7 +973,7 @@ function ErrorBanner(Props: any): VNode | null {
|
||||
class="pure-button"
|
||||
value="Clear"
|
||||
onClick={async () => {
|
||||
pageStateSetter((prev) => ({ ...prev, error: undefined }));
|
||||
pageStateSetter((prev: any) => ({ ...prev, error: undefined }));
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user