npm update

This commit is contained in:
Francisco Hodge 2018-08-07 09:08:36 -04:00
parent 6ba68a21e6
commit d4886c1f6f
2 changed files with 12 additions and 1 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "simple-keyboard", "name": "simple-keyboard",
"version": "2.3.11", "version": "2.3.12",
"description": "On-screen Virtual Keyboard", "description": "On-screen Virtual Keyboard",
"main": "build/index.js", "main": "build/index.js",
"scripts": { "scripts": {
@ -8,6 +8,7 @@
"build": "node scripts/build.js", "build": "node scripts/build.js",
"demo": "node scripts/demo.js", "demo": "node scripts/demo.js",
"test": "node scripts/test.js --env=jsdom", "test": "node scripts/test.js --env=jsdom",
"postinstall": "node scripts/postinstall.js",
"prepublish": "npm run build" "prepublish": "npm run build"
}, },
"repository": { "repository": {

10
scripts/postinstall.js Normal file
View File

@ -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
______________________________________
`);