Пример #1
0
 var init = after(files.length + 1, function () {
   cb()
   if (!options.noFunnyBusiness) {
     kexec(templateData.install)
   } else {
     console.log('WARNING: you passed the "noFunnyBusiness" paramater, so packages won\'t be installed!')
     console.log('DANGER: be sure to run the following command to install the required packages=:')
     console.log('    ' + templateData.install)
     console.log(catMe())
     console.log('thank you')
   }
 })
Пример #2
0
 var init = after(count, function () {
   console.log(name + ' project has been mk\'d with ' + selected + ' boilerplate!')
   console.log(catMe())
   console.log('W A Y    C H I L L!               =^.^=            R A D I C A L!')
   cb()
   if (!options.noFunnyBusiness) {
     kexec('cd ' + name + ' && npm init && ' + templateData.install + ' && git init && git add -A && git commit -m \'initial\'')
   } else {
     console.log('WARNING: you passed the no funny business option')
     console.log('WARNING: therefore packages will not be installed nor will a git repository be initialized and committed to')
     console.log('DANGER: be certain to run     ' + templateData.install + '  so as to install the necessary packages')
     console.log('ADVICE: and please use version control because really why not i mean it doesn\'t mean you gotta make super nice clean commits all the time and doe everything through feature branches and pull requests, gosh, just make a big commit when you have things working and that way you can easily jump back if you need to or take a look at a diff and see what went so utterly wrong')
   }
 })
Пример #3
0
var cats = require("cat-me"),
    knock = require("knock-knock-jokes")

console.log(cats('nyan'));
console.log(knock());
Пример #4
0
var catMe = require("cat-me");	//https://www.npmjs.com/package/cat-me
var joke = require("knock-knock-jokes");	//https://www.npmjs.com/package/knock-knock-jokes

console.log(catMe());
console.log("a random ASCII cat appears and tells a joke!");
console.log(joke());
Пример #5
0
var cat = require("cat-me");
var joke = require("knock-knock-jokes");

console.log (cat());

console.log (joke());