I hereby claim:
- I am andrewconnell on github.
- I am andrewconnell (https://keybase.io/andrewconnell) on keybase.
- I have a public key ASAlriAsYajy03CnnWK6uHxrsJ0Ly246_UxCvDV2OqE2hQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| import * as path from 'path'; | |
| let grpc: any = require('grpc'); | |
| import { | |
| IPublicCloudMeter, IProtobufTimestamp, IRateKeeperClient, IRateKeeperGetMeterResponse | |
| } from 'voyager-shared'; | |
| class RateKeeperClient { | |
| public static createGrpcClient(host: string, port: number): IRateKeeperClient { | |
| let protoPath: string = path.join('[relative-path-to]/ratekeeper.proto'); |
| import { RateKeeperServer } from './RateKeeperServer'; | |
| let grpcServer: RateKeeperServer = new RateKeeperServer(); | |
| grpcServer.start(); |
| import { IPublicCloudMeter, IPublicCloudMeterPrice } from './'; | |
| export interface IRateKeeperServer { | |
| addMeter: (call: IRateKeeperAddMeterCall, callback: RateKeeperAddMeterCallback) => void; | |
| getMeter: (call: IRateKeeperGetMeterCall, callback: RateKeeperGetMeterCallback) => void; | |
| } | |
| export interface IRateKeeperClient { | |
| addMeter(request: IRateKeeperAddMeterRequest, callback: RateKeeperAddMeterCallback): void; |
| syntax = "proto3"; | |
| package ratekeeper; | |
| service RateKeeperService { | |
| rpc GetMeter(GetMeterRequest) returns (GetMeterResponse) {} | |
| rpc AddMeter(AddMeterRequest) returns (AddMeterResponse) {} | |
| } | |
| /* +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ */ |
| FROM node:5.11.1 | |
| RUN mkdir -p /home/nodejs && \ | |
| groupadd -r nodejs && \ | |
| useradd -r -g nodejs -d /home/nodejs -s /sbin/nologin nodejs && \ | |
| chown -R nodejs:nodejs /home/nodejs && \ | |
| mkdir -p /voyager/app && \ | |
| chown -R nodejs:nodejs /voyager/app && \ | |
| npm install -g nodemon |
| let gulpConvChangeLog: any = require('gulp-conventional-changelog'); | |
| import * as gulpPlumber from 'gulp-plumber'; | |
| let gulpPrint: any = require('gulp-print'); | |
| import * as gulpIf from 'gulp-if'; | |
| import * as gulpIstanbul from 'gulp-istanbul'; | |
| import * as gulpMocha from 'gulp-mocha'; | |
| let gulpRimraf: any = require('gulp-rimraf'); | |
| import * as gulpTslint from 'gulp-tslint'; | |
| import * as gulpTypeScript from 'gulp-typescript'; | |
| import * as gulpSourcemaps from 'gulp-sourcemaps'; |
| import * as gulp from 'gulp'; | |
| import * as yargs from 'yargs'; | |
| import * as merge from 'merge2'; | |
| import { BaseGulpTask } from '../BaseGulpTask'; | |
| import { BuildConfig, ProjectArtifact, ProjectPaths, Utils } from '../buildBarrel'; | |
| import { gulpIf, gulpPlumber, gulpPrint, gulpSourcemaps, gulpTypeScript } from '../gulpPlugins'; | |
| /** | |
| * Builds the project, then the application. | |
| * |
NOTE: since originally posting this, I have setup appveyor and dramatically simplfiied our process. for backreference, i branched the repo with the old scripted setup here: https://github.com/ngOfficeUIFabric/nuget-ngofficeuifabric/tree/scripted-deploy. Links below have been updated to point to that branch.
masternow contains the appveyor build out
full repo: https://github.com/ngOfficeUIFabric/nuget-ngofficeuifabric
goal of this library is to hold contents for a NuGet package, then using CI (travisci / circleci) have it run two gulp tasks to create the nuget package & submit via HTTP PUT to NuGet.org, updating this nuget package: https://www.nuget.org/packages/ng-office-ui-fabric/
external dependencies:
| 'use strict'; | |
| import {BaseGulpTask} from '../BaseGulpTask'; | |
| import * as gulp from 'gulp'; | |
| import {Utils} from '../utils'; | |
| import * as yargs from 'yargs'; | |
| let $: any = require('gulp-load-plugins')({ lazy: true }); | |
| /** | |
| * Builds all TypeScript as JavaScript as the gulp task 'build-ts'. |