From ab9373c188325579c8402cff36efc4be0e8733d4 Mon Sep 17 00:00:00 2001 From: Kevin Jahns Date: Fri, 18 Dec 2020 16:17:38 +0100 Subject: [PATCH] funding message --- funding.cjs | 11 +++++++++++ package.json | 3 ++- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 funding.cjs diff --git a/funding.cjs b/funding.cjs new file mode 100644 index 00000000..1eb4169b --- /dev/null +++ b/funding.cjs @@ -0,0 +1,11 @@ + +const log = require('lib0/dist/logging.cjs') + +log.print() +log.print(log.BOLD, log.GREEN, log.BOLD, 'Thank you for using Yjs ', log.RED, '❤\n') +log.print(log.GREY, 'The project has grown considerably in the past year. Too much for me to maintain in my spare time.') +log.print(log.GREY, 'Many companies build their products using this technology. Yet, this project receives very little funding.') +log.print(log.GREY, 'Yjs is far from done. I want to create more awesome extensions and work on the open issues that I') +log.print(log.GREY, 'currently don\'t have time for. Dear user, the future of this project entirely depends on you.\n') +log.print(log.BLUE, log.BOLD, 'Please start funding the project now: https://github.com/sponsors/dmonad \n') +log.print(log.GREY, '(This message will be removed when I achieved my funding goal)\n\n') diff --git a/package.json b/package.json index 5e24b984..3b265715 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,8 @@ "preversion": "npm run lint && PRODUCTION=1 npm run dist && npm run docs && node ./dist/tests.cjs --repitition-time 1000 && test -e dist/src/index.d.ts && test -e dist/yjs.cjs && test -e dist/yjs.cjs", "debug": "concurrently 'http-server -o test.html' 'npm run watch'", "trace-deopt": "clear && rollup -c && node --trace-deopt dist/test.cjs", - "trace-opt": "clear && rollup -c && node --trace-opt dist/test.cjs" + "trace-opt": "clear && rollup -c && node --trace-opt dist/test.cjs", + "postinstall": "node ./funding.cjs" }, "files": [ "dist/*",