Skip to content

AcklenAvenue/hubot-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Hubot+Typescript

###Why? Because TypeScript is the next big thing. Also because hubot scripts are powerful and fun. Why NOT is the better question?

###Hubot is written in coffeescript... what class of witchcraft is at work here?? Yes, Hubot is written in coffeescript. And, normally, hubot scripts are also written in coffeescript. BUT, you can also include normal javascript files (*.js) at hubot scripts. TypeScript compiles down to javascript, so there's no reason why we can't write hubot scripts in TypeScript!

##Getting started:

###You should have a few things installed globally on your dev machine.

###You need to install all the project-specific node packages:

  • Clone this repo and navigate to the project folder
  • npm install

###Test the hubot

  • run.bat will run grunt to compile the ts file(s) and then runs bin/hubot
  • sh run.sh if using OSX or Linux.
  • Try typing howdy at the prompt... you should get a response.

###Set up your dev environment:

##Get moving:

###Learn Typescript:

###Learn Hubot:

###Create a hubot script:

  • Create a new file in /scripts with extension .ts
  • Use the helloWorld.ts script as a guide
  • To compile the .ts files to javascript, run grunt from the command line
  • To compile and run hubot in one command, use run.bat in Windows or sh run.sh in OSX or Linux.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published