aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README46
-rwxr-xr-xbin/taler-wallet-cli2
-rw-r--r--package.json3
3 files changed, 34 insertions, 17 deletions
diff --git a/README b/README
index ece8c2fba..f2256cc48 100644
--- a/README
+++ b/README
@@ -1,34 +1,46 @@
GNU Taler Wallet
================
-Cross-browser GNU Taler wallet written for the WebExtensions API.
+This package implements a wallet for GNU Taler in TypeScript.
+It can be run on different platforms:
+1. As a cross-browser extension, written for the WebExtension API
+2. As a Node.JS package
-Installation
+
+Dependencies
============
+Dependencies are managed as NPM dependencies. For performance reasons,
+we use `yarn' as a replacement for `npm' in the build system.
+
+For cryptographic operations, the wallet uses an emscripten-compiled
+library. The binary files for this library are in `./emscripten'.
+The instructions for building this binary from scrach can be found
+in the libtaler-emscripten repository:
+
+https://git.taler.net/libtalerutil-emscripten.git/
+
+
+Building from source (Web Extension)
+======================================
+
Run `./configure && make' to create an archive
containing the extension in ./build/taler-wallet-$VERSION.zip
-Dependencies
-============
-See thirdparty/README for a list of dependencies that are checked into this
-repository as a git subtree.
+Building from source (Node.JS)
+======================================
-This project also has the following third-party runtime dependencies, which
-are checked in compiled or minified form:
-- React (Facebook Inc., BSD License)
+Run `./configure && make tsc' to build the wallet. The command line
+interface for the wallet is available in `./bin/taler-wallet-cli'.
-Emscripten compiled dependencies:
-* libgnunetutil
-* libgnunetjson
-* libgcrypt
-* libunistring
+Installation
+============
+To install the package permanently on your system, run:
-Documentation
-=============
+$ npm install -g --prefix $PREFIX .
-See the documentation at http://doc.taler.net/dev-wallet-wx.html
+The binaries will be installed to `$PREFIX/bin'.
diff --git a/bin/taler-wallet-cli b/bin/taler-wallet-cli
new file mode 100755
index 000000000..1dbf05a08
--- /dev/null
+++ b/bin/taler-wallet-cli
@@ -0,0 +1,2 @@
+#!/usr/bin/env node
+require('../dist/node/headless/taler-wallet-cli.js')
diff --git a/package.json b/package.json
index e1becbf3e..3cb44a0c3 100644
--- a/package.json
+++ b/package.json
@@ -12,6 +12,9 @@
"bin": {
"taler-wallet-cli": "./bin/taler-wallet-cli"
},
+ "scripts": {
+ "build": "make tsc"
+ },
"devDependencies": {
"@types/moment": "^2.13.0",
"@types/react": "^16.4.0",