forked from microsoft/BotBuilder-Samples
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes 979 - Sample: 01.a.browser-echo fails to run (microsoft#1016)
* First pass at cleaning up the sample - get eslint working - update README.md to use format consistent with other samples - add lint, build package.json scripts - update eslint packages to current - fix linter issues - ignore dist folder * Updated babel to v7+ * Fixes 979 - Sample: 01.a.browser-echo fails to run - upgrade webpack - add build and lint script commands to package.json - add lint config - make sources pass lint - update README.md to have proper How to run steps
- Loading branch information
Showing
11 changed files
with
181 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,22 @@ | ||
{ | ||
"presets": [ | ||
["env", { | ||
"targets": { | ||
"browsers": "current" | ||
}, | ||
"modules": "umd" | ||
}] | ||
], | ||
"ignore": [ | ||
"node_modules/**/" | ||
] | ||
} | ||
"presets": [ | ||
[ | ||
"@babel/preset-env", | ||
{ | ||
"targets": { | ||
"chrome": "58", | ||
"esmodules": true | ||
} | ||
} | ||
] | ||
], | ||
"ignore": [ | ||
"**/*.d.ts" | ||
], | ||
"sourceMaps": "inline", | ||
"plugins": [ | ||
"@babel/proposal-class-properties", | ||
"@babel/proposal-object-rest-spread", | ||
"@babel/plugin-transform-runtime" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
dist/** | ||
node_modules/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,41 @@ | ||
{ | ||
"name": "browser-echo", | ||
"version": "1.0.0", | ||
"description": "BotBuilder v4 echo bot using botframework-webchat", | ||
"main": "app.js", | ||
"scripts": { | ||
"start": "webpack-dev-server", | ||
"build-sample": "webpack" | ||
}, | ||
"author": "Microsoft", | ||
"license": "MIT", | ||
"dependencies": { | ||
"botbuilder-core": "^4.1.5", | ||
"botframework-webchat": "^0.11.4" | ||
}, | ||
"devDependencies": { | ||
"babel-cli": "^6.26.0", | ||
"babel-preset-env": "^1.6.1", | ||
"clean-webpack-plugin": "^0.1.18", | ||
"copy-webpack-plugin": "^4.3.1", | ||
"css-loader": "^0.28.9", | ||
"eslint": "^5.6.0", | ||
"eslint-config-standard": "^12.0.0", | ||
"eslint-plugin-import": "^2.14.0", | ||
"eslint-plugin-node": "^7.0.1", | ||
"eslint-plugin-promise": "^4.0.1", | ||
"eslint-plugin-standard": "^4.0.0", | ||
"style-loader": "^0.20.1", | ||
"webpack": "^3.10.0", | ||
"webpack-dev-server": "^2.11.1" | ||
} | ||
"name": "browser-echo", | ||
"version": "1.0.0", | ||
"description": "BotBuilder v4 echo bot using botframework-webchat", | ||
"author": "Microsoft", | ||
"license": "MIT", | ||
"main": "app.js", | ||
"scripts": { | ||
"build": "webpack", | ||
"start": "webpack-dev-server", | ||
"lint": "./node_modules/.bin/eslint .", | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"dependencies": { | ||
"botbuilder-core": "^4.1.5", | ||
"botframework-webchat": "^0.11.4" | ||
}, | ||
"devDependencies": { | ||
"@babel/cli": "^7.1.0", | ||
"@babel/core": "^7.1.0", | ||
"@babel/plugin-proposal-class-properties": "^7.1.0", | ||
"@babel/plugin-proposal-object-rest-spread": "^7.0.0", | ||
"@babel/plugin-transform-runtime": "^7.1.0", | ||
"@babel/preset-env": "^7.1.0", | ||
"@babel/runtime": "^7.2.0", | ||
"babel-loader": "^8.0.4", | ||
"clean-webpack-plugin": "^1.0.0", | ||
"copy-webpack-plugin": "^4.3.1", | ||
"css-loader": "^1.0.1", | ||
"eslint": "^5.6.0", | ||
"eslint-config-standard": "^12.0.0", | ||
"eslint-plugin-import": "^2.14.0", | ||
"eslint-plugin-node": "^8.0.0", | ||
"eslint-plugin-promise": "^4.0.1", | ||
"eslint-plugin-standard": "^4.0.0", | ||
"style-loader": "^0.23.1", | ||
"webpack": "^4.27.0", | ||
"webpack-cli": "^3.1.2", | ||
"webpack-dev-server": "^3.1.10" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
samples/javascript_nodejs/14.nlp-with-dispatch/nlp-dispatch.dispatch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"authoringRegion": "westus", | ||
"hierarchical": true, | ||
"serviceIds": [], | ||
"authoringKey": "49f60c2376d24e4ba0e15380ad85e70b", | ||
"version": "Dispatch", | ||
"region": "westus", | ||
"type": "dispatch", | ||
"name": "nlp-dispatch" | ||
} |
63 changes: 63 additions & 0 deletions
63
samples/javascript_nodejs/14.nlp-with-dispatch/nlp-with-luis.bot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
{ | ||
"name": "nlp-with-luis", | ||
"description": "", | ||
"services": [ | ||
{ | ||
"type": "luis", | ||
"appId": "647b316e-6818-4017-b49b-2e1ad8abaa77", | ||
"authoringKey": "49f60c2376d24e4ba0e15380ad85e70b", | ||
"id": "37", | ||
"name": "Home Automation", | ||
"region": "westus", | ||
"subscriptionKey": "49f60c2376d24e4ba0e15380ad85e70b", | ||
"version": "0.1" | ||
}, | ||
{ | ||
"type": "luis", | ||
"appId": "0c69b97c-340e-4935-ac11-aabf90603445", | ||
"authoringKey": "49f60c2376d24e4ba0e15380ad85e70b", | ||
"id": "161", | ||
"name": "Weather", | ||
"region": "westus", | ||
"subscriptionKey": "49f60c2376d24e4ba0e15380ad85e70b", | ||
"version": "0.1" | ||
}, | ||
{ | ||
"type": "qna", | ||
"endpointKey": "8303a6a2-5715-465d-a094-dbafc25072b3", | ||
"hostname": "https://juwilabyqnamaker.azurewebsites.net/qnamaker", | ||
"id": "99", | ||
"kbId": "34210d20-3f10-4f86-ae60-df00e3dba364", | ||
"name": "sample-qna", | ||
"subscriptionKey": "63fc7124e8c144bdb4b70c36ce4dcbe1" | ||
}, | ||
{ | ||
"type": "dispatch", | ||
"authoringKey": "49f60c2376d24e4ba0e15380ad85e70b", | ||
"authoringRegion": "westus", | ||
"hierarchical": true, | ||
"name": "nlp-dispatch", | ||
"region": "westus", | ||
"serviceIds": [], | ||
"appId": "74889c9b-158e-4607-8dac-f7d138373b98", | ||
"endpoint": "https://juwilabyqnamaker.azurewebsites.net", | ||
"version": "Dispatch" | ||
}, | ||
{ | ||
"type": "endpoint", | ||
"endpoint": "https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/0c69b97c-340e-4935-ac11-aabf90603445?subscription-key=49f60c2376d24e4ba0e15380ad85e70b&timezoneOffset=-360&q=", | ||
"name": "NLP with luis", | ||
"id": "65" | ||
}, | ||
{ | ||
"type": "endpoint", | ||
"endpoint": "http://localhost:3978", | ||
"name": "local NLP with luis", | ||
"id": "219" | ||
} | ||
], | ||
"padlock": "", | ||
"version": "2.0", | ||
"path": "/Users/microsoft/Documents/dev/BotBuilder-Samples/samples/javascript_nodejs/14.nlp-with-dispatch/nlp-with-luis.bot", | ||
"overrides": null | ||
} |