Permalink
Browse files

wip

  • Loading branch information...
eanders-MS committed Oct 10, 2016
0 parents commit 7c0e42508cd6da255a66605784ee2caa0a9d5a7d
@@ -0,0 +1,11 @@
* text=auto
*.tsx text eol=lf
*.ts text eol=lf
*.css text eol=lf
*.less text eol=lf
*.js text eol=lf
*.jsx text eol=lf
*.json text eol=lf
*.html text eol=lf
*.map text eol=lf
@@ -0,0 +1,6 @@
npm-debug.log
Thumbs.db
.DS_Store
.vscode/
node_modules/
dist/
@@ -0,0 +1,57 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
var gulp = require('gulp');
var sequence = require('run-sequence');
var clean = require('gulp-clean');
var rename = require('gulp-rename');
var typescript = require('gulp-typescript');
var sourcemaps = require('gulp-sourcemaps');
var debug = require('gulp-debug');
gulp.task('build-all', function () {
sequence(
'clean',
'build-system',
'build-css',
'build-app',
'copy-site'
);
});
gulp.task('clean', function () {
return gulp.src('./dist/', { read: false })
.pipe(clean());
});
gulp.task('build-system', function () {
return gulp.src('node_modules/systemjs/dist/system.src.js')
.pipe(rename('system.js'))
.pipe(gulp.dest('dist'));
});
gulp.task('build-css', function () {
});
gulp.task('build-app', function () {
var project = typescript.createProject('tsconfig.json');
var tsResult = project.src()
.pipe(sourcemaps.init())
.pipe(project());
return tsResult.js
.pipe(sourcemaps.write())
.pipe(gulp.dest('dist'));
});
gulp.task('copy-site', function () {
return gulp.src([
'./src/**/*.html',
'./src/**/*.css'])
.pipe(gulp.dest('dist'));
});
gulp.task('default', ['build-all']);
@@ -0,0 +1,67 @@
{
"name": "botframework-emulator",
"version": "0.0.1",
"description": "Emulator for the Microsoft Bot Framework. Allows developers to test and debug their bots on localhost.",
"main": "dist/main.js",
"scripts": {
"build": "gulp",
"watch": "gulp watch",
"start": "electron .",
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/fuselabs/botframework-emulator.git"
},
"keywords": [
"microsoft",
"botframework",
"emulator",
"bot",
"chatbot"
],
"author": "Microsoft Corp.",
"license": "MIT",
"bugs": {
"url": "https://github.com/fuselabs/botframework-emulator/issues"
},
"homepage": "https://github.com/fuselabs/botframework-emulator#readme",
"devDependencies": {
"del": "^2.2.2",
"electron-prebuilt": "^1.4.2",
"event-stream": "^3.3.4",
"glob": "^7.1.0",
"gulp": "^3.9.1",
"gulp-atom-electron": "^1.9.0",
"gulp-buffer": "0.0.2",
"gulp-clean": "^0.3.2",
"gulp-concat": "^2.6.0",
"gulp-debug": "^2.1.2",
"gulp-filter": "^4.0.0",
"gulp-flatmap": "^1.0.0",
"gulp-inject": "^4.1.0",
"gulp-rename": "^1.2.2",
"gulp-tsb": "^2.0.1",
"gulp-typescript": "^3.0.2",
"gulp-util": "^3.0.7",
"object-assign": "^4.1.0",
"run-sequence": "^1.2.2",
"typescript": "^2.0.3",
"vinyl": "^2.0.0",
"vinyl-fs": "^2.4.3"
},
"dependencies": {
"@types/baconjs": "^0.7.31",
"@types/electron": "^1.4.23",
"@types/node": "^6.0.43",
"@types/react": "^0.14.39",
"@types/react-dom": "^0.14.17",
"@types/restify": "^2.0.33",
"baconjs": "^0.7.87",
"mswebchat": "git+https://github.com/eanders-MS/botchat#emulator",
"react": "^15.3.2",
"react-dom": "^15.3.2",
"restify": "^4.1.1",
"systemjs": "^0.19.39"
}
}
@@ -0,0 +1,37 @@
/// <summary>
/// Channel account information needed to route a message
/// </summary>
export class ChannelAccount {
/// <summary>
/// Create an instance of the ChannelAccount class
/// </summary>
constructor(public id: string = null) {
}
/// <summary>
/// Channel id for the user or bot on this channel (Example: joe@smith.com, or @joesmith or 123456)
/// </summary>
//id: string;
/// <summary>
/// Display friendly name
/// </summary>
name: string;
}
/// <summary>
/// Channel account information for a conversation
/// </summary>
export class ConversationAccount extends ChannelAccount {
/// <summary>
/// Create an instance of the ConversationAccount class
/// </summary>
constructor(id: string = null) {
super(id);
}
/// <summary>
/// Is this a reference to a group
/// </summary>
isGroup: boolean;
}
Oops, something went wrong.

0 comments on commit 7c0e425

Please sign in to comment.