-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix for #68, added utility functions, more descriptive error messages #71
Changes from all commits
d207c0f
da41623
e8a8285
f05471c
0957761
6572ca6
39baf0c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,13 +27,13 @@ Modify the "Stable Release" section in [README.md](README.md). Change the text t | |
``` | ||
## Stable Release | ||
|
||
You're reading the documentation for the stable release of alexa-app-server, 2.4.0. | ||
You're reading the documentation for the stable release of alexa-app-server, 3.0.1. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since these are examples I never change them, but no big deal. |
||
``` | ||
|
||
Change "Next Release" in [CHANGELOG.md](CHANGELOG.md) to the new version. | ||
|
||
``` | ||
### 2.4.0 (Feb 4, 2017) | ||
### 3.0.1 (Feb 7, 2017) | ||
``` | ||
|
||
Remove the line with "Your contribution here.", since there will be no more contributions to this release. | ||
|
@@ -42,13 +42,13 @@ Commit your changes. | |
|
||
``` | ||
git add README.md CHANGELOG.md | ||
git commit -m "Preparing for release, 2.4.0." | ||
git commit -m "Preparing for release, 3.0.1." | ||
``` | ||
|
||
Tag the release. | ||
|
||
``` | ||
git tag v2.4.0 | ||
git tag v3.0.1 | ||
``` | ||
|
||
Release. | ||
|
@@ -70,14 +70,14 @@ Modify the "Stable Release" section in [README.md](README.md). Change the text t | |
``` | ||
## Stable Release | ||
|
||
You're reading the documentation for the next release of alexa-app-server, which should be 2.4.1. | ||
The current stable release is 2.4.0. | ||
You're reading the documentation for the next release of alexa-app-server, which should be 3.0.2. | ||
The current stable release is 3.0.1. | ||
``` | ||
|
||
Add the next release to [CHANGELOG.md](CHANGELOG.md). | ||
|
||
``` | ||
#### 2.4.1 (Next) | ||
#### 3.0.2 (Next) | ||
|
||
* Your contribution here. | ||
``` | ||
|
@@ -88,6 +88,6 @@ Commit your changes. | |
|
||
``` | ||
git add CHANGELOG.md README.md package.json | ||
git commit -m "Preparing for next development iteration, 2.4.1." | ||
git commit -m "Preparing for next development iteration, 3.0.2." | ||
git push origin master | ||
``` | ||
``` |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
var alexa = require('alexa-app'); | ||
|
||
// Allow this module to be reloaded by hotswap when changed | ||
module.change_code = 1; | ||
|
||
// Define an alexa-app | ||
var app = new alexa.app('hello_world'); | ||
app.launch(function(req, res) { | ||
res.say("Hello World!!"); | ||
}); | ||
|
||
app.intent('NameIntent', { | ||
"slots": { "NAME": "LITERAL", "AGE": "NUMBER" }, | ||
"utterances": ["{My name is|my name's} {matt|bob|bill|jake|nancy|mary|jane|NAME} and I am {1-100|AGE}{ years old|}"] | ||
}, function(req, res) { | ||
res.say('Your name is ' + req.slot('NAME') + ' and you are ' + req.slot('AGE') + ' years old'); | ||
}); | ||
|
||
app.intent('AgeIntent', { | ||
"slots": { "AGE": "NUMBER" }, | ||
"utterances": ["My age is {1-100|AGE}"] | ||
}, function(req, res) { | ||
res.say('Your age is ' + req.slot('AGE')); | ||
}); | ||
|
||
module.exports = app; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"name": "hello_world", | ||
"version": "1.0.0", | ||
"description": "A sample Alexa app", | ||
"main": "index.js", | ||
"author": "Matt Kruse <github@mattkruse.com> (http://mattkruse.com/)", | ||
"license": "ISC", | ||
"alexa": { | ||
"applicationId": "amzn1.echo-sdk-ams.app.999999-d0ed-9999-ad00-999999d00ebe" | ||
}, | ||
"dependencies": { | ||
"alexa-app": "^2.1.0" | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,6 @@ | |
"license": "MIT", | ||
"dependencies": { | ||
"alexa-app": "^3.0.0", | ||
"alexa-verifier-middleware": "^0.1.8", | ||
"bluebird": "^3.4.7", | ||
"body-parser": "~1.16.0", | ||
"ejs": "~2.5.5", | ||
|
@@ -29,12 +28,12 @@ | |
"lodash.defaults": "^4.2.0" | ||
}, | ||
"devDependencies": { | ||
"mocha": "^2.3.4", | ||
"chai": "^3.4.1", | ||
"supertest": "^2.0.1", | ||
"mocha": "^3.2.0", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I previously downgraded some dependencies here to make things work with older versions of node. Surpried this works. |
||
"chai": "^3.5.0", | ||
"supertest": "^3.0.0", | ||
"istanbul": "0.4.5", | ||
"coveralls": "^2.11.15", | ||
"danger": "0.11.2", | ||
"danger": "0.11.4", | ||
"tcp-port-used": "0.1.2" | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"pangram": "The quick brown fox jumps over the lazy dog" | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
The quick brown fox jumps over the lazy dog |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's important in changelog is to describe the actual fix to be helpful for the person reading it. So for example: