From d4886c1f6fb2a025469e7825d744056d7511dda0 Mon Sep 17 00:00:00 2001 From: Francisco Hodge Date: Tue, 7 Aug 2018 09:08:36 -0400 Subject: [PATCH] npm update --- package.json | 3 ++- scripts/postinstall.js | 10 ++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 scripts/postinstall.js diff --git a/package.json b/package.json index 86f3ec6a..c3bb6493 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "simple-keyboard", - "version": "2.3.11", + "version": "2.3.12", "description": "On-screen Virtual Keyboard", "main": "build/index.js", "scripts": { @@ -8,6 +8,7 @@ "build": "node scripts/build.js", "demo": "node scripts/demo.js", "test": "node scripts/test.js --env=jsdom", + "postinstall": "node scripts/postinstall.js", "prepublish": "npm run build" }, "repository": { diff --git a/scripts/postinstall.js b/scripts/postinstall.js new file mode 100644 index 00000000..efb95368 --- /dev/null +++ b/scripts/postinstall.js @@ -0,0 +1,10 @@ +console.log('\x1b[36m%s\x1b[0m', ` +______________________________________\n`); + +console.log('\x1b[33m%s\x1b[0m', `Thank you for installing simple-keyboard !`); + +console.log('\x1b[36m%s\x1b[0m', ` +Please consider starring the repository so others can also find it. +https://github.com/hodgef/simple-keyboard/stargazers +______________________________________ +`); \ No newline at end of file