-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Initial WIP for procbots. #5
Changes from 1 commit
e947d0a
ab352f4
476dcf8
19dc480
a6cff65
486fe15
e01f46e
bc63655
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,66 +1,65 @@ | ||
{ | ||
"name": "resin-procbots", | ||
"version": "0.0.1", | ||
"description": "Process robots for automating CI pipelines", | ||
"homepage": "https://github.com/resin-io-modules/resin-procbots#readme", | ||
"preferGlobal": true, | ||
"types": "build/**/*.d.ts", | ||
"keywords": [ | ||
"resin", | ||
"process" | ||
], | ||
"author": "Heds Simons <hedley@resin.io>", | ||
"license": "Apache-2.0", | ||
"main": "./build/app.js", | ||
"bin": { | ||
"procbots": "./bin/procbots" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/resin-io-modules/resin-procbots.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/resin-io-modules/resin-procbots/issues" | ||
}, | ||
"scripts": { | ||
"build": "gulp build", | ||
"start": "node ./bin/procbots -b versionbot" | ||
}, | ||
"devDependencies": { | ||
"@types/bluebird-global": "^3.0.0", | ||
"@types/body-parser": "0.0.33", | ||
"@types/express": "^4.0.34", | ||
"@types/github": "^0.0.0", | ||
"@types/jsonwebtoken": "^7.2.0", | ||
"@types/lodash": "^4.14.43", | ||
"@types/node": "^6.0.48", | ||
"@types/node-getopt": "^0.2.29", | ||
"@types/request-promise": "^4.1.33", | ||
"@types/request": "^0.0.39", | ||
"gulp": "^3.9.1", | ||
"gulp-util": "^3.0.7", | ||
"gulp-typescript": "^3.1.4", | ||
"gulp-tslint": "^7.0.1", | ||
"gulp-sourcemaps": "^2.3.1", | ||
"jsdoc": "^3.4.3", | ||
"typescript": "^2.1.5", | ||
"tslint": "^4.4.2" | ||
}, | ||
"dependencies": { | ||
"bluebird": "^3.0.35", | ||
"body-parser": "^1.9.2", | ||
"express": "^4.0.34", | ||
"github": "^8.0.0", | ||
"github-webhook-handler": "^0.6.0", | ||
"hmac": "^1.0.1", | ||
"jsonwebtoken": "^7.2.1", | ||
"lodash": "^4.17.2", | ||
"node-getopt": "^0.2.3", | ||
"mkdirp": "^0.5.1", | ||
"request-promise": "^4.1.1", | ||
"request": "^2.79.0", | ||
"rmdir": "^1.2.0", | ||
"temp": "^0.8.3", | ||
"versionist": "^2.8.0" | ||
} | ||
"name": "resin-procbots", | ||
"version": "0.0.1", | ||
"description": "Process robots for automating CI pipelines", | ||
"homepage": "https://github.com/resin-io-modules/resin-procbots#readme", | ||
"preferGlobal": true, | ||
"keywords": [ | ||
"resin", | ||
"process" | ||
], | ||
"author": "Heds Simons <hedley@resin.io>", | ||
"license": "Apache-2.0", | ||
"main": "./build/app.js", | ||
"bin": { | ||
"procbots": "./bin/procbots" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/resin-io-modules/resin-procbots.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/resin-io-modules/resin-procbots/issues" | ||
}, | ||
"scripts": { | ||
"build": "gulp build", | ||
"start": "node ./bin/procbots -b versionbot" | ||
}, | ||
"devDependencies": { | ||
"@types/bluebird-global": "^3.0.0", | ||
"@types/body-parser": "0.0.33", | ||
"@types/express": "^4.0.34", | ||
"@types/github": "^0.0.0", | ||
"@types/jsonwebtoken": "^7.2.0", | ||
"@types/lodash": "^4.14.43", | ||
"@types/node": "^6.0.48", | ||
"@types/node-getopt": "^0.2.29", | ||
"@types/request-promise": "^4.1.33", | ||
"@types/request": "^0.0.39", | ||
"gulp": "^3.9.1", | ||
"gulp-util": "^3.0.7", | ||
"gulp-typescript": "^3.1.4", | ||
"gulp-tslint": "^7.0.1", | ||
"gulp-sourcemaps": "^2.3.1", | ||
"jsdoc": "^3.4.3", | ||
"typescript": "^2.1.5", | ||
"tslint": "^4.4.2" | ||
}, | ||
"dependencies": { | ||
"bluebird": "^3.0.35", | ||
"body-parser": "^1.9.2", | ||
"express": "^4.0.34", | ||
"github": "^8.0.0", | ||
"github-webhook-handler": "^0.6.0", | ||
"hmac": "^1.0.1", | ||
"jsonwebtoken": "^7.2.1", | ||
"lodash": "^4.17.2", | ||
"node-getopt": "^0.2.3", | ||
"mkdirp": "^0.5.1", | ||
"request-promise": "^4.1.1", | ||
"request": "^2.79.0", | ||
"rmdir": "^1.2.0", | ||
"temp": "^0.8.3", | ||
"versionist": "^2.8.0" | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
{ | ||
"compilerOptions": { | ||
"module": "commonjs", | ||
"declaration": true, | ||
"noImplicitAny": true, | ||
"removeComments": true, | ||
"preserveConstEnums": true, | ||
"strictNullChecks": true, | ||
"sourceMap": true, | ||
"target": "es6", | ||
"types": [ "bluebird-global" ], | ||
"noUnusedParameters": true, | ||
"noUnusedLocals": true | ||
} | ||
"compilerOptions": { | ||
"module": "commonjs", | ||
"declaration": true, | ||
"noImplicitAny": true, | ||
"removeComments": true, | ||
"preserveConstEnums": true, | ||
"strictNullChecks": true, | ||
"sourceMap": true, | ||
"target": "es6", | ||
"baseUrl": "./typings", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm surprised by Is this so that There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I followed from this thread, as I was originally attempting to use Adding it to the gulp file appears to cause Visual Code to complain as it doesn't find them. I'll use |
||
"types": [ "bluebird-global" ], | ||
"noUnusedParameters": true, | ||
"noUnusedLocals": true | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
declare module 'temp' { | ||
function track(): void; | ||
function mkdir(prefix: string): (err: Error, dirPath: string) => void; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
This suggests the type you're getting when you Promisify does return the correct promisified type if the function you pass to promisify takes a callback as the last argument, but if it doesn't then it'll return a plain |
||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can promisify
track
if you like, but looking at the docs it doesn't take a callback or return anything at all, so I probably wouldn't 😄.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a good point.