summaryrefslogtreecommitdiff
path: root/build-system
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2021-02-18 09:46:02 -0300
committerSebastian <sebasjm@gmail.com>2021-02-18 09:46:02 -0300
commit87619712cd85272ab905d5714d5e6aedd2cb8156 (patch)
treeb60511a6593f8fe47c534f1667dbe33249c226f5 /build-system
parentf688008107b76d7809d56d1598aeb3355c1d13ac (diff)
downloadmerchant-backoffice-87619712cd85272ab905d5714d5e6aedd2cb8156.tar.gz
merchant-backoffice-87619712cd85272ab905d5714d5e6aedd2cb8156.tar.bz2
merchant-backoffice-87619712cd85272ab905d5714d5e6aedd2cb8156.zip
implemented pnpm
Diffstat (limited to 'build-system')
-rw-r--r--build-system/Makefile45
-rw-r--r--build-system/config.mk6
-rw-r--r--build-system/configure.py25
-rw-r--r--build-system/node_modules/.pnpm-debug.log17
m---------build-system/taler-build-scripts0
5 files changed, 93 insertions, 0 deletions
diff --git a/build-system/Makefile b/build-system/Makefile
new file mode 100644
index 0000000..36279d5
--- /dev/null
+++ b/build-system/Makefile
@@ -0,0 +1,45 @@
+# This Makefile has been placed in the public domain.
+
+src = src
+
+tsc = node_modules/typescript/bin/tsc
+typedoc = node_modules/typedoc/bin/typedoc
+ava = node_modules/.bin/ava
+nyc = node_modules/nyc/bin/nyc.js
+git-archive-all = ./build-system/taler-build-scripts/archive-with-submodules/git_archive_all.py
+
+include ./build-system/config.mk
+
+.PHONY: compile
+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: typedoc
+typedoc:
+ pnpm run typedoc
+
+.PHONY: clean
+clean:
+ pnpm run clean
+
+.PHONY: submodules-update
+submodules-update:
+ git submodule update --recursive --remote
+
+.PHONY: check
+check: compile
+ pnpm run check
+
+.PHONY: lint
+lint:
+ pnpm run lint
diff --git a/build-system/config.mk b/build-system/config.mk
new file mode 100644
index 0000000..4684cc4
--- /dev/null
+++ b/build-system/config.mk
@@ -0,0 +1,6 @@
+# this makefile fragment is autogenerated by configure.py
+prefix = /usr/local
+make = make
+node = node
+npm = npm
+pnpm = pnpm
diff --git a/build-system/configure.py b/build-system/configure.py
new file mode 100644
index 0000000..d76a679
--- /dev/null
+++ b/build-system/configure.py
@@ -0,0 +1,25 @@
+# This configure.py file is places in the public domain.
+
+# Configure the build directory.
+# This file is invoked by './configure' and should usually not be invoked
+# manually.
+
+import talerbuildconfig as tbc
+import sys
+import shutil
+
+if getattr(tbc, "serialversion", 0) < 2:
+ print("talerbuildconfig outdated, please update the build-common submodule and/or bootstrap")
+ sys.exit(1)
+
+b = tbc.BuildConfig()
+b.enable_prefix()
+b.enable_configmk()
+b.add_tool(tbc.PosixTool("make"))
+b.add_tool(tbc.NodeJsTool(version_spec=">=14"))
+b.add_tool(tbc.GenericTool("npm"))
+b.add_tool(tbc.GenericTool("pnpm", hint="Use 'sudo npm install -g pnpm' to install."))
+b.run()
+
+print("copying Makefile")
+shutil.copyfile("build-system/Makefile", "Makefile")
diff --git a/build-system/node_modules/.pnpm-debug.log b/build-system/node_modules/.pnpm-debug.log
new file mode 100644
index 0000000..d28f085
--- /dev/null
+++ b/build-system/node_modules/.pnpm-debug.log
@@ -0,0 +1,17 @@
+{
+ "0 debug pnpm:scope": {
+ "selected": 1,
+ "workspacePrefix": "/home/sebasjm/Work/taler/merchant-backoffice"
+ },
+ "1 error pnpm": {
+ "message": {
+ "code": "ERR_PNPM_ADDING_TO_ROOT"
+ },
+ "err": {
+ "name": "Error",
+ "message": "Running this command will add the dependency to the workspace root, which might not be what you want - if you really meant it, make it explicit by running this command again with the -w flag (or --workspace-root). If you don't want to see this warning anymore, you may set the ignore-workspace-root-check setting to true.",
+ "code": "ERR_PNPM_ADDING_TO_ROOT",
+ "stack": "Error: Running this command will add the dependency to the workspace root, which might not be what you want - if you really meant it, make it explicit by running this command again with the -w flag (or --workspace-root). If you don't want to see this warning anymore, you may set the ignore-workspace-root-check setting to true.\n at Object.handler [as add] (/opt/node-v14.15.0-linux-x64/pnpm-global/4/node_modules/.pnpm/pnpm@5.17.2/node_modules/pnpm/dist/pnpm.js:116497:13)\n at Timeout._onTimeout (/opt/node-v14.15.0-linux-x64/pnpm-global/4/node_modules/.pnpm/pnpm@5.17.2/node_modules/pnpm/dist/pnpm.js:125589:84)\n at listOnTimeout (internal/timers.js:554:17)\n at processTimers (internal/timers.js:497:7)"
+ }
+ }
+} \ No newline at end of file
diff --git a/build-system/taler-build-scripts b/build-system/taler-build-scripts
new file mode 160000
+Subproject e08ea37979dcc17ac8e0987251771d771503cb5