This file contains hidden or 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
| "inputs": [ | |
| { | |
| "name": "webhookurl", | |
| "type": "string", | |
| "label": "Slack Webhook URL", | |
| "defaultValue": "", | |
| "required": true, | |
| "helpMarkDown": "" | |
| }, | |
| { |
This file contains hidden or 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
| import tl = require('vsts-task-lib/task'); | |
| import trm = require('vsts-task-lib/toolrunner'); | |
| async function run() { | |
| try { | |
| const { WebClient } = require('@slack/client'); | |
| let tool: trm.ToolRunner; |
This file contains hidden or 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
| { | |
| "compilerOptions": { | |
| "target": "ES6", | |
| "module": "commonjs", | |
| "sourceMap": true | |
| } | |
| } |
This file contains hidden or 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
| var inquirer = require('inquirer'); | |
| var fs = require('fs-extra'); | |
| var generator = require('./generator') | |
| var availTemplates = fs.readdirSync(__dirname + '/templates'); | |
| var questions = [ | |
| { | |
| name: "template", | |
| type: "list", |
This file contains hidden or 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
| var fs = require('fs-extra'); | |
| module.exports = { | |
| generate: function (template, projectName){ | |
| fs.mkdirs('./' + projectName + '', function (error) { | |
| if(error) | |
| console.log(error); | |
| else{ |
This file contains hidden or 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
| { | |
| "name": "node-project-starter", | |
| "version": "1.0.0", | |
| "description": "Generate nodeJs projects from a list of templates", | |
| "main": "index.js", | |
| "scripts": { | |
| "test": "echo \"Error: no test specified\" && exit 1" | |
| }, | |
| "author": "Gerade Geldenhuys", | |
| "license": "ISC", |
This file contains hidden or 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
| using MedPark.API.Gateway.Messages.Commands; | |
| using MedPark.API.Gateway.Models; | |
| using Microsoft.AspNetCore.Mvc; | |
| using RestEase; | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Threading.Tasks; | |
| namespace MedPark.API.Gateway.Services |
This file contains hidden or 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
| var customerService = RestClient.For<ICustomerService> ("https://customers-service.com"); | |
| var user = await customerService.GetCustomer(bafb92f7-a2b0-49e6-87c9-f2bd9c5601cb); |
This file contains hidden or 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
| public static void AddDefaultEndpoint<T>(this IServiceCollection services, string serviceName) where T : class | |
| { | |
| var clientName = typeof(T).ToString(); | |
| var options = ConfigureOptions(services); | |
| ConfigureDefaultClient(services, clientName, serviceName, options); | |
| ConfigureForwarder<T>(services, clientName); | |
| } |
This file contains hidden or 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
| services.AddDefaultEndpoint<ICustomerService>("customer-service"); |
OlderNewer