This commit is contained in:
Francisco Ponce Gomez 2018-04-30 10:06:10 -07:00
Родитель 051e81502f
Коммит 56cda99ea9
13 изменённых файлов: 9338 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,11 @@
root = true
[*]
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.md]
trim_trailing_whitespace = false

Просмотреть файл

@ -0,0 +1,2 @@
coverage
**/templates

1
Generator/generator-botbuilder-java/.gitattributes поставляемый Normal file
Просмотреть файл

@ -0,0 +1 @@
* text=auto

2
Generator/generator-botbuilder-java/.gitignore поставляемый Normal file
Просмотреть файл

@ -0,0 +1,2 @@
node_modules
coverage

Просмотреть файл

@ -0,0 +1,7 @@
language: node_js
node_js:
- v10
- v8
- v6
- v4
after_script: cat ./coverage/lcov.info | coveralls

Просмотреть файл

@ -0,0 +1,9 @@
{
"generator-node": {
"promptValues": {
"authorName": "Microsoft",
"authorEmail": "v-frgome@microsoft.com",
"authorUrl": ""
}
}
}

Просмотреть файл

@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright (c) 2018 Microsoft <v-frgome@microsoft.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

Просмотреть файл

@ -0,0 +1,38 @@
# generator-botbuilder-java [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][daviddm-image]][daviddm-url] [![Coverage percentage][coveralls-image]][coveralls-url]
> Template to create conversational bots in Java using Microsoft Bot Framework.
## Installation
First, install [Yeoman](http://yeoman.io) and generator-botbuilder-java using [npm](https://www.npmjs.com/) (we assume you have pre-installed [node.js](https://nodejs.org/)).
```bash
npm install -g yo
npm install -g generator-botbuilder-java
```
Then generate your new project:
```bash
yo botbuilder-java
```
## Getting To Know Yeoman
* Yeoman has a heart of gold.
* Yeoman is a person with feelings and opinions, but is very easy to work with.
* Yeoman can be too opinionated at times but is easily convinced not to be.
* Feel free to [learn more about Yeoman](http://yeoman.io/).
## License
MIT © [Microsoft]()
[npm-image]: https://badge.fury.io/js/generator-botbuilder-java.svg
[npm-url]: https://npmjs.org/package/generator-botbuilder-java
[travis-image]: https://travis-ci.org/Microsoft/generator-botbuilder-java.svg?branch=master
[travis-url]: https://travis-ci.org/Microsoft/generator-botbuilder-java
[daviddm-image]: https://david-dm.org/Microsoft/generator-botbuilder-java.svg?theme=shields.io
[daviddm-url]: https://david-dm.org/Microsoft/generator-botbuilder-java
[coveralls-image]: https://coveralls.io/repos/Microsoft/generator-botbuilder-java/badge.svg
[coveralls-url]: https://coveralls.io/r/Microsoft/generator-botbuilder-java

Просмотреть файл

@ -0,0 +1,16 @@
'use strict';
const path = require('path');
const assert = require('yeoman-assert');
const helpers = require('yeoman-test');
describe('generator-botbuilder-java:app', () => {
beforeAll(() => {
return helpers
.run(path.join(__dirname, '../generators/app'))
.withPrompts({ someAnswer: true });
});
it('creates files', () => {
assert.file(['dummyfile.txt']);
});
});

Просмотреть файл

@ -0,0 +1,38 @@
'use strict';
const Generator = require('yeoman-generator');
const chalk = require('chalk');
const yosay = require('yosay');
module.exports = class extends Generator {
prompting() {
// Have Yeoman greet the user.
this.log(
yosay(`Welcome to the badass ${chalk.red('generator-botbuilder-java')} generator!`)
);
const prompts = [
{
type: 'confirm',
name: 'someAnswer',
message: 'Would you like to enable this option?',
default: true
}
];
return this.prompt(prompts).then(props => {
// To access props later use this.props.someAnswer;
this.props = props;
});
}
writing() {
this.fs.copy(
this.templatePath('dummyfile.txt'),
this.destinationPath('dummyfile.txt')
);
}
install() {
this.installDependencies();
}
};

Просмотреть файл

9106
Generator/generator-botbuilder-java/package-lock.json сгенерированный Normal file

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -0,0 +1,87 @@
{
"name": "generator-botbuilder-java",
"version": "0.0.0",
"description": "Template to create conversational bots in Java using Microsoft Bot Framework.",
"homepage": "https://github.com/Microsoft/botbuilder-java",
"author": {
"name": "Microsoft",
"email": "v-frgome@microsoft.com",
"url": ""
},
"files": [
"generators"
],
"main": "generators/index.js",
"keywords": [
"bot",
"bots",
"chatbots",
"bot framework",
"yeoman-generator"
],
"devDependencies": {
"yeoman-test": "^1.7.0",
"yeoman-assert": "^3.1.0",
"coveralls": "^3.0.0",
"nsp": "^2.8.0",
"eslint": "^4.19.1",
"prettier": "^1.11.1",
"husky": "^0.14.3",
"lint-staged": "^6.1.1",
"eslint-config-prettier": "^2.9.0",
"eslint-plugin-prettier": "^2.6.0",
"eslint-config-xo": "^0.20.1",
"jest": "^22.0.6"
},
"engines": {
"npm": ">= 4.0.0"
},
"dependencies": {
"yeoman-generator": "^2.0.1",
"chalk": "^2.1.0",
"yosay": "^2.0.1"
},
"jest": {
"testEnvironment": "node"
},
"scripts": {
"prepublishOnly": "nsp check",
"pretest": "eslint .",
"precommit": "lint-staged",
"test": "jest"
},
"lint-staged": {
"*.js": [
"eslint --fix",
"git add"
],
"*.json": [
"prettier --write",
"git add"
]
},
"eslintConfig": {
"extends": [
"xo",
"prettier"
],
"env": {
"jest": true,
"node": true
},
"rules": {
"prettier/prettier": [
"error",
{
"singleQuote": true,
"printWidth": 90
}
]
},
"plugins": [
"prettier"
]
},
"repository": "https://github.com/Microsoft/botbuilder-java.git",
"license": "MIT"
}