Coder Social home page Coder Social logo

hook.io-blueprint-coffeescript's Introduction

About hook.io-blueprint-coffeescript

A blueprint for your own hook.io hooks using Coffeescript and Vows

BlueprintCoffeescript Icon

Build Status

Please note that travis-ci.org does not build this correctly because the module requires node v 0.4.11 but travis has 0.4.8 installed at this point.

Install

npm install -g hook.io-blueprint-coffeescript

Usage

./bin/hookio-blueprint-coffeescript 

This starts a hook and reads the local config.json. Messages will be sent.

Messages

blueprint-coffeescript::foo [in]

message: a text message

blueprint-coffeescript::error [out]

error: Would contain errors if we had them

blueprint-coffeescript::bar [out]

message : a text message

Hook.io Schema support

The package config contains experimental hook.io schema definitions. The definition is also exported as hook.

Coffeescript

BlueprintCoffeescript = require("hook.io-blueprint-coffeescript").BlueprintCoffeescript
hook = new BlueprintCoffeescript(name: 'blueprint-coffeescript')

Javascript

var BlueprintCoffeescript = require("hook.io-blueprint-coffeescript").BlueprintCoffeescript;
var hook = new BlueprintCoffeescript({ name: 'blueprint-coffeescript' });

Advertising :)

Check out

Follow us on Twitter at

  • @getscottyapp
  • @martin_sunset

and like us on Facebook please. Every mention is welcome and we follow back.

Trivia

Listened to lots of Rage Against the Machine while writing this. Feeling very old now...

Release Notes

0.0.2

  • Fixed placement of .on
  • Improved usage of Coffeescript

0.0.1

  • First version

Internal Stuff

  • npm run-script watch

Publish new version

  • Change version in package.json
  • git tag -a v0.0.2 -m 'version 0.0.2'
  • git push --tags
  • npm publish

Contributing to hook.io-blueprint-coffeescript

  • Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
  • Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
  • Fork the project
  • Start a feature/bugfix branch
  • Commit and push until you are happy with your contribution
  • Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
  • Please try not to mess with the package.json, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.

Copyright

Copyright (c) 2011 Martin Wawrusch. See LICENSE for further details.

hook.io-blueprint-coffeescript's People

Contributors

mwawrusch avatar

Stargazers

Kevin Hatfield avatar node-migrator-bot avatar Ian Jennings avatar Martin Cleaver avatar

Watchers

James Cloos avatar  avatar

Forkers

cloudxtreme

hook.io-blueprint-coffeescript's Issues

Error: Request for non-enumerable method: cullYours

Hi Martin,

I tried running this in node 0.6.7 bin/hookio-blueprint-coffeescript against a communicating hookio process.
Error: Request for non-enumerable method: cullYours
at EventEmitter.handle (.../node_modules/hook.io-blueprint-coffeescript/node_modules/hook.io/node_modules/dnode/node_modules/dnode-protocol/index.js:98:36)
at .../node_modules/hook.io/node_modules/dnode/node_modules/dnode-protocol/index.js:69:20
at EventEmitter.

Meanwhile that first hookio node complained:
Looks like invalid data being sent ( probably mix and matching hook.io versions )
TypeError: Cannot call method 'forEach' of undefined
at [object Object]._registerEvents (/usr/local/lib/node_modules/hook.io/lib/hookio/hook.js:640:14)
at [object Object].report (/usr/local/lib/node_modules/hook.io/lib/hookio/hook.js:702:14)
at [object Object]. (/usr/local/lib/node_modules/hook.io/vendor/dnode-protocol/index.js:301:16)
at apply (/usr/local/lib/node_modules/hook.io/vendor/dnode-protocol/index.js:156:17)
at EventEmitter.handle (/usr/local/lib/node_modules/hook.io/vendor/dnode-protocol/index.js:133:13)
at /usr/local/lib/node_modules/hook.io/vendor/dnode-protocol/index.js:89:20
at EventEmitter. (/usr/local/lib/node_modules/hook.io/node_modules/lazy/lazy.js:62:13)
at EventEmitter. (/usr/local/lib/node_modules/hook.io/node_modules/lazy/lazy.js:46:19)
at EventEmitter.emit (events.js:67:17)
at EventEmitter. (/usr/local/lib/node_modules/hook.io/node_modules/lazy/lazy.js:46:39)

martincleaversmbp:hook.io-blueprint-coffeescript martincleaver$ npm -g view hook.io version
0.8.7-1

martincleaversmbp:hook.io-blueprint-coffeescript martincleaver$ npm view hook.io version
0.8.7-1

Any clue what is going on?

P.S. your instructions might want to mention to run 'hookio' in another window. If not, maybe you can tell me what I am supposed to run.

Thanks,
Martin C.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.