-
-
Notifications
You must be signed in to change notification settings - Fork 365
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from danger/async_commands
Adds command structure, and the ability to use async functions
- Loading branch information
Showing
11 changed files
with
152 additions
and
21 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
{ | ||
"presets": [ | ||
"es2015" | ||
"es2015", | ||
"stage-3" | ||
], | ||
"plugins": ["transform-flow-strip-types"] | ||
"plugins": [ | ||
"transform-flow-strip-types", | ||
"transform-regenerator" | ||
] | ||
} |
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,29 @@ | ||
{ | ||
"language": "en", | ||
"ignoreWordsList": [ | ||
"GitHub", | ||
"GitLab" | ||
], | ||
"mistakeTypeToStatus": { | ||
"Passive voice": "Hint", | ||
"Spelling": "Error", | ||
"Complex Expression": "Disable", | ||
"Hidden Verbs": "Information", | ||
"Hyphen Required": "Disable", | ||
"Redundant Expression": "Disable", | ||
"Did you mean...": "Disable", | ||
"Repeated Word": "Warning", | ||
"Missing apostrophe": "Warning", | ||
"Cliches": "Disable", | ||
"Missing Word": "Disable", | ||
"Make I uppercase": "Warning" | ||
}, | ||
"languageIDs": [ | ||
"markdown", | ||
"plaintext" | ||
], | ||
"ignoreRegExp": [ | ||
"/\\(.*\\.(jpg|jpeg|png|md|gif|JPG|JPEG|PNG|MD|GIF)\\)/g", | ||
"/((http|https|ftp|git)\\S*)/g" | ||
] | ||
} |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
var program = require("commander") | ||
|
||
import { version } from "../../package.json" | ||
|
||
// Provides the root node to the command-line architecture | ||
|
||
program | ||
.version(version) | ||
.command("run", "Runs danger on your local system", {isDefault: true}) | ||
.command("init", "Creates a new Dangerfile.js") | ||
.command("local", "Runs your changes against ") | ||
|
||
export default program |
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,8 @@ | ||
// @flow | ||
|
||
var program = require("commander") | ||
|
||
program | ||
.parse(process.argv) | ||
|
||
console.log("Not Yet implmented") |
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,8 @@ | ||
// @flow | ||
|
||
var program = require("commander") | ||
|
||
program | ||
.parse(process.argv) | ||
|
||
console.log("Not Yet implmented") |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#! /usr/bin/env node | ||
// @flow | ||
|
||
// This is needed so that other files can use async funcs | ||
import "babel-polyfill" | ||
|
||
import app from "./app" | ||
app.parse(process.argv) |
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