generator-hubot-script
generator-hubot-script copied to clipboard
I could be amiss, but how do you actually run a script with hubot when testing with this generator?
I've been able to create a script, but can't figure out the best way to actually run hubot and test it (besides the actual mocha tests) in the actual hubot script project. My process thus far has been pretty crappy (see below).
- Update script
- Commit script to git
- grunt release to increment version and publish to nom repo
- [in another terminal] Update the package.json (add new version of script) of dummy hubot project
- npm update
- bin/hubot --name lamesauce
- hubot there must be an easier way
Actually, figured this out shortly after posting. I ended up using https://www.npmjs.org/package/hubot-script-boilerplate. Other steps that I took:
- Created a .npmignore file
- Added 'external-scripts.json' and
node_modulesto it - Added the script that I am working on to external-scripts.json
- Added the script to package.json
- Now I just have to run npm update in the same project that I'm working from within