From 3fc712af8a825052bf96f639157504dab546bf22 Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Sun, 17 Sep 2017 14:53:00 +0200 Subject: [PATCH] update to first properly working version --- dist/index.d.ts | 13 +- dist/index.js | 26 ++- dist/slackme.classes.slackmessage.d.ts | 40 ++++ dist/slackme.classes.slackmessage.js | 9 + dist/slackme.plugins.d.ts | 2 + dist/slackme.plugins.js | 4 +- package.json | 2 + qenv.yml | 2 + test/test.ts | 18 +- ts/index.ts | 32 +++- ts/slackme.classes.slackmessage.ts | 47 +++++ ts/slackme.plugins.ts | 6 + yarn.lock | 248 ++++++++++++++++++++++++- 13 files changed, 439 insertions(+), 10 deletions(-) create mode 100644 dist/slackme.classes.slackmessage.d.ts create mode 100644 dist/slackme.classes.slackmessage.js create mode 100644 qenv.yml create mode 100644 ts/slackme.classes.slackmessage.ts diff --git a/dist/index.d.ts b/dist/index.d.ts index 4bb0f09..b7f8bd3 100644 --- a/dist/index.d.ts +++ b/dist/index.d.ts @@ -1 +1,12 @@ -export declare let standardExport: string; +import { SlackMessage } from './slackme.classes.slackmessage'; +export interface ISlackmeMessage { + message: string; + author: string; +} +export { SlackMessage }; +export declare class Slackme { + private baseUrl; + private postRoute; + constructor(postRouteArg: string); + sendMessage(messageArg: SlackMessage, channelArg?: string): void; +} diff --git a/dist/index.js b/dist/index.js index 81df592..720fe9a 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,4 +1,26 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.standardExport = 'Hi there! :) This is a exported string'; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUVXLFFBQUEsY0FBYyxHQUFHLHdDQUF3QyxDQUFBIn0= \ No newline at end of file +const plugins = require("./slackme.plugins"); +const slackme_classes_slackmessage_1 = require("./slackme.classes.slackmessage"); +exports.SlackMessage = slackme_classes_slackmessage_1.SlackMessage; +class Slackme { + constructor(postRouteArg) { + this.baseUrl = 'https://hooks.slack.com/services/'; + this.postRoute = postRouteArg; + } + sendMessage(messageArg, channelArg = 'general') { + plugins.smartrequest.post(`${this.baseUrl}${this.postRoute}`, { + headers: { + 'Content-Type': 'application/json' + }, + requestBody: { + channel: channelArg, + attachments: [ + messageArg.messageOptions + ] + } + }); + } +} +exports.Slackme = Slackme; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDZDQUE0QztBQUM1QyxpRkFBNkQ7QUFRM0QsdUJBUk8sMkNBQVksQ0FRUDtBQUdkO0lBR0UsWUFBYSxZQUFvQjtRQUZ6QixZQUFPLEdBQUcsbUNBQW1DLENBQUE7UUFHbkQsSUFBSSxDQUFDLFNBQVMsR0FBRyxZQUFZLENBQUE7SUFDL0IsQ0FBQztJQUVELFdBQVcsQ0FBQyxVQUF3QixFQUFFLGFBQXFCLFNBQVM7UUFDbEUsT0FBTyxDQUFDLFlBQVksQ0FBQyxJQUFJLENBQUMsR0FBRyxJQUFJLENBQUMsT0FBTyxHQUFHLElBQUksQ0FBQyxTQUFTLEVBQUUsRUFBQztZQUMzRCxPQUFPLEVBQUU7Z0JBQ1AsY0FBYyxFQUFFLGtCQUFrQjthQUNuQztZQUNELFdBQVcsRUFBRTtnQkFDWCxPQUFPLEVBQUUsVUFBVTtnQkFDbkIsV0FBVyxFQUFFO29CQUNYLFVBQVUsQ0FBQyxjQUFjO2lCQUMxQjthQUNGO1NBQ0YsQ0FBQyxDQUFBO0lBQ0osQ0FBQztDQUNGO0FBcEJELDBCQW9CQyJ9 \ No newline at end of file diff --git a/dist/slackme.classes.slackmessage.d.ts b/dist/slackme.classes.slackmessage.d.ts new file mode 100644 index 0000000..9a47a0e --- /dev/null +++ b/dist/slackme.classes.slackmessage.d.ts @@ -0,0 +1,40 @@ +export interface IMessageOptions { + /** + * "Required plain-text summary of the attachment." + */ + fallback?: string; + /** + * a side color + */ + color?: string; + /** + * a message to show above + */ + pretext?: string; + "author_name"?: "Bobby Tables"; + "author_link"?: "http://flickr.com/bobby/"; + "author_icon"?: "http://flickr.com/icons/bobby.jpg"; + "title"?: "Slack API Documentation"; + "title_link"?: "https://api.slack.com/"; + /** + * the main text of the message + */ + text?: string; + "fields"?: [{ + "title"?: "Priority"; + "value"?: "High"; + "short"?: false; + }]; + "image_url"?: "http://my-website.com/path/to/image.jpg"; + "thumb_url"?: "http://example.com/path/to/thumb.png"; + "footer"?: "Slack API"; + "footer_icon"?: "https://platform.slack-edge.com/img/default_application_icon.png"; + /** + * timestamp as epoch time + */ + ts?: number; +} +export declare class SlackMessage { + messageOptions: IMessageOptions; + constructor(messageOptions: IMessageOptions); +} diff --git a/dist/slackme.classes.slackmessage.js b/dist/slackme.classes.slackmessage.js new file mode 100644 index 0000000..64b32cc --- /dev/null +++ b/dist/slackme.classes.slackmessage.js @@ -0,0 +1,9 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +class SlackMessage { + constructor(messageOptions) { + this.messageOptions = messageOptions; + } +} +exports.SlackMessage = SlackMessage; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2xhY2ttZS5jbGFzc2VzLnNsYWNrbWVzc2FnZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL3NsYWNrbWUuY2xhc3Nlcy5zbGFja21lc3NhZ2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUF5Q0E7SUFFRSxZQUFZLGNBQStCO1FBQ3pDLElBQUksQ0FBQyxjQUFjLEdBQUcsY0FBYyxDQUFBO0lBQ3RDLENBQUM7Q0FDRjtBQUxELG9DQUtDIn0= \ No newline at end of file diff --git a/dist/slackme.plugins.d.ts b/dist/slackme.plugins.d.ts index 317822d..4691e05 100644 --- a/dist/slackme.plugins.d.ts +++ b/dist/slackme.plugins.d.ts @@ -1 +1,3 @@ import 'typings-global'; +import * as smartrequest from 'smartrequest'; +export { smartrequest }; diff --git a/dist/slackme.plugins.js b/dist/slackme.plugins.js index f52fdc5..658aa43 100644 --- a/dist/slackme.plugins.js +++ b/dist/slackme.plugins.js @@ -1,4 +1,6 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); require("typings-global"); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2xhY2ttZS5wbHVnaW5zLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvc2xhY2ttZS5wbHVnaW5zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsMEJBQXVCIn0= \ No newline at end of file +const smartrequest = require("smartrequest"); +exports.smartrequest = smartrequest; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2xhY2ttZS5wbHVnaW5zLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvc2xhY2ttZS5wbHVnaW5zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsMEJBQXVCO0FBRXZCLDZDQUE0QztBQUcxQyxvQ0FBWSJ9 \ No newline at end of file diff --git a/package.json b/package.json index 57d2906..0df4650 100644 --- a/package.json +++ b/package.json @@ -10,9 +10,11 @@ "test": "(npmts)" }, "devDependencies": { + "qenv": "^1.1.7", "tapbundle": "^1.0.13" }, "dependencies": { + "smartrequest": "^1.0.6", "typings-global": "^1.0.16" } } diff --git a/qenv.yml b/qenv.yml new file mode 100644 index 0000000..667641b --- /dev/null +++ b/qenv.yml @@ -0,0 +1,2 @@ +vars: + - SLACK_TOKEN \ No newline at end of file diff --git a/test/test.ts b/test/test.ts index f9408b5..0f0ee8b 100644 --- a/test/test.ts +++ b/test/test.ts @@ -1,8 +1,22 @@ import { expect, tap } from 'tapbundle' +import { Qenv } from 'qenv' + +let testQenv = new Qenv(process.cwd(), process.cwd() + '/.nogit') + import * as slackme from '../ts/index' -tap.test('first test', async () => { - console.log(slackme.standardExport) +let testSlackme: slackme.Slackme + +tap.test('should create a valid slackme instance', async () => { + testSlackme = new slackme.Slackme(process.env.SLACK_TOKEN) +}) + +tap.test('should send a message to Slack', async () => { + let slackMessage = new slackme.SlackMessage({ + text: 'hi. This is a text', + color: '#3cb371' + }) + testSlackme.sendMessage(slackMessage, 'random') }) tap.start() diff --git a/ts/index.ts b/ts/index.ts index 7b1d634..a5380e0 100644 --- a/ts/index.ts +++ b/ts/index.ts @@ -1,3 +1,33 @@ import * as plugins from './slackme.plugins' +import { SlackMessage } from './slackme.classes.slackmessage' +export interface ISlackmeMessage { + message: string, + author: string, -export let standardExport = 'Hi there! :) This is a exported string' +} + +export { + SlackMessage +} + +export class Slackme { + private baseUrl = 'https://hooks.slack.com/services/' + private postRoute: string + constructor (postRouteArg: string) { + this.postRoute = postRouteArg + } + + sendMessage(messageArg: SlackMessage, channelArg: string = 'general') { + plugins.smartrequest.post(`${this.baseUrl}${this.postRoute}`,{ + headers: { + 'Content-Type': 'application/json' + }, + requestBody: { + channel: channelArg, + attachments: [ + messageArg.messageOptions + ] + } + }) + } +} diff --git a/ts/slackme.classes.slackmessage.ts b/ts/slackme.classes.slackmessage.ts new file mode 100644 index 0000000..1fbfa43 --- /dev/null +++ b/ts/slackme.classes.slackmessage.ts @@ -0,0 +1,47 @@ +import * as plugins from './slackme.plugins' + +export interface IMessageOptions { + /** + * "Required plain-text summary of the attachment." + */ + fallback?: string, + /** + * a side color + */ + color?: string, + /** + * a message to show above + */ + pretext?: string, + "author_name"?: "Bobby Tables", + "author_link"?: "http://flickr.com/bobby/", + "author_icon"?: "http://flickr.com/icons/bobby.jpg", + "title"?: "Slack API Documentation", + "title_link"?: "https://api.slack.com/", + /** + * the main text of the message + */ + text?: string, + "fields"?: [ + { + "title"?: "Priority", + "value"?: "High", + "short"?: false + } + ], + "image_url"?: "http://my-website.com/path/to/image.jpg", + "thumb_url"?: "http://example.com/path/to/thumb.png", + "footer"?: "Slack API", + "footer_icon"?: "https://platform.slack-edge.com/img/default_application_icon.png", + /** + * timestamp as epoch time + */ + ts?: number +} + +export class SlackMessage { + messageOptions: IMessageOptions + constructor(messageOptions: IMessageOptions) { + this.messageOptions = messageOptions + } +} diff --git a/ts/slackme.plugins.ts b/ts/slackme.plugins.ts index 97b63a3..50e0c73 100644 --- a/ts/slackme.plugins.ts +++ b/ts/slackme.plugins.ts @@ -1 +1,7 @@ import 'typings-global' + +import * as smartrequest from 'smartrequest' + +export { + smartrequest +} diff --git a/yarn.lock b/yarn.lock index 0236346..d1f6968 100644 --- a/yarn.lock +++ b/yarn.lock @@ -23,6 +23,12 @@ version "3.5.2" resolved "https://registry.yarnpkg.com/@types/chai/-/chai-3.5.2.tgz#c11cd2817d3a401b7ba0f5a420f35c56139b1c1e" +"@types/fs-extra@4.x.x": + version "4.0.2" + resolved "https://registry.yarnpkg.com/@types/fs-extra/-/fs-extra-4.0.2.tgz#7b9b1bbf85962cbe029b5a83c9b530d7c75af3ba" + dependencies: + "@types/node" "*" + "@types/glob@*": version "5.0.32" resolved "https://registry.yarnpkg.com/@types/glob/-/glob-5.0.32.tgz#aec5cfe987c72f099fdb1184452986aa506d5e8f" @@ -49,6 +55,12 @@ "@types/glob" "*" "@types/node" "*" +"@types/vinyl@^2.0.0": + version "2.0.1" + resolved "https://registry.yarnpkg.com/@types/vinyl/-/vinyl-2.0.1.tgz#6b414dfdcd4a785e8e76e87565ed29e79490d9b7" + dependencies: + "@types/node" "*" + "@types/which@^1.0.28": version "1.0.28" resolved "https://registry.yarnpkg.com/@types/which/-/which-1.0.28.tgz#016e387629b8817bed653fe32eab5d11279c8df6" @@ -57,6 +69,12 @@ ansi-256-colors@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/ansi-256-colors/-/ansi-256-colors-1.1.0.tgz#910de50efcc7c09e3d82f2f87abd6b700c18818a" +argparse@^1.0.7: + version "1.0.9" + resolved "https://registry.yarnpkg.com/argparse/-/argparse-1.0.9.tgz#73d83bc263f86e97f8cc4f6bae1b0e90a7d22c86" + dependencies: + sprintf-js "~1.0.2" + assertion-error@^1.0.1: version "1.0.2" resolved "https://registry.yarnpkg.com/assertion-error/-/assertion-error-1.0.2.tgz#13ca515d86206da0bac66e834dd397d87581094c" @@ -105,10 +123,34 @@ check-error@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/check-error/-/check-error-1.0.2.tgz#574d312edd88bb5dd8912e9286dd6c0aed4aac82" +clone-buffer@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/clone-buffer/-/clone-buffer-1.0.0.tgz#e3e25b207ac4e701af721e2cb5a16792cac3dc58" + +clone-stats@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/clone-stats/-/clone-stats-1.0.0.tgz#b3782dff8bb5474e18b9b6bf0fdfe782f8777680" + +clone@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/clone/-/clone-2.1.1.tgz#d217d1e961118e3ac9a4b8bba3285553bf647cdb" + +cloneable-readable@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/cloneable-readable/-/cloneable-readable-1.0.0.tgz#a6290d413f217a61232f95e458ff38418cfb0117" + dependencies: + inherits "^2.0.1" + process-nextick-args "^1.0.6" + through2 "^2.0.1" + concat-map@0.0.1: version "0.0.1" resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" +core-util-is@~1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" + deep-eql@^0.1.3: version "0.1.3" resolved "https://registry.yarnpkg.com/deep-eql/-/deep-eql-0.1.3.tgz#ef558acab8de25206cd713906d74e56930eb69f2" @@ -152,10 +194,28 @@ es6-error@^4.0.2: version "4.0.2" resolved "https://registry.yarnpkg.com/es6-error/-/es6-error-4.0.2.tgz#eec5c726eacef51b7f6b73c20db6e1b13b069c98" +esprima@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.0.tgz#4499eddcd1110e0b218bacf2fa7f7f59f55ca804" + +first-chunk-stream@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/first-chunk-stream/-/first-chunk-stream-2.0.0.tgz#1bdecdb8e083c0664b91945581577a43a9f31d70" + dependencies: + readable-stream "^2.0.2" + foreach@^2.0.5: version "2.0.5" resolved "https://registry.yarnpkg.com/foreach/-/foreach-2.0.5.tgz#0bee005018aeb260d0a3af3ae658dd0136ec1b99" +fs-extra@^4.0.0: + version "4.0.2" + resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-4.0.2.tgz#f91704c53d1b461f893452b0c307d9997647ab6b" + dependencies: + graceful-fs "^4.1.2" + jsonfile "^4.0.0" + universalify "^0.1.0" + fs.realpath@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" @@ -164,7 +224,7 @@ function-bind@^1.0.2, function-bind@^1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d" -glob@^7.0.0: +glob@^7.0.0, glob@^7.1.2: version "7.1.2" resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.2.tgz#c19c9df9a028702d678612384a6552404c636d15" dependencies: @@ -175,12 +235,22 @@ glob@^7.0.0: once "^1.3.0" path-is-absolute "^1.0.0" +graceful-fs@^4.1.2, graceful-fs@^4.1.6: + version "4.1.11" + resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.11.tgz#0e8bdfe4d1ddb8854d64e04ea7c00e2a026e5658" + has@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/has/-/has-1.0.1.tgz#8461733f538b0837c9361e39a9ab9e9704dc2f28" dependencies: function-bind "^1.0.2" +home@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/home/-/home-1.0.1.tgz#96a423ceb49b98378ff5ef3ceae059a557f9dd35" + dependencies: + os-homedir "^1.0.1" + inflight@^1.0.4: version "1.0.6" resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" @@ -188,7 +258,7 @@ inflight@^1.0.4: once "^1.3.0" wrappy "1" -inherits@2: +inherits@2, inherits@^2.0.1, inherits@~2.0.3: version "2.0.3" resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de" @@ -214,10 +284,31 @@ is-symbol@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/is-symbol/-/is-symbol-1.0.1.tgz#3cc59f00025194b6ab2e38dbae6689256b660572" +is-utf8@^0.2.0, is-utf8@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/is-utf8/-/is-utf8-0.2.1.tgz#4b0da1442104d1b336340e80797e865cf39f7d72" + +isarray@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" + isexe@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" +js-yaml@^3.9.1: + version "3.10.0" + resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.10.0.tgz#2e78441646bd4682e963f22b6e92823c309c62dc" + dependencies: + argparse "^1.0.7" + esprima "^4.0.0" + +jsonfile@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-4.0.0.tgz#8771aae0799b64076b76640fca058f9c10e33ecb" + optionalDependencies: + graceful-fs "^4.1.6" + leakage@^0.3.0: version "0.3.0" resolved "https://registry.yarnpkg.com/leakage/-/leakage-0.3.0.tgz#15d698abdc76bbc6439601f4f3020e77e2d50c39" @@ -232,6 +323,10 @@ left-pad@^1.1.3: version "1.1.3" resolved "https://registry.yarnpkg.com/left-pad/-/left-pad-1.1.3.tgz#612f61c033f3a9e08e939f1caebeea41b6f3199a" +lodash@^4.17.4: + version "4.17.4" + resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.4.tgz#78203a4d1c328ae1d86dca6460e369b57f4055ae" + memwatch-next@^0.3.0: version "0.3.0" resolved "https://registry.yarnpkg.com/memwatch-next/-/memwatch-next-0.3.0.tgz#2111050f9a906e0aa2d72a4ec0f0089c78726f8f" @@ -270,6 +365,10 @@ once@^1.3.0: dependencies: wrappy "1" +os-homedir@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/os-homedir/-/os-homedir-1.0.2.tgz#ffbc4988336e0e833de0c168c7ef152121aa7fb3" + path-is-absolute@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" @@ -278,22 +377,66 @@ path-parse@^1.0.5: version "1.0.5" resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.5.tgz#3c1adf871ea9cd6c9431b6ea2bd74a0ff055c4c1" +pify@^2.3.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/pify/-/pify-2.3.0.tgz#ed141a6ac043a849ea588498e7dca8b15330e90c" + pretty-bytes@^4.0.2: version "4.0.2" resolved "https://registry.yarnpkg.com/pretty-bytes/-/pretty-bytes-4.0.2.tgz#b2bf82e7350d65c6c33aa95aaa5a4f6327f61cd9" +process-nextick-args@^1.0.6, process-nextick-args@~1.0.6: + version "1.0.7" + resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-1.0.7.tgz#150e20b756590ad3f91093f25a4f2ad8bff30ba3" + +qenv@^1.1.7: + version "1.1.7" + resolved "https://registry.yarnpkg.com/qenv/-/qenv-1.1.7.tgz#d03f8bf8fe37494cf08d0919fe765dca84d9afae" + dependencies: + lodash "^4.17.4" + smartfile "^4.2.11" + typings-global "^1.0.16" + +readable-stream@^2.0.2, readable-stream@^2.1.5: + version "2.3.3" + resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.3.tgz#368f2512d79f9d46fdfc71349ae7878bbc1eb95c" + dependencies: + core-util-is "~1.0.0" + inherits "~2.0.3" + isarray "~1.0.0" + process-nextick-args "~1.0.6" + safe-buffer "~5.1.1" + string_decoder "~1.0.3" + util-deprecate "~1.0.1" + rechoir@^0.6.2: version "0.6.2" resolved "https://registry.yarnpkg.com/rechoir/-/rechoir-0.6.2.tgz#85204b54dba82d5742e28c96756ef43af50e3384" dependencies: resolve "^1.1.6" +remove-trailing-separator@^1.0.1: + version "1.1.0" + resolved "https://registry.yarnpkg.com/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz#c24bce2a283adad5bc3f58e0d48249b92379d8ef" + +replace-ext@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/replace-ext/-/replace-ext-1.0.0.tgz#de63128373fcbf7c3ccfa4de5a480c45a67958eb" + +require-reload@0.2.2: + version "0.2.2" + resolved "https://registry.yarnpkg.com/require-reload/-/require-reload-0.2.2.tgz#29a7591846caf91b6e8a3cda991683f95f8d7d42" + resolve@^1.1.6: version "1.4.0" resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.4.0.tgz#a75be01c53da25d934a98ebd0e4c4a7312f92a86" dependencies: path-parse "^1.0.5" +safe-buffer@~5.1.0, safe-buffer@~5.1.1: + version "5.1.1" + resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.1.tgz#893312af69b2123def71f57889001671eeb2c853" + semver@^5.3.0: version "5.4.1" resolved "https://registry.yarnpkg.com/semver/-/semver-5.4.1.tgz#e059c09d8571f0540823733433505d3a2f00b18e" @@ -324,6 +467,29 @@ smartdelay@^1.0.3: smartq "^1.1.1" typings-global "^1.0.16" +smartfile@^4.2.11: + version "4.2.20" + resolved "https://registry.yarnpkg.com/smartfile/-/smartfile-4.2.20.tgz#abc37c04fb7b3afea68fa295dfb80083361a8028" + dependencies: + "@types/fs-extra" "4.x.x" + "@types/vinyl" "^2.0.0" + fs-extra "^4.0.0" + glob "^7.1.2" + js-yaml "^3.9.1" + require-reload "0.2.2" + smartpath "^3.2.8" + smartq "^1.1.6" + smartrequest "^1.0.6" + typings-global "^1.0.20" + vinyl-file "^3.0.0" + +smartpath@^3.2.8: + version "3.2.8" + resolved "https://registry.yarnpkg.com/smartpath/-/smartpath-3.2.8.tgz#4834bd3a8bae2295baacadba23c87a501952f940" + dependencies: + home "^1.0.1" + typings-global "^1.0.14" + smartq@^1.1.1, smartq@^1.1.6: version "1.1.6" resolved "https://registry.yarnpkg.com/smartq/-/smartq-1.1.6.tgz#0c1ff4336d95e95b4f1fdd8ccd7e2c5a323b8412" @@ -331,6 +497,13 @@ smartq@^1.1.1, smartq@^1.1.6: typings-global "^1.0.19" util.promisify "^1.0.0" +smartrequest@^1.0.6: + version "1.0.6" + resolved "https://registry.yarnpkg.com/smartrequest/-/smartrequest-1.0.6.tgz#a006454332453b0a70d38a003a29963d039a7783" + dependencies: + smartq "^1.1.1" + typings-global "^1.0.17" + smartshell@^1.0.6: version "1.0.18" resolved "https://registry.yarnpkg.com/smartshell/-/smartshell-1.0.18.tgz#b84ccc65cedf3a875bf676cec78ee07f4b4aa9e5" @@ -342,6 +515,35 @@ smartshell@^1.0.6: typings-global "^1.0.20" which "^1.3.0" +sprintf-js@~1.0.2: + version "1.0.3" + resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" + +string_decoder@~1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.0.3.tgz#0fc67d7c141825de94282dd536bec6b9bce860ab" + dependencies: + safe-buffer "~5.1.0" + +strip-bom-buf@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/strip-bom-buf/-/strip-bom-buf-1.0.0.tgz#1cb45aaf57530f4caf86c7f75179d2c9a51dd572" + dependencies: + is-utf8 "^0.2.1" + +strip-bom-stream@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/strip-bom-stream/-/strip-bom-stream-2.0.0.tgz#f87db5ef2613f6968aa545abfe1ec728b6a829ca" + dependencies: + first-chunk-stream "^2.0.0" + strip-bom "^2.0.0" + +strip-bom@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-2.0.0.tgz#6219a85616520491f35788bdbf1447a99c7e6b0e" + dependencies: + is-utf8 "^0.2.0" + tapbundle@^1.0.13: version "1.1.1" resolved "https://registry.yarnpkg.com/tapbundle/-/tapbundle-1.1.1.tgz#ec4172c0e82a77b1f6133fef2606311ede28a62d" @@ -353,6 +555,13 @@ tapbundle@^1.0.13: smartq "^1.1.1" typings-global "^1.0.19" +through2@^2.0.1: + version "2.0.3" + resolved "https://registry.yarnpkg.com/through2/-/through2-2.0.3.tgz#0004569b37c7c74ba39c43f3ced78d1ad94140be" + dependencies: + readable-stream "^2.1.5" + xtend "~4.0.1" + type-detect@0.1.1: version "0.1.1" resolved "https://registry.yarnpkg.com/type-detect/-/type-detect-0.1.1.tgz#0ba5ec2a885640e470ea4e8505971900dac58822" @@ -361,13 +570,21 @@ type-detect@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/type-detect/-/type-detect-1.0.0.tgz#762217cc06db258ec48908a1298e8b95121e8ea2" -typings-global@^1.0.14, typings-global@^1.0.16, typings-global@^1.0.19, typings-global@^1.0.20: +typings-global@^1.0.14, typings-global@^1.0.16, typings-global@^1.0.17, typings-global@^1.0.19, typings-global@^1.0.20: version "1.0.20" resolved "https://registry.yarnpkg.com/typings-global/-/typings-global-1.0.20.tgz#3da769c54db538247c5d877d1d9e97eb2ec981ff" dependencies: semver "^5.3.0" smartshell "^1.0.6" +universalify@^0.1.0: + version "0.1.1" + resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.1.1.tgz#fa71badd4437af4c148841e3b3b165f9e9e590b7" + +util-deprecate@~1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" + util.promisify@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/util.promisify/-/util.promisify-1.0.0.tgz#440f7165a459c9a16dc145eb8e72f35687097030" @@ -375,6 +592,27 @@ util.promisify@^1.0.0: define-properties "^1.1.2" object.getownpropertydescriptors "^2.0.3" +vinyl-file@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/vinyl-file/-/vinyl-file-3.0.0.tgz#b104d9e4409ffa325faadd520642d0a3b488b365" + dependencies: + graceful-fs "^4.1.2" + pify "^2.3.0" + strip-bom-buf "^1.0.0" + strip-bom-stream "^2.0.0" + vinyl "^2.0.1" + +vinyl@^2.0.1: + version "2.1.0" + resolved "https://registry.yarnpkg.com/vinyl/-/vinyl-2.1.0.tgz#021f9c2cf951d6b939943c89eb5ee5add4fd924c" + dependencies: + clone "^2.1.1" + clone-buffer "^1.0.0" + clone-stats "^1.0.0" + cloneable-readable "^1.0.0" + remove-trailing-separator "^1.0.1" + replace-ext "^1.0.0" + which@^1.3.0: version "1.3.0" resolved "https://registry.yarnpkg.com/which/-/which-1.3.0.tgz#ff04bdfc010ee547d780bec38e1ac1c2777d253a" @@ -384,3 +622,7 @@ which@^1.3.0: wrappy@1: version "1.0.2" resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" + +xtend@~4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.1.tgz#a5c6d532be656e23db820efb943a1f04998d63af"