From 2966400cf6bffebd08b2d9034bc446d976f31846 Mon Sep 17 00:00:00 2001 From: Geoff Kimball Date: Tue, 2 Dec 2014 19:09:12 -0800 Subject: [PATCH] Add postinstall script --- lib/welcome.js | 40 ++++++++++++++++++++++++++++++++++++++++ package.json | 1 + 2 files changed, 41 insertions(+) create mode 100755 lib/welcome.js diff --git a/lib/welcome.js b/lib/welcome.js new file mode 100755 index 0000000..0417213 --- /dev/null +++ b/lib/welcome.js @@ -0,0 +1,40 @@ +#!/usr/bin/env node + +// /| +// | | /| . +// . /\| \/ |/| +// |\/ | +// ||\__/\____/|| +// ___|| ======== ||___ +// /___|| O O ||___\ +// || ______, || +// /| |\ +// /_/\\/\ /\//\_\ +// \/\\//\/ +// \/ + +var colors = require('colors'); + +var yeti = [ + '\n /|' +, '\n | | /| .' +, '\n . /\\| \\/ |/|' +, '\n |\\/ |' +, '\n |'+'|\\__/\\____/|'.cyan+'|' +, '\n '+'___'.gray+'|'+'|'.cyan+' '+'========'.gray+' '+'|'.cyan+'|'+'___'.gray +, '\n '+'/___'.gray+'|'+'|'.cyan+' '+'O'.cyan+' '+'O'.cyan+' ||'+'___\\'.gray +, '\n |'+'|'.cyan+' '+'______,'.cyan+' '+'|'.cyan+'|' +, '\n /'+'|'.cyan+' '+'|'.cyan+'\\ ' +, '\n /_/\\'+'\\/\\'.cyan+' '+'/\\/'.cyan+'/\\_\\ ' +, '\n \\/\\'+'\\/'.cyan+'/\\/' +, '\n \\/' +, '\n' +]; + +yeti[3] = yeti[3] + ' '+'Thanks for installing Foundation for Apps!'; +yeti[4] = yeti[4] + ' ------------------------------------------'; +yeti[5] = yeti[5] + ' Type '+'foundation-apps new app'.cyan+' to create a new app,'; +yeti[6] = yeti[6] + ' or '+'foundation-apps help'.cyan+' to see every command.'; +yeti[8] = yeti[8] + ' '+'@zurbfoundation'.cyan+' on Twitter'; + +console.log(yeti.join('')); \ No newline at end of file diff --git a/package.json b/package.json index 9f8ac26..82f5a08 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,7 @@ "update-notifier": "^0.2.2" }, "scripts": { + "postinstall": "./lib/welcome.js", "test": "./bin/cli.js new test" }, "bin": {