From da4c0879c7e1fb3e2e2ac2ff6a3cb5f362a0d0ed Mon Sep 17 00:00:00 2001 From: Connor Mendenhall Date: Sun, 7 May 2017 19:17:04 -0400 Subject: [PATCH] Add Travis/LICENSE/README. --- .travis.yml | 3 +++ LICENSE.md | 21 +++++++++++++++++++++ README.md | 15 +++++++++++++++ bin/cli | 2 ++ lib/cli/create.js | 2 +- lib/cli/deploy.js | 2 +- lib/cli/logs.js | 2 +- lib/cli/remove.js | 2 +- package.json | 2 +- 9 files changed, 46 insertions(+), 5 deletions(-) create mode 100644 .travis.yml create mode 100644 LICENSE.md create mode 100644 README.md diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..1163fc8 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,3 @@ +language: node_js +node_js: + - "6.10" diff --git a/LICENSE.md b/LICENSE.md new file mode 100644 index 0000000..944ea34 --- /dev/null +++ b/LICENSE.md @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2017 EC Mendenhall + +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. diff --git a/README.md b/README.md new file mode 100644 index 0000000..0a564e2 --- /dev/null +++ b/README.md @@ -0,0 +1,15 @@ +# Instant Bot + +## Installation + +## Creating an Instant Bot + +## Anatomy of your Instant Bot + +## Deploying yout Instant Bot + +## Debugging your Instant Bot + +## Removing your Instant Bot + +## Project Goals diff --git a/bin/cli b/bin/cli index da5f02e..5a2d67d 100644 --- a/bin/cli +++ b/bin/cli @@ -2,6 +2,8 @@ 'use strict'; +require('dotenv').config(); + const CLI = require('../lib/cli/cli'); new CLI().run(); \ No newline at end of file diff --git a/lib/cli/create.js b/lib/cli/create.js index 28d8c20..c57d12a 100644 --- a/lib/cli/create.js +++ b/lib/cli/create.js @@ -28,7 +28,7 @@ class Create { console.log("⚡️ 🤖 Let's make an instant bot!"); return inquirer.prompt(questions).then((answers) => { console.log("⚡️ Creating a new serverless application..."); - process.spawn('serverless', ['install', '-u', this.getTemplate(answers), '-n', answers.botName], {stdio: 'inherit'}); + process.spawn('serverless', ['install', '-u', this.getTemplate(answers), '-n', answers.botName], {stdio: 'inherit', env: process.env}); }); } } diff --git a/lib/cli/deploy.js b/lib/cli/deploy.js index 517086c..199c5ec 100644 --- a/lib/cli/deploy.js +++ b/lib/cli/deploy.js @@ -3,7 +3,7 @@ const process = require('child_process'); class Deploy { run() { - process.spawn('serverless', ['deploy'], {stdio: 'inherit'}); + process.spawn('serverless', ['deploy'], {stdio: 'inherit', env: process.env}); } } diff --git a/lib/cli/logs.js b/lib/cli/logs.js index 3839f86..d04d66b 100644 --- a/lib/cli/logs.js +++ b/lib/cli/logs.js @@ -3,7 +3,7 @@ const process = require('child_process'); class Logs { run() { - process.spawn('serverless', ['logs', '-f', 'runBot'], {stdio: 'inherit'}); + process.spawn('serverless', ['logs', '-f', 'runBot'], {stdio: 'inherit', env: process.env}); } } diff --git a/lib/cli/remove.js b/lib/cli/remove.js index 205b672..eb6a5c8 100644 --- a/lib/cli/remove.js +++ b/lib/cli/remove.js @@ -3,7 +3,7 @@ const process = require('child_process'); class Logs { run() { - process.spawn('serverless', ['remove'], {stdio: 'inherit'}); + process.spawn('serverless', ['remove'], {stdio: 'inherit', env: process.env}); } } diff --git a/package.json b/package.json index ecb3e13..e62c322 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "instant-bot", - "version": "0.0.3", + "version": "0.0.4", "description": "Instant bots on AWS Lambda", "main": "index.js", "scripts": {