commit 808934fae5968ae0d967bdd3d1d5f5ba9322881e
parent 2a54606abd6b00fb33381e07d8a31b20c2ff25fb
Author: Sebastian <sebasjm@gmail.com>
Date: Tue, 23 Feb 2021 16:43:24 -0300
installation script
Diffstat:
3 files changed, 29 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md
@@ -20,6 +20,12 @@ Check the requirements and run `./bootstrap` and `./configure`
Then run `make` to install all the nodejs dependencies
+By default the installation prefix will be `/var/www/html` but it can be overrided by --prefix in the configuration process
+
+```shell
+./configure --prefix=/another/directory
+```
+
## Running develop
To run a development server run
@@ -29,9 +35,16 @@ make dev
```
This should start a watch process that will reload the server every time that a file is saved.
+Override the PORT variable to run the server in another port.
+
+```shell
+make dev PORT=9090
+```
## Building for deploy
+To
+
## CLI Commands
* `make compile`: Installs dependencies and compile with typescript
diff --git a/build-system/Makefile b/build-system/Makefile
@@ -10,10 +10,18 @@ compile:
pnpm i -r
pnpm run compile
+# .PHONY: dist
+# dist:
+# $(git-archive-all) --include ./configure taler-wallet-$(shell git describe --tags).tar.gz
+
# .PHONY: publish
# publish: compile
# pnpm publish -r --no-git-checks
+# make documentation from docstrings
+.PHONY: echo
+echo:
+ echo ${PORT}
.PHONY: typedoc
typedoc:
@@ -50,3 +58,10 @@ dev-view: compile
.PHONY: lint
lint:
pnpm run lint
+
+.PHONY: install
+install: build
+ echo install -d ${prefix}
+ for file in `find packages/frontend/build/ -type f`; do \
+ install -m 644 -D $$file ${prefix}/$${file#packages/frontend/build/}; \
+ done
diff --git a/build-system/config.mk b/build-system/config.mk
@@ -1,5 +1,5 @@
# this makefile fragment is autogenerated by configure.py
-prefix = /usr/local
+prefix = /home/sebasjm/local-taler
make = make
node = node
npm = npm