funding message

This commit is contained in:
Kevin Jahns 2020-12-18 16:17:38 +01:00
parent 50e5964fcb
commit ab9373c188
2 changed files with 13 additions and 1 deletions

11
funding.cjs Normal file
View File

@ -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')

View File

@ -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/*",