Skip to content

Commit

Permalink
Merge pull request #1466 from loveonelong/master
Browse files Browse the repository at this point in the history
chore(package): Move coffee-scirpt to coffeescript
  • Loading branch information
technicalpickles authored Jan 10, 2019
2 parents 3e32c1e + 37ea3d4 commit f9b18be
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/adapters/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ exports.use = (robot) ->
"hubot": ">=2.0"
},
"devDependencies": {
"coffee-script": ">=1.2.0"
"coffeescript": ">=1.2.0"
}
```

Expand Down
2 changes: 1 addition & 1 deletion docs/deploying/azure.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Then, edit this file and look for the sections that give you steps 1, 2 and 3. Y

Now, create a new file in the base directory of hubot called `server.js` and put these two lines into it:

require('coffee-script/register');
require('coffeescript/register');
module.exports = require('hubot/bin/hubot.coffee');

Finally you will need to add the environment variables to the website to make sure it runs properly. You can either do it through the GUI (under configuration) or you can use the Azure PowerShell command line, as follows (example is showing slack as an adapter and mynewhubot as the website name).
Expand Down
6 changes: 3 additions & 3 deletions docs/scripting.md
Original file line number Diff line number Diff line change
Expand Up @@ -871,12 +871,12 @@ You'll also need to install:

You may also want to install:

* *coffee-script* (if you're writing your tests in CoffeeScript rather than JavaScript)
* *coffeescript* (if you're writing your tests in CoffeeScript rather than JavaScript)
* a mocking library such as *Sinon.js* (if your script performs webservice calls or
other asynchronous actions)

Here is a sample script that tests the first couple of commands in the
[Hubot sample script](https://github.com/hubotio/generator-hubot/blob/master/generators/app/templates/scripts/example.coffee). This script uses *Mocha*, *chai*, *coffee-script*, and of course *hubot-test-helper*:
[Hubot sample script](https://github.com/hubotio/generator-hubot/blob/master/generators/app/templates/scripts/example.coffee). This script uses *Mocha*, *chai*, *coffeescript*, and of course *hubot-test-helper*:

**test/example-test.coffee**
```coffeescript
Expand Down Expand Up @@ -918,7 +918,7 @@ describe 'example script', ->

**sample output**
```bash
% mocha --require coffee-script/register test/*.coffee
% mocha --require coffeescript/register test/*.coffee


example script
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"async": ">=0.1.0 <1.0.0",
"chalk": "^1.0.0",
"cline": "^0.8.2",
"coffee-script": "1.6.3",
"coffeescript": "1.6.3",
"connect-multiparty": "^2.1.1",
"express": "^4.16.3",
"log": "1.4.0",
Expand Down

0 comments on commit f9b18be

Please sign in to comment.