now fully async
This commit is contained in:
parent
bbc2e9002a
commit
d1e060e1dc
3
dist/index.js
vendored
3
dist/index.js
vendored
@ -1,4 +1,5 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
const plugins = require("./npmci.plugins");
|
const plugins = require("./npmci.plugins");
|
||||||
const paths = require("./npmci.paths");
|
const paths = require("./npmci.paths");
|
||||||
let npmciInfo = new plugins.projectinfo.ProjectinfoNpm(paths.NpmciPackageRoot);
|
let npmciInfo = new plugins.projectinfo.ProjectinfoNpm(paths.NpmciPackageRoot);
|
||||||
@ -68,4 +69,4 @@ smartcli.addCommand('trigger')
|
|||||||
npmci_trigger_1.trigger();
|
npmci_trigger_1.trigger();
|
||||||
});
|
});
|
||||||
smartcli.startParse();
|
smartcli.startParse();
|
||||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsMkNBQTBDO0FBQzFDLHVDQUFzQztBQUN0QyxJQUFJLFNBQVMsR0FBRyxJQUFJLE9BQU8sQ0FBQyxXQUFXLENBQUMsY0FBYyxDQUFDLEtBQUssQ0FBQyxnQkFBZ0IsQ0FBQyxDQUFBO0FBQzlFLE9BQU8sQ0FBQyxTQUFTLENBQUMsR0FBRyxDQUFDLGlCQUFpQixHQUFHLFNBQVMsQ0FBQyxPQUFPLENBQUMsQ0FBQTtBQUU1RCwrQ0FBcUM7QUFDckMsK0NBQXFDO0FBQ3JDLG1EQUF5QztBQUN6QyxtREFBeUM7QUFDekMsbURBQXlDO0FBQ3pDLG1EQUF5QztBQUN6Qyw2Q0FBbUM7QUFDbkMsbURBQXlDO0FBQ3pDLHdDQUF1QztBQUV2Qyw2Q0FBcUM7QUFBNUIsOEJBQUEsS0FBSyxDQUFBO0FBQ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SxDQUFDO1NBQ2pCLElBQUksQ0FBQyxRQUFRLENBQUMsV0FBVyxDQUFDLENBQUE7QUFDL0IsQ0FBQyxDQUFDLENBQUE7QUFFSixPQUFPO0FBQ1AsUUFBUSxDQUFDLFVBQVUsQ0FBQyxNQUFNLENBQUM7S0FDeEIsSUFBSSxDQUFDLENBQUMsSUFBSTtJQUNULGlCQUFJLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBRSxDQUFDLENBQUUsQ0FBQztTQUNkLElBQUksQ0FBQyxRQUFRLENBQUMsV0FBVyxDQUFDLENBQUE7QUFDL0IsQ0FBQyxDQUFDLENBQUE7QUFFSixVQUFVO0FBQ1YsUUFBUSxDQUFDLFVBQVUsQ0FBQyxTQUFTLENBQUM7S0FDM0IsSUFBSSxDQUFDLENBQUMsSUFBSTtJQUNULHVCQUFPLEVBQUUsQ0FBQTtBQUNYLENBQUMsQ0FBQyxDQUFBO0FBRUosUUFBUSxDQUFDLFVBQVUsRUFBRSxDQUFBIn0=
|
12
dist/npmci.bash.d.ts
vendored
12
dist/npmci.bash.d.ts
vendored
@ -1,15 +1,19 @@
|
|||||||
export declare let nvmAvailable: boolean;
|
import * as plugins from './npmci.plugins';
|
||||||
|
/**
|
||||||
|
* wether nvm is available or not
|
||||||
|
*/
|
||||||
|
export declare let nvmAvailable: plugins.q.Deferred<boolean>;
|
||||||
/**
|
/**
|
||||||
* bash() allows using bash with nvm in path
|
* bash() allows using bash with nvm in path
|
||||||
* @param commandArg - The command to execute
|
* @param commandArg - The command to execute
|
||||||
* @param retryArg - The retryArg: 0 to any positive number will retry, -1 will always succeed, -2 will return undefined
|
* @param retryArg - The retryArg: 0 to any positive number will retry, -1 will always succeed, -2 will return undefined
|
||||||
*/
|
*/
|
||||||
export declare let bash: (commandArg: string, retryArg?: number, bareArg?: boolean) => string;
|
export declare let bash: (commandArg: string, retryArg?: number, bareArg?: boolean) => Promise<string>;
|
||||||
/**
|
/**
|
||||||
* bashBare allows usage of bash without sourcing any files like nvm
|
* bashBare allows usage of bash without sourcing any files like nvm
|
||||||
*/
|
*/
|
||||||
export declare let bashBare: (commandArg: string, retryArg?: number) => string;
|
export declare let bashBare: (commandArg: string, retryArg?: number) => Promise<string>;
|
||||||
/**
|
/**
|
||||||
* bashNoError allows executing stuff without throwing an error
|
* bashNoError allows executing stuff without throwing an error
|
||||||
*/
|
*/
|
||||||
export declare let bashNoError: (commandArg: string) => string;
|
export declare let bashNoError: (commandArg: string) => Promise<string>;
|
||||||
|
72
dist/npmci.bash.js
vendored
72
dist/npmci.bash.js
vendored
@ -1,29 +1,50 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||||
|
return new (P || (P = Promise))(function (resolve, reject) {
|
||||||
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||||
|
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||||
|
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
|
||||||
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||||
|
});
|
||||||
|
};
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
const plugins = require("./npmci.plugins");
|
const plugins = require("./npmci.plugins");
|
||||||
let nvmSourceString = '';
|
const smartq = require("smartq");
|
||||||
exports.nvmAvailable = false;
|
/**
|
||||||
let checkNvm = () => {
|
* wether nvm is available or not
|
||||||
let localExec = plugins.shelljs.exec;
|
*/
|
||||||
if (localExec(`bash -c "source /usr/local/nvm/nvm.sh"`, { silent: true }).code === 0) {
|
exports.nvmAvailable = smartq.defer();
|
||||||
nvmSourceString = `source /usr/local/nvm/nvm.sh && `;
|
/**
|
||||||
exports.nvmAvailable = true;
|
* the smartshell instance for npmci
|
||||||
|
*/
|
||||||
|
let npmciSmartshell = new plugins.smartshell.Smartshell({
|
||||||
|
executor: 'bash',
|
||||||
|
sourceFilePaths: []
|
||||||
|
});
|
||||||
|
let checkNvm = () => __awaiter(this, void 0, void 0, function* () {
|
||||||
|
if ((yield plugins.smartshell.execSilent(`bash -c "source /usr/local/nvm/nvm.sh"`)).exitCode === 0) {
|
||||||
|
npmciSmartshell.addSourceFiles([`/usr/local/nvm/nvm.sh && `]);
|
||||||
|
exports.nvmAvailable.resolve(true);
|
||||||
}
|
}
|
||||||
else if (localExec(`bash -c "source ~/.nvm/nvm.sh"`, { silent: true }).code === 0) {
|
else if ((yield plugins.smartshell.execSilent(`bash -c "source ~/.nvm/nvm.sh"`)).exitCode === 0) {
|
||||||
nvmSourceString = `source ~/.nvm/nvm.sh && `;
|
npmciSmartshell.addSourceFiles([`~/.nvm/nvm.sh && `]);
|
||||||
exports.nvmAvailable = true;
|
exports.nvmAvailable.resolve(true);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
exports.nvmAvailable.resolve(false);
|
||||||
}
|
}
|
||||||
;
|
;
|
||||||
};
|
});
|
||||||
checkNvm();
|
checkNvm();
|
||||||
/**
|
/**
|
||||||
* bash() allows using bash with nvm in path
|
* bash() allows using bash with nvm in path
|
||||||
* @param commandArg - The command to execute
|
* @param commandArg - The command to execute
|
||||||
* @param retryArg - The retryArg: 0 to any positive number will retry, -1 will always succeed, -2 will return undefined
|
* @param retryArg - The retryArg: 0 to any positive number will retry, -1 will always succeed, -2 will return undefined
|
||||||
*/
|
*/
|
||||||
exports.bash = (commandArg, retryArg = 2, bareArg = false) => {
|
exports.bash = (commandArg, retryArg = 2, bareArg = false) => __awaiter(this, void 0, void 0, function* () {
|
||||||
let exitCode;
|
yield exports.nvmAvailable.promise; // make sure nvm check has run
|
||||||
let stdOut;
|
|
||||||
let execResult;
|
let execResult;
|
||||||
|
// determine if we fail
|
||||||
let failOnError = true;
|
let failOnError = true;
|
||||||
if (retryArg === -1) {
|
if (retryArg === -1) {
|
||||||
failOnError = false;
|
failOnError = false;
|
||||||
@ -32,33 +53,36 @@ exports.bash = (commandArg, retryArg = 2, bareArg = false) => {
|
|||||||
if (!process.env.NPMTS_TEST) {
|
if (!process.env.NPMTS_TEST) {
|
||||||
for (let i = 0; i <= retryArg; i++) {
|
for (let i = 0; i <= retryArg; i++) {
|
||||||
if (!bareArg) {
|
if (!bareArg) {
|
||||||
execResult = plugins.shelljs.exec(`bash -c "${nvmSourceString} ${commandArg}"`);
|
execResult = yield npmciSmartshell.execSilent(commandArg);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
execResult = plugins.shelljs.exec(commandArg);
|
execResult = yield plugins.smartshell.exec(commandArg);
|
||||||
}
|
}
|
||||||
exitCode = execResult.code;
|
|
||||||
stdOut = execResult.stdout;
|
|
||||||
// determine how bash reacts to error and success
|
// determine how bash reacts to error and success
|
||||||
if (exitCode !== 0 && i === retryArg) {
|
if (execResult.exitCode !== 0 && i === retryArg) {
|
||||||
if (failOnError) {
|
if (failOnError) {
|
||||||
|
plugins.beautylog.error('something went wrong and retries are exhausted');
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (exitCode === 0) {
|
else if (execResult.exitCode === 0) {
|
||||||
i = retryArg + 1; // retry +1 breaks for loop, if everything works out ok retrials are not wanted
|
i = retryArg + 1; // retry +1 breaks for loop, if everything works out ok retrials are not wanted
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
plugins.beautylog.warn('Something went wrong! Exit Code: ' + exitCode.toString());
|
plugins.beautylog.warn('Something went wrong! Exit Code: ' + execResult.exitCode.toString());
|
||||||
plugins.beautylog.info('Retry ' + (i + 1).toString() + ' of ' + retryArg.toString());
|
plugins.beautylog.info('Retry ' + (i + 1).toString() + ' of ' + retryArg.toString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
plugins.beautylog.log('ShellExec would be: ' + commandArg);
|
plugins.beautylog.log('ShellExec would be: ' + commandArg);
|
||||||
|
execResult = {
|
||||||
|
exitCode: 0,
|
||||||
|
stdout: 'testOutput'
|
||||||
|
};
|
||||||
}
|
}
|
||||||
return stdOut;
|
return execResult.stdout;
|
||||||
};
|
});
|
||||||
/**
|
/**
|
||||||
* bashBare allows usage of bash without sourcing any files like nvm
|
* bashBare allows usage of bash without sourcing any files like nvm
|
||||||
*/
|
*/
|
||||||
@ -71,4 +95,4 @@ exports.bashBare = (commandArg, retryArg = 2) => {
|
|||||||
exports.bashNoError = (commandArg) => {
|
exports.bashNoError = (commandArg) => {
|
||||||
return exports.bash(commandArg, -1);
|
return exports.bash(commandArg, -1);
|
||||||
};
|
};
|
||||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnBtY2kuYmFzaC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL25wbWNpLmJhc2gudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLDJDQUEwQztBQUUxQyxJQUFJLGVBQWUsR0FBVyxFQUFFLENBQUE7QUFDckIsUUFBQSxZQUFZLEdBQVksS0FBSyxDQUFBO0FBQ3hDLElBQUksUUFBUSxHQUFHO0lBQ2IsSUFBSSxTQUFTLEdBQVEsT0FBTyxDQUFDLE9BQU8sQ0FBQyxJQUFJLENBQUE7SUFDekMsRUFBRSxDQUFDLENBQUMsU0FBUyxDQUFDLHdDQUF3QyxFQUFFLEVBQUUsTUFBTSxFQUFFLElBQUksRUFBRSxDQUFDLENBQUMsSUFBSSxLQUFLLENBQUMsQ0FBQyxDQUFDLENBQUM7UUFDckYsZUFBZSxHQUFHLGtDQUFrQyxDQUFBO1FBQ3BELG9CQUFZLEdBQUcsSUFBSSxDQUFBO0lBQ3JCLENBQUM7SUFBQyxJQUFJLENBQUMsRUFBRSxDQUFDLENBQUMsU0FBUyxDQUFDLGdDQUFnQyxFQUFFLEVBQUUsTUFBTSxFQUFFLElBQUksRUFBRSxDQUFDLENBQUMsSUFBSSxLQUFLLENBQUMsQ0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DQUFDLFFBQVEsRUFBRSxDQUFDLENBQUE7Z0JBQzVGLE9BQU8sQ0FBQyxTQUFTLENBQUMsSUFBSSxDQUFDLFFBQVEsR0FBRyxDQUFDLENBQUMsR0FBRyxDQUFDLENBQUMsQ0FBQyxRQUFRLEVBQUUsR0FBRyxNQUFNLEdBQUcsUUFBUSxDQUFDLFFBQVEsRUFBRSxDQUFDLENBQUE7WUFDdEYsQ0FBQztRQUNILENBQUM7SUFDSCxDQUFDO0lBQUMsSUFBSSxDQUFDLENBQUM7UUFDTixPQUFPLENBQUMsU0FBUyxDQUFDLEdBQUcsQ0FBQyxzQkFBc0IsR0FBRyxVQUFVLENBQUMsQ0FBQTtRQUMxRCxVQUFVLEdBQUc7WUFDWCxRQUFRLEVBQUUsQ0FBQztZQUNYLE1BQU0sRUFBRSxZQUFZO1NBQ3JCLENBQUE7SUFDSCxDQUFDO0lBQ0QsTUFBTSxDQUFDLFVBQVUsQ0FBQyxNQUFNLENBQUE7QUFDMUIsQ0FBQyxDQUFBLENBQUE7QUFFRDs7R0FFRztBQUNRLFFBQUEsUUFBUSxHQUFHLENBQUMsVUFBa0IsRUFBRSxXQUFtQixDQUFDO0lBQzdELE1BQU0sQ0FBQyxZQUFJLENBQUMsVUFBVSxFQUFFLFFBQVEsRUFBRSxJQUFJLENBQUMsQ0FBQTtBQUN6QyxDQUFDLENBQUE7QUFFRDs7R0FFRztBQUNRLFFBQUEsV0FBVyxHQUFHLENBQUMsVUFBa0I7SUFDMUMsTUFBTSxDQUFDLFlBQUksQ0FBQyxVQUFVLEVBQUUsQ0FBQyxDQUFDLENBQUMsQ0FBQTtBQUM3QixDQUFDLENBQUEifQ==
|
4
dist/npmci.build.d.ts
vendored
4
dist/npmci.build.d.ts
vendored
@ -1,5 +1,3 @@
|
|||||||
/// <reference types="q" />
|
|
||||||
import * as plugins from './npmci.plugins';
|
|
||||||
/**
|
/**
|
||||||
* defines possible build services
|
* defines possible build services
|
||||||
*/
|
*/
|
||||||
@ -7,4 +5,4 @@ export declare type TBuildService = 'docker';
|
|||||||
/**
|
/**
|
||||||
* builds for a specific service
|
* builds for a specific service
|
||||||
*/
|
*/
|
||||||
export declare let build: (commandArg: any) => plugins.q.Promise<any>;
|
export declare let build: (commandArg: any) => Promise<void>;
|
||||||
|
31
dist/npmci.build.docker.d.ts
vendored
31
dist/npmci.build.docker.d.ts
vendored
@ -1,43 +1,41 @@
|
|||||||
/// <reference types="q" />
|
|
||||||
/// <reference types="node" />
|
/// <reference types="node" />
|
||||||
import * as plugins from './npmci.plugins';
|
|
||||||
/**
|
/**
|
||||||
* builds a cwd of Dockerfiles by triggering a promisechain
|
* builds a cwd of Dockerfiles by triggering a promisechain
|
||||||
*/
|
*/
|
||||||
export declare let build: () => plugins.q.Promise<{}>;
|
export declare let build: () => Promise<void>;
|
||||||
/**
|
/**
|
||||||
* creates instance of class Dockerfile for all Dockerfiles in cwd
|
* creates instance of class Dockerfile for all Dockerfiles in cwd
|
||||||
* @returns Promise<Dockerfile[]>
|
* @returns Promise<Dockerfile[]>
|
||||||
*/
|
*/
|
||||||
export declare let readDockerfiles: () => plugins.q.Promise<Dockerfile[]>;
|
export declare let readDockerfiles: () => Promise<Dockerfile[]>;
|
||||||
/**
|
/**
|
||||||
* sorts Dockerfiles into a dependency chain
|
* sorts Dockerfiles into a dependency chain
|
||||||
* @param sortableArrayArg an array of instances of class Dockerfile
|
* @param sortableArrayArg an array of instances of class Dockerfile
|
||||||
* @returns Promise<Dockerfile[]>
|
* @returns Promise<Dockerfile[]>
|
||||||
*/
|
*/
|
||||||
export declare let sortDockerfiles: (sortableArrayArg: Dockerfile[]) => plugins.q.Promise<Dockerfile[]>;
|
export declare let sortDockerfiles: (sortableArrayArg: Dockerfile[]) => Promise<Dockerfile[]>;
|
||||||
/**
|
/**
|
||||||
* maps local Dockerfiles dependencies to the correspoding Dockerfile class instances
|
* maps local Dockerfiles dependencies to the correspoding Dockerfile class instances
|
||||||
*/
|
*/
|
||||||
export declare let mapDockerfiles: (sortedArray: Dockerfile[]) => plugins.q.Promise<Dockerfile[]>;
|
export declare let mapDockerfiles: (sortedArray: Dockerfile[]) => Promise<Dockerfile[]>;
|
||||||
/**
|
/**
|
||||||
* builds the correspoding real docker image for each Dockerfile class instance
|
* builds the correspoding real docker image for each Dockerfile class instance
|
||||||
*/
|
*/
|
||||||
export declare let buildDockerfiles: (sortedArrayArg: Dockerfile[]) => plugins.q.Promise<{}>;
|
export declare let buildDockerfiles: (sortedArrayArg: Dockerfile[]) => Promise<Dockerfile[]>;
|
||||||
/**
|
/**
|
||||||
* pushes the real Dockerfile images to a Docker registry
|
* pushes the real Dockerfile images to a Docker registry
|
||||||
*/
|
*/
|
||||||
export declare let pushDockerfiles: (sortedArrayArg: Dockerfile[]) => plugins.q.Promise<{}>;
|
export declare let pushDockerfiles: (sortedArrayArg: Dockerfile[]) => Promise<Dockerfile[]>;
|
||||||
/**
|
/**
|
||||||
* pulls corresponding real Docker images for instances of Dockerfile from a registry.
|
* pulls corresponding real Docker images for instances of Dockerfile from a registry.
|
||||||
* This is needed if building, testing, and publishing of Docker images is carried out in seperate CI stages.
|
* This is needed if building, testing, and publishing of Docker images is carried out in seperate CI stages.
|
||||||
*/
|
*/
|
||||||
export declare let pullDockerfileImages: (sortableArrayArg: Dockerfile[], registryArg?: string) => plugins.q.Promise<{}>;
|
export declare let pullDockerfileImages: (sortableArrayArg: Dockerfile[], registryArg?: string) => Promise<Dockerfile[]>;
|
||||||
/**
|
/**
|
||||||
* tests all Dockerfiles in by calling class Dockerfile.test();
|
* tests all Dockerfiles in by calling class Dockerfile.test();
|
||||||
* @param sortedArrayArg Dockerfile[] that contains all Dockerfiles in cwd
|
* @param sortedArrayArg Dockerfile[] that contains all Dockerfiles in cwd
|
||||||
*/
|
*/
|
||||||
export declare let testDockerfiles: (sortedArrayArg: Dockerfile[]) => plugins.q.Promise<{}>;
|
export declare let testDockerfiles: (sortedArrayArg: Dockerfile[]) => Promise<Dockerfile[]>;
|
||||||
/**
|
/**
|
||||||
* class Dockerfile represents a Dockerfile on disk in npmci
|
* class Dockerfile represents a Dockerfile on disk in npmci
|
||||||
*/
|
*/
|
||||||
@ -62,26 +60,27 @@ export declare class Dockerfile {
|
|||||||
/**
|
/**
|
||||||
* builds the Dockerfile
|
* builds the Dockerfile
|
||||||
*/
|
*/
|
||||||
build(): plugins.q.Promise<{}>;
|
build(): Promise<void>;
|
||||||
/**
|
/**
|
||||||
* pushes the Dockerfile to a registry
|
* pushes the Dockerfile to a registry
|
||||||
*/
|
*/
|
||||||
push(stageArg: any): plugins.q.Promise<{}>;
|
push(stageArg: any): Promise<void>;
|
||||||
/**
|
/**
|
||||||
* pulls the Dockerfile from a registry
|
* pulls the Dockerfile from a registry
|
||||||
*/
|
*/
|
||||||
pull(registryArg: string): void;
|
pull(registryArg: string): Promise<void>;
|
||||||
/**
|
/**
|
||||||
* tests the Dockerfile;
|
* tests the Dockerfile;
|
||||||
*/
|
*/
|
||||||
test(): void;
|
test(): Promise<void>;
|
||||||
/**
|
/**
|
||||||
* gets the id of a Dockerfile
|
* gets the id of a Dockerfile
|
||||||
*/
|
*/
|
||||||
getId(): string;
|
getId(): Promise<string>;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
* returns a version for a docker file
|
||||||
|
* @execution SYNC
|
||||||
*/
|
*/
|
||||||
export declare let dockerFileVersion: (dockerfileNameArg: string) => string;
|
export declare let dockerFileVersion: (dockerfileNameArg: string) => string;
|
||||||
/**
|
/**
|
||||||
|
153
dist/npmci.build.docker.js
vendored
153
dist/npmci.build.docker.js
vendored
File diff suppressed because one or more lines are too long
18
dist/npmci.build.js
vendored
18
dist/npmci.build.js
vendored
@ -1,17 +1,27 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||||
|
return new (P || (P = Promise))(function (resolve, reject) {
|
||||||
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||||
|
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||||
|
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
|
||||||
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||||
|
});
|
||||||
|
};
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
const plugins = require("./npmci.plugins");
|
const plugins = require("./npmci.plugins");
|
||||||
const buildDocker = require("./npmci.build.docker");
|
const buildDocker = require("./npmci.build.docker");
|
||||||
/**
|
/**
|
||||||
* builds for a specific service
|
* builds for a specific service
|
||||||
*/
|
*/
|
||||||
exports.build = function (commandArg) {
|
exports.build = (commandArg) => __awaiter(this, void 0, void 0, function* () {
|
||||||
switch (commandArg) {
|
switch (commandArg) {
|
||||||
case 'docker':
|
case 'docker':
|
||||||
return buildDocker.build();
|
yield buildDocker.build();
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
plugins.beautylog.log('build target ' + commandArg + ' not recognised!');
|
plugins.beautylog.log('build target ' + commandArg + ' not recognised!');
|
||||||
}
|
}
|
||||||
;
|
;
|
||||||
return;
|
return;
|
||||||
};
|
});
|
||||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnBtY2kuYnVpbGQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9ucG1jaS5idWlsZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsMkNBQTBDO0FBRzFDLG9EQUFtRDtBQU9uRDs7R0FFRztBQUNRLFFBQUEsS0FBSyxHQUFHLFVBQVMsVUFBVTtJQUNsQyxNQUFNLENBQUMsQ0FBQyxVQUFVLENBQUMsQ0FBQyxDQUFDO1FBQ2pCLEtBQUssUUFBUTtZQUNULE1BQU0sQ0FBQyxXQUFXLENBQUMsS0FBSyxFQUFFLENBQUE7UUFDOUI7WUFDSSxPQUFPLENBQUMsU0FBUyxDQUFDLEdBQUcsQ0FBQyxlQUFlLEdBQUcsVUFBVSxHQUFHLGtCQUFrQixDQUFDLENBQUE7SUFDaEYsQ0FBQztJQUFBLENBQUM7SUFDRixNQUFNLENBQUE7QUFDVixDQUFDLENBQUEifQ==
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnBtY2kuYnVpbGQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9ucG1jaS5idWlsZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O0FBQUEsMkNBQTBDO0FBRzFDLG9EQUFtRDtBQU9uRDs7R0FFRztBQUNRLFFBQUEsS0FBSyxHQUFHLENBQU8sVUFBVTtJQUNsQyxNQUFNLENBQUMsQ0FBQyxVQUFVLENBQUMsQ0FBQyxDQUFDO1FBQ25CLEtBQUssUUFBUTtZQUNYLE1BQU0sV0FBVyxDQUFDLEtBQUssRUFBRSxDQUFBO1lBQ3pCLEtBQUssQ0FBQTtRQUNQO1lBQ0UsT0FBTyxDQUFDLFNBQVMsQ0FBQyxHQUFHLENBQUMsZUFBZSxHQUFHLFVBQVUsR0FBRyxrQkFBa0IsQ0FBQyxDQUFBO0lBQzVFLENBQUM7SUFBQSxDQUFDO0lBQ0YsTUFBTSxDQUFBO0FBQ1IsQ0FBQyxDQUFBLENBQUEifQ==
|
4
dist/npmci.clean.d.ts
vendored
4
dist/npmci.clean.d.ts
vendored
@ -1,6 +1,4 @@
|
|||||||
/// <reference types="q" />
|
|
||||||
import * as plugins from './npmci.plugins';
|
|
||||||
/**
|
/**
|
||||||
* cleans npmci config files
|
* cleans npmci config files
|
||||||
*/
|
*/
|
||||||
export declare let clean: () => plugins.q.Promise<{}>;
|
export declare let clean: () => Promise<void>;
|
||||||
|
19
dist/npmci.clean.js
vendored
19
dist/npmci.clean.js
vendored
@ -1,13 +1,20 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||||
|
return new (P || (P = Promise))(function (resolve, reject) {
|
||||||
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||||
|
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||||
|
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
|
||||||
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||||
|
});
|
||||||
|
};
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
const plugins = require("./npmci.plugins");
|
const plugins = require("./npmci.plugins");
|
||||||
const paths = require("./npmci.paths");
|
const paths = require("./npmci.paths");
|
||||||
/**
|
/**
|
||||||
* cleans npmci config files
|
* cleans npmci config files
|
||||||
*/
|
*/
|
||||||
exports.clean = () => {
|
exports.clean = () => __awaiter(this, void 0, void 0, function* () {
|
||||||
let done = plugins.q.defer();
|
|
||||||
plugins.smartfile.fs.removeSync(paths.NpmciPackageConfig);
|
plugins.smartfile.fs.removeSync(paths.NpmciPackageConfig);
|
||||||
done.resolve();
|
return;
|
||||||
return done.promise;
|
});
|
||||||
};
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnBtY2kuY2xlYW4uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9ucG1jaS5jbGVhbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O0FBQUEsMkNBQTBDO0FBQzFDLHVDQUFzQztBQUV0Qzs7R0FFRztBQUNRLFFBQUEsS0FBSyxHQUFHO0lBQ2pCLE9BQU8sQ0FBQyxTQUFTLENBQUMsRUFBRSxDQUFDLFVBQVUsQ0FBQyxLQUFLLENBQUMsa0JBQWtCLENBQUMsQ0FBQTtJQUN6RCxNQUFNLENBQUE7QUFDUixDQUFDLENBQUEsQ0FBQSJ9
|
||||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnBtY2kuY2xlYW4uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9ucG1jaS5jbGVhbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsMkNBQTBDO0FBQzFDLHVDQUFzQztBQUV0Qzs7R0FFRztBQUNRLFFBQUEsS0FBSyxHQUFHO0lBQ2YsSUFBSSxJQUFJLEdBQUcsT0FBTyxDQUFDLENBQUMsQ0FBQyxLQUFLLEVBQUUsQ0FBQTtJQUM1QixPQUFPLENBQUMsU0FBUyxDQUFDLEVBQUUsQ0FBQyxVQUFVLENBQUMsS0FBSyxDQUFDLGtCQUFrQixDQUFDLENBQUE7SUFDekQsSUFBSSxDQUFDLE9BQU8sRUFBRSxDQUFBO0lBQ2QsTUFBTSxDQUFDLElBQUksQ0FBQyxPQUFPLENBQUE7QUFDdkIsQ0FBQyxDQUFBIn0=
|
|
4
dist/npmci.command.d.ts
vendored
4
dist/npmci.command.d.ts
vendored
@ -1,3 +1 @@
|
|||||||
/// <reference types="q" />
|
export declare let command: () => Promise<void>;
|
||||||
import * as plugins from './npmci.plugins';
|
|
||||||
export declare let command: () => plugins.q.Promise<{}>;
|
|
||||||
|
22
dist/npmci.command.js
vendored
22
dist/npmci.command.js
vendored
@ -1,8 +1,15 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
const plugins = require("./npmci.plugins");
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||||
|
return new (P || (P = Promise))(function (resolve, reject) {
|
||||||
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||||
|
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||||
|
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
|
||||||
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||||
|
});
|
||||||
|
};
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
const npmci_bash_1 = require("./npmci.bash");
|
const npmci_bash_1 = require("./npmci.bash");
|
||||||
exports.command = () => {
|
exports.command = () => __awaiter(this, void 0, void 0, function* () {
|
||||||
let done = plugins.q.defer();
|
|
||||||
let wrappedCommand = '';
|
let wrappedCommand = '';
|
||||||
let argvArray = process.argv;
|
let argvArray = process.argv;
|
||||||
for (let i = 3; i < argvArray.length; i++) {
|
for (let i = 3; i < argvArray.length; i++) {
|
||||||
@ -11,8 +18,7 @@ exports.command = () => {
|
|||||||
wrappedCommand = wrappedCommand + ' ';
|
wrappedCommand = wrappedCommand + ' ';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
npmci_bash_1.bash(wrappedCommand);
|
yield npmci_bash_1.bash(wrappedCommand);
|
||||||
done.resolve();
|
return;
|
||||||
return done.promise;
|
});
|
||||||
};
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnBtY2kuY29tbWFuZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL25wbWNpLmNvbW1hbmQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7OztBQUNBLDZDQUFtQztBQUV4QixRQUFBLE9BQU8sR0FBRztJQUNuQixJQUFJLGNBQWMsR0FBVyxFQUFFLENBQUE7SUFDL0IsSUFBSSxTQUFTLEdBQUcsT0FBTyxDQUFDLElBQUksQ0FBQTtJQUM1QixHQUFHLENBQUMsQ0FBQyxJQUFJLENBQUMsR0FBRyxDQUFDLEVBQUUsQ0FBQyxHQUFHLFNBQVMsQ0FBQyxNQUFNLEVBQUUsQ0FBQyxFQUFFLEVBQUUsQ0FBQztRQUMxQyxjQUFjLEdBQUcsY0FBYyxHQUFHLFNBQVMsQ0FBQyxDQUFDLENBQUMsQ0FBQTtRQUM5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zdFLENBQUM7SUFDRCxpQkFBSSxDQUFDLGNBQWMsQ0FBQyxDQUFBO0lBQ3BCLElBQUksQ0FBQyxPQUFPLEVBQUUsQ0FBQTtJQUNkLE1BQU0sQ0FBQyxJQUFJLENBQUMsT0FBTyxDQUFBO0FBQ3ZCLENBQUMsQ0FBQSJ9
|
|
4
dist/npmci.config.d.ts
vendored
4
dist/npmci.config.d.ts
vendored
@ -1,6 +1,4 @@
|
|||||||
/// <reference types="q" />
|
|
||||||
import * as q from 'q';
|
|
||||||
export interface INpmciOptions {
|
export interface INpmciOptions {
|
||||||
globalNpmTools: string[];
|
globalNpmTools: string[];
|
||||||
}
|
}
|
||||||
export declare let getConfig: () => q.Promise<INpmciOptions>;
|
export declare let getConfig: () => Promise<INpmciOptions>;
|
||||||
|
20
dist/npmci.config.js
vendored
20
dist/npmci.config.js
vendored
@ -1,15 +1,21 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
const q = require("q");
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||||
|
return new (P || (P = Promise))(function (resolve, reject) {
|
||||||
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||||
|
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||||
|
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
|
||||||
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||||
|
});
|
||||||
|
};
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
const plugins = require("./npmci.plugins");
|
const plugins = require("./npmci.plugins");
|
||||||
const paths = require("./npmci.paths");
|
const paths = require("./npmci.paths");
|
||||||
exports.getConfig = () => {
|
exports.getConfig = () => __awaiter(this, void 0, void 0, function* () {
|
||||||
let done = q.defer();
|
|
||||||
let npmciNpmextra = new plugins.npmextra.Npmextra(paths.cwd);
|
let npmciNpmextra = new plugins.npmextra.Npmextra(paths.cwd);
|
||||||
let defaultConfig = {
|
let defaultConfig = {
|
||||||
globalNpmTools: []
|
globalNpmTools: []
|
||||||
};
|
};
|
||||||
let npmciConfig = npmciNpmextra.dataFor('npmci', defaultConfig);
|
let npmciConfig = npmciNpmextra.dataFor('npmci', defaultConfig);
|
||||||
done.resolve(npmciConfig);
|
return npmciConfig;
|
||||||
return done.promise;
|
});
|
||||||
};
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnBtY2kuY29uZmlnLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvbnBtY2kuY29uZmlnLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7QUFFQSwyQ0FBMEM7QUFDMUMsdUNBQXNDO0FBTTNCLFFBQUEsU0FBUyxHQUFHO0lBQ3JCLElBQUksYUFBYSxHQUFHLElBQUksT0FBTyxDQUFDLFFBQVEsQ0FBQyxRQUFRLENBQUMsS0FBSyxDQUFDLEdBQUcsQ0FBQyxDQUFBO0lBQzVELElBQUksYUFBYSxHQUFrQjtRQUNqQyxjQUFjLEVBQUUsRUFBRTtLQUNuQixDQUFBO0lBQ0QsSUFBSSxXQUFXLEdBQUcsYUFBYSxDQUFDLE9BQU8sQ0FBZ0IsT0FBTyxFQUFFLGFBQWEsQ0FBQyxDQUFBO0lBQzlFLE1BQU0sQ0FBQyxXQUFXLENBQUE7QUFDcEIsQ0FBQyxDQUFBLENBQUEifQ==
|
||||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnBtY2kuY29uZmlnLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvbnBtY2kuY29uZmlnLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSx1QkFBc0I7QUFFdEIsMkNBQTBDO0FBQzFDLHVDQUFzQztBQU0zQixRQUFBLFNBQVMsR0FBRztJQUNuQixJQUFJLElBQUksR0FBRyxDQUFDLENBQUMsS0FBSyxFQUFpQixDQUFBO0lBQ25DLElBQUksYUFBYSxHQUFHLElBQUksT0FBTyxDQUFDLFFBQVEsQ0FBQyxRQUFRLENBQUMsS0FBSyxDQUFDLEdBQUcsQ0FBQyxDQUFBO0lBQzVELElBQUksYUFBYSxHQUFrQjtRQUMvQixjQUFjLEVBQUUsRUFBRTtLQUNyQixDQUFBO0lBQ0QsSUFBSSxXQUFXLEdBQUcsYUFBYSxDQUFDLE9BQU8sQ0FBZ0IsT0FBTyxFQUFFLGFBQWEsQ0FBQyxDQUFBO0lBQzlFLElBQUksQ0FBQyxPQUFPLENBQUMsV0FBVyxDQUFDLENBQUE7SUFDekIsTUFBTSxDQUFDLElBQUksQ0FBQyxPQUFPLENBQUE7QUFDdkIsQ0FBQyxDQUFBIn0=
|
|
3
dist/npmci.env.js
vendored
3
dist/npmci.env.js
vendored
@ -1,4 +1,5 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
const plugins = require("./npmci.plugins");
|
const plugins = require("./npmci.plugins");
|
||||||
const paths = require("./npmci.paths");
|
const paths = require("./npmci.paths");
|
||||||
const smartstring_1 = require("smartstring");
|
const smartstring_1 = require("smartstring");
|
||||||
@ -45,4 +46,4 @@ let configLoad = () => {
|
|||||||
exports.config.dockerFilesBuilt ? exports.dockerFilesBuilt = exports.config.dockerFilesBuilt : void (0);
|
exports.config.dockerFilesBuilt ? exports.dockerFilesBuilt = exports.config.dockerFilesBuilt : void (0);
|
||||||
};
|
};
|
||||||
configLoad();
|
configLoad();
|
||||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnBtY2kuZW52LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvbnBtY2kuZW52LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSwyQ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Ucsc0JBQWMsR0FBRyxjQUFNLENBQUMsY0FBYyxHQUFHLEtBQUssQ0FBQyxDQUFDLENBQUMsQ0FBQTtJQUN6RSxjQUFNLENBQUMsZ0JBQWdCLEdBQUcsd0JBQWdCLEdBQUcsY0FBTSxDQUFDLGdCQUFnQixHQUFHLEtBQUssQ0FBQyxDQUFDLENBQUMsQ0FBQTtBQUNqRixDQUFDLENBQUE7QUFDRCxVQUFVLEVBQUUsQ0FBQSJ9
|
8
dist/npmci.install.d.ts
vendored
8
dist/npmci.install.d.ts
vendored
@ -1,3 +1,5 @@
|
|||||||
/// <reference types="q" />
|
/**
|
||||||
import * as plugins from './npmci.plugins';
|
* Install a specific version of node
|
||||||
export declare let install: (versionArg: any) => plugins.q.Promise<{}>;
|
* @param versionArg
|
||||||
|
*/
|
||||||
|
export declare let install: (versionArg: any) => Promise<void>;
|
||||||
|
38
dist/npmci.install.js
vendored
38
dist/npmci.install.js
vendored
@ -1,10 +1,22 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||||
|
return new (P || (P = Promise))(function (resolve, reject) {
|
||||||
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||||
|
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||||
|
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
|
||||||
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||||
|
});
|
||||||
|
};
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
const plugins = require("./npmci.plugins");
|
const plugins = require("./npmci.plugins");
|
||||||
const configModule = require("./npmci.config");
|
const configModule = require("./npmci.config");
|
||||||
const npmci_bash_1 = require("./npmci.bash");
|
const npmci_bash_1 = require("./npmci.bash");
|
||||||
const npmci_bash_2 = require("./npmci.bash");
|
const npmci_bash_2 = require("./npmci.bash");
|
||||||
exports.install = (versionArg) => {
|
/**
|
||||||
let done = plugins.q.defer();
|
* Install a specific version of node
|
||||||
|
* @param versionArg
|
||||||
|
*/
|
||||||
|
exports.install = (versionArg) => __awaiter(this, void 0, void 0, function* () {
|
||||||
plugins.beautylog.log(`now installing node version ${versionArg}`);
|
plugins.beautylog.log(`now installing node version ${versionArg}`);
|
||||||
let version;
|
let version;
|
||||||
if (versionArg === 'stable') {
|
if (versionArg === 'stable') {
|
||||||
@ -20,35 +32,33 @@ exports.install = (versionArg) => {
|
|||||||
version = versionArg;
|
version = versionArg;
|
||||||
}
|
}
|
||||||
;
|
;
|
||||||
if (npmci_bash_2.nvmAvailable) {
|
if (yield npmci_bash_2.nvmAvailable.promise) {
|
||||||
npmci_bash_1.bash(`nvm install ${version} && nvm alias default ${version}`);
|
yield npmci_bash_1.bash(`nvm install ${version} && nvm alias default ${version}`);
|
||||||
plugins.beautylog.success(`Node version ${version} successfully installed!`);
|
plugins.beautylog.success(`Node version ${version} successfully installed!`);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
plugins.beautylog.warn('Nvm not in path so staying at installed node version!');
|
plugins.beautylog.warn('Nvm not in path so staying at installed node version!');
|
||||||
}
|
}
|
||||||
;
|
;
|
||||||
npmci_bash_1.bash('node -v');
|
yield npmci_bash_1.bash('node -v');
|
||||||
npmci_bash_1.bash('npm -v');
|
yield npmci_bash_1.bash('npm -v');
|
||||||
// lets look for further config
|
// lets look for further config
|
||||||
configModule.getConfig()
|
configModule.getConfig()
|
||||||
.then(configArg => {
|
.then((configArg) => __awaiter(this, void 0, void 0, function* () {
|
||||||
plugins.beautylog.log('Now checking for needed global npm tools...');
|
plugins.beautylog.log('Now checking for needed global npm tools...');
|
||||||
for (let npmTool of configArg.globalNpmTools) {
|
for (let npmTool of configArg.globalNpmTools) {
|
||||||
plugins.beautylog.info(`Checking for global "${npmTool}"`);
|
plugins.beautylog.info(`Checking for global "${npmTool}"`);
|
||||||
let whichOutput = npmci_bash_1.bashNoError(`which ${npmTool}`);
|
let whichOutput = yield npmci_bash_1.bashNoError(`which ${npmTool}`);
|
||||||
let toolAvailable = !((/not\sfound/.test(whichOutput)) || whichOutput === '');
|
let toolAvailable = !((/not\sfound/.test(whichOutput)) || whichOutput === '');
|
||||||
if (toolAvailable) {
|
if (toolAvailable) {
|
||||||
plugins.beautylog.log(`Tool ${npmTool} is available`);
|
plugins.beautylog.log(`Tool ${npmTool} is available`);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
plugins.beautylog.info(`globally installing ${npmTool} from npm`);
|
plugins.beautylog.info(`globally installing ${npmTool} from npm`);
|
||||||
npmci_bash_1.bash(`npm install ${npmTool} -q -g`);
|
yield npmci_bash_1.bash(`npm install ${npmTool} -q -g`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
plugins.beautylog.success('all global npm tools specified in npmextra.json are now available!');
|
plugins.beautylog.success('all global npm tools specified in npmextra.json are now available!');
|
||||||
done.resolve();
|
}));
|
||||||
});
|
});
|
||||||
return done.promise;
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnBtY2kuaW5zdGFsbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL25wbWNpLmluc3RhbGwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7OztBQUFBLDJDQUEwQztBQUMxQywrQ0FBOEM7QUFDOUMsNkNBQWdEO0FBQ2hELDZDQUEyQztBQUUzQzs7O0dBR0c7QUFDUSxRQUFBLE9BQU8sR0FBRyxDQUFPLFVBQVU7SUFDcEMsT0FBTyxDQUFDLFNBQVMsQ0FBQyxHQUFHLENBQUMsK0JBQStCLFVBQVUsRUFBRSxDQUFDLENBQUE7SUFDbEUsSUFBSSxPQUFlLENBQUE7SUFDbkIsRUFBRSxDQUFDLENBQUMsVUFBVSxLQUFLLFFBQVEsQ0FBQyxDQUFDLENBQUM7UUFDNUIs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QUFDO1FBQ0QsT0FBTyxDQUFDLFNBQVMsQ0FBQyxPQUFPLENBQUMsb0VBQW9FLENBQUMsQ0FBQTtRQUMvRixJQUFJLENBQUMsT0FBTyxFQUFFLENBQUE7SUFDaEIsQ0FBQyxDQUFDLENBQUE7SUFDSixNQUFNLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQTtBQUNyQixDQUFDLENBQUEifQ==
|
|
3
dist/npmci.paths.js
vendored
3
dist/npmci.paths.js
vendored
@ -1,8 +1,9 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
const plugins = require("./npmci.plugins");
|
const plugins = require("./npmci.plugins");
|
||||||
exports.cwd = process.cwd();
|
exports.cwd = process.cwd();
|
||||||
exports.NpmciPackageRoot = plugins.path.join(__dirname, '../');
|
exports.NpmciPackageRoot = plugins.path.join(__dirname, '../');
|
||||||
exports.NpmciPackageConfig = plugins.path.join(exports.NpmciPackageRoot, './config.json');
|
exports.NpmciPackageConfig = plugins.path.join(exports.NpmciPackageRoot, './config.json');
|
||||||
exports.NpmciProjectDir = exports.cwd;
|
exports.NpmciProjectDir = exports.cwd;
|
||||||
exports.NpmciTestDir = plugins.path.join(exports.cwd, './test');
|
exports.NpmciTestDir = plugins.path.join(exports.cwd, './test');
|
||||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnBtY2kucGF0aHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9ucG1jaS5wYXRocy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsMkNBQTBDO0FBRS9CLFFBQUEsR0FBRyxHQUFHLE9BQU8sQ0FBQyxHQUFHLEVBQUUsQ0FBQTtBQUVuQixRQUFBLGdCQUFnQixHQUFHLE9BQU8sQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDLFNBQVMsRUFBQyxLQUFLLENBQUMsQ0FBQTtBQUNyRCxRQUFBLGtCQUFrQixHQUFHLE9BQU8sQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDLHdCQUFnQixFQUFDLGVBQWUsQ0FBQyxDQUFBO0FBQ3hFLFFBQUEsZUFBZSxHQUFHLFdBQUcsQ0FBQTtBQUNyQixRQUFBLFlBQVksR0FBRyxPQUFPLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxXQUFHLEVBQUMsUUFBUSxDQUFDLENBQUEifQ==
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnBtY2kucGF0aHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9ucG1jaS5wYXRocy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDJDQUEwQztBQUUvQixRQUFBLEdBQUcsR0FBRyxPQUFPLENBQUMsR0FBRyxFQUFFLENBQUE7QUFFbkIsUUFBQSxnQkFBZ0IsR0FBRyxPQUFPLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxTQUFTLEVBQUMsS0FBSyxDQUFDLENBQUE7QUFDckQsUUFBQSxrQkFBa0IsR0FBRyxPQUFPLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyx3QkFBZ0IsRUFBQyxlQUFlLENBQUMsQ0FBQTtBQUN4RSxRQUFBLGVBQWUsR0FBRyxXQUFHLENBQUE7QUFDckIsUUFBQSxZQUFZLEdBQUcsT0FBTyxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsV0FBRyxFQUFDLFFBQVEsQ0FBQyxDQUFBIn0=
|
8
dist/npmci.plugins.d.ts
vendored
8
dist/npmci.plugins.d.ts
vendored
@ -1,16 +1,18 @@
|
|||||||
export import beautylog = require('beautylog');
|
export import beautylog = require('beautylog');
|
||||||
export declare let gulp: any;
|
export declare let gulp: any;
|
||||||
export import gulpFunction = require('gulp-function');
|
export import gulpFunction = require('gulp-function');
|
||||||
export import lodash = require('lodash');
|
export declare let lodash: any;
|
||||||
export import npmextra = require('npmextra');
|
export import npmextra = require('npmextra');
|
||||||
export import path = require('path');
|
export import path = require('path');
|
||||||
export import projectinfo = require('projectinfo');
|
export import projectinfo = require('projectinfo');
|
||||||
export import q = require('q');
|
export import q = require('smartq');
|
||||||
export declare let request: any;
|
export declare let request: any;
|
||||||
export import shelljs = require('shelljs');
|
|
||||||
export import smartcli = require('smartcli');
|
export import smartcli = require('smartcli');
|
||||||
export import smartfile = require('smartfile');
|
export import smartfile = require('smartfile');
|
||||||
|
export import shelljs = require('shelljs');
|
||||||
export import smartparam = require('smartparam');
|
export import smartparam = require('smartparam');
|
||||||
|
export import smartq = require('smartq');
|
||||||
|
export import smartshell = require('smartshell');
|
||||||
export import smartsocket = require('smartsocket');
|
export import smartsocket = require('smartsocket');
|
||||||
export import smartssh = require('smartssh');
|
export import smartssh = require('smartssh');
|
||||||
export import smartstring = require('smartstring');
|
export import smartstring = require('smartstring');
|
||||||
|
11
dist/npmci.plugins.js
vendored
11
dist/npmci.plugins.js
vendored
@ -1,19 +1,22 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
exports.beautylog = require("beautylog");
|
exports.beautylog = require("beautylog");
|
||||||
exports.gulp = require('gulp');
|
exports.gulp = require('gulp');
|
||||||
exports.gulpFunction = require("gulp-function");
|
exports.gulpFunction = require("gulp-function");
|
||||||
exports.lodash = require("lodash");
|
exports.lodash = require('lodash');
|
||||||
exports.npmextra = require("npmextra");
|
exports.npmextra = require("npmextra");
|
||||||
exports.path = require("path");
|
exports.path = require("path");
|
||||||
exports.projectinfo = require("projectinfo");
|
exports.projectinfo = require("projectinfo");
|
||||||
exports.q = require("q");
|
exports.q = require("smartq");
|
||||||
exports.request = require('request');
|
exports.request = require('request');
|
||||||
exports.shelljs = require("shelljs");
|
|
||||||
exports.smartcli = require("smartcli");
|
exports.smartcli = require("smartcli");
|
||||||
exports.smartfile = require("smartfile");
|
exports.smartfile = require("smartfile");
|
||||||
|
exports.shelljs = require("shelljs");
|
||||||
exports.smartparam = require("smartparam");
|
exports.smartparam = require("smartparam");
|
||||||
|
exports.smartq = require("smartq");
|
||||||
|
exports.smartshell = require("smartshell");
|
||||||
exports.smartsocket = require("smartsocket");
|
exports.smartsocket = require("smartsocket");
|
||||||
exports.smartssh = require("smartssh");
|
exports.smartssh = require("smartssh");
|
||||||
exports.smartstring = require("smartstring");
|
exports.smartstring = require("smartstring");
|
||||||
exports.through2 = require("through2");
|
exports.through2 = require("through2");
|
||||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnBtY2kucGx1Z2lucy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL25wbWNpLnBsdWdpbnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLHlDQUE4QztBQUNuQyxRQUFBLElBQUksR0FBRyxPQUFPLENBQUMsTUFBTSxDQUFDLENBQUE7QUFDakMsZ0RBQXFEO0FBQ3JELG1DQUF3QztBQUN4Qyx1Q0FBNEM7QUFDNUMsK0JBQW9DO0FBQ3BDLDZDQUFrRDtBQUNsRCx5QkFBOEI7QUFDbkIsUUFBQSxPQUFPLEdBQUcsT0FBTyxDQUFDLFNBQVMsQ0FBQyxDQUFBO0FBQ3ZDLHFDQUEwQztBQUMxQyx1Q0FBNEM7QUFDNUMseUNBQThDO0FBQzlDLDJDQUFnRDtBQUNoRCw2Q0FBa0Q7QUFDbEQsdUNBQTRDO0FBQzVDLDZDQUFrRDtBQUNsRCx1Q0FBNEMifQ==
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnBtY2kucGx1Z2lucy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL25wbWNpLnBsdWdpbnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSx5Q0FBOEM7QUFDbkMsUUFBQSxJQUFJLEdBQUcsT0FBTyxDQUFDLE1BQU0sQ0FBQyxDQUFBO0FBQ2pDLGdEQUFxRDtBQUMxQyxRQUFBLE1BQU0sR0FBRyxPQUFPLENBQUMsUUFBUSxDQUFDLENBQUE7QUFDckMsdUNBQTRDO0FBQzVDLCtCQUFvQztBQUNwQyw2Q0FBa0Q7QUFDbEQsOEJBQW1DO0FBQ3hCLFFBQUEsT0FBTyxHQUFHLE9BQU8sQ0FBQyxTQUFTLENBQUMsQ0FBQTtBQUN2Qyx1Q0FBNEM7QUFDNUMseUNBQThDO0FBQzlDLHFDQUEwQztBQUMxQywyQ0FBZ0Q7QUFDaEQsbUNBQXdDO0FBQ3hDLDJDQUFnRDtBQUNoRCw2Q0FBa0Q7QUFDbEQsdUNBQTRDO0FBQzVDLDZDQUFrRDtBQUNsRCx1Q0FBNEMifQ==
|
4
dist/npmci.prepare.d.ts
vendored
4
dist/npmci.prepare.d.ts
vendored
@ -1,5 +1,3 @@
|
|||||||
/// <reference types="q" />
|
|
||||||
import * as plugins from './npmci.plugins';
|
|
||||||
/**
|
/**
|
||||||
* defines possible prepare services
|
* defines possible prepare services
|
||||||
*/
|
*/
|
||||||
@ -8,4 +6,4 @@ export declare type TPrepService = 'npm' | 'docker' | 'docker-gitlab' | 'ssh';
|
|||||||
* the main exported prepare function
|
* the main exported prepare function
|
||||||
* @param servieArg describes the service to prepare
|
* @param servieArg describes the service to prepare
|
||||||
*/
|
*/
|
||||||
export declare let prepare: (serviceArg: TPrepService) => plugins.q.Promise<{}>;
|
export declare let prepare: (serviceArg: TPrepService) => Promise<void>;
|
||||||
|
56
dist/npmci.prepare.js
vendored
56
dist/npmci.prepare.js
vendored
@ -1,12 +1,20 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||||
|
return new (P || (P = Promise))(function (resolve, reject) {
|
||||||
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||||
|
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||||
|
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
|
||||||
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||||
|
});
|
||||||
|
};
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
const plugins = require("./npmci.plugins");
|
const plugins = require("./npmci.plugins");
|
||||||
const env = require("./npmci.env");
|
const env = require("./npmci.env");
|
||||||
const sshModule = require("./npmci.ssh");
|
const sshModule = require("./npmci.ssh");
|
||||||
/**
|
/**
|
||||||
* authenticates npm with token from env var
|
* authenticates npm with token from env var
|
||||||
*/
|
*/
|
||||||
let npm = function () {
|
let npm = () => __awaiter(this, void 0, void 0, function* () {
|
||||||
let done = plugins.q.defer();
|
|
||||||
let npmrcPrefix = '//registry.npmjs.org/:_authToken=';
|
let npmrcPrefix = '//registry.npmjs.org/:_authToken=';
|
||||||
let npmToken = process.env.NPMCI_TOKEN_NPM;
|
let npmToken = process.env.NPMCI_TOKEN_NPM;
|
||||||
let npmrcFileString = npmrcPrefix + npmToken;
|
let npmrcFileString = npmrcPrefix + npmToken;
|
||||||
@ -18,14 +26,12 @@ let npm = function () {
|
|||||||
process.exit(1);
|
process.exit(1);
|
||||||
}
|
}
|
||||||
plugins.smartfile.memory.toFsSync(npmrcFileString, '/root/.npmrc');
|
plugins.smartfile.memory.toFsSync(npmrcFileString, '/root/.npmrc');
|
||||||
done.resolve();
|
return;
|
||||||
return done.promise;
|
});
|
||||||
};
|
|
||||||
/**
|
/**
|
||||||
* logs in docker
|
* logs in docker
|
||||||
*/
|
*/
|
||||||
let docker = function () {
|
let docker = () => __awaiter(this, void 0, void 0, function* () {
|
||||||
let done = plugins.q.defer();
|
|
||||||
env.setDockerRegistry('docker.io');
|
env.setDockerRegistry('docker.io');
|
||||||
let dockerRegex = /^([a-zA-Z0-9\.]*)\|([a-zA-Z0-9\.]*)/;
|
let dockerRegex = /^([a-zA-Z0-9\.]*)\|([a-zA-Z0-9\.]*)/;
|
||||||
if (!process.env.NPMCI_LOGIN_DOCKER) {
|
if (!process.env.NPMCI_LOGIN_DOCKER) {
|
||||||
@ -37,44 +43,38 @@ let docker = function () {
|
|||||||
let username = dockerRegexResultArray[1];
|
let username = dockerRegexResultArray[1];
|
||||||
let password = dockerRegexResultArray[2];
|
let password = dockerRegexResultArray[2];
|
||||||
plugins.shelljs.exec('docker login -u ' + username + ' -p ' + password);
|
plugins.shelljs.exec('docker login -u ' + username + ' -p ' + password);
|
||||||
done.resolve();
|
return;
|
||||||
return done.promise;
|
});
|
||||||
};
|
|
||||||
/**
|
/**
|
||||||
* prepare docker for gitlab registry
|
* prepare docker for gitlab registry
|
||||||
*/
|
*/
|
||||||
let dockerGitlab = function () {
|
let dockerGitlab = () => __awaiter(this, void 0, void 0, function* () {
|
||||||
let done = plugins.q.defer();
|
|
||||||
env.setDockerRegistry('registry.gitlab.com');
|
env.setDockerRegistry('registry.gitlab.com');
|
||||||
plugins.shelljs.exec('docker login -u gitlab-ci-token -p ' + process.env.CI_BUILD_TOKEN + ' ' + 'registry.gitlab.com');
|
plugins.shelljs.exec('docker login -u gitlab-ci-token -p ' + process.env.CI_BUILD_TOKEN + ' ' + 'registry.gitlab.com');
|
||||||
done.resolve();
|
return;
|
||||||
return done.promise;
|
});
|
||||||
};
|
|
||||||
/**
|
/**
|
||||||
* prepare ssh
|
* prepare ssh
|
||||||
*/
|
*/
|
||||||
let ssh = function () {
|
let ssh = () => __awaiter(this, void 0, void 0, function* () {
|
||||||
let done = plugins.q.defer();
|
yield sshModule.ssh();
|
||||||
sshModule.ssh()
|
});
|
||||||
.then(done.resolve);
|
|
||||||
return done.promise;
|
|
||||||
};
|
|
||||||
/**
|
/**
|
||||||
* the main exported prepare function
|
* the main exported prepare function
|
||||||
* @param servieArg describes the service to prepare
|
* @param servieArg describes the service to prepare
|
||||||
*/
|
*/
|
||||||
exports.prepare = function (serviceArg) {
|
exports.prepare = (serviceArg) => __awaiter(this, void 0, void 0, function* () {
|
||||||
switch (serviceArg) {
|
switch (serviceArg) {
|
||||||
case 'npm':
|
case 'npm':
|
||||||
return npm();
|
return yield npm();
|
||||||
case 'docker':
|
case 'docker':
|
||||||
return docker();
|
return yield docker();
|
||||||
case 'docker-gitlab':
|
case 'docker-gitlab':
|
||||||
return dockerGitlab();
|
return yield dockerGitlab();
|
||||||
case 'ssh':
|
case 'ssh':
|
||||||
return ssh();
|
return yield ssh();
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
};
|
});
|
||||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnBtY2kucHJlcGFyZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL25wbWNpLnByZXBhcmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLDJDQUEwQztBQUUxQyxtQ0FBa0M7QUFDbEMseUNBQXdDO0FBVXhDOztHQUVHO0FBQ0gsSUFBSSxHQUFHLEdBQUc7SUFDTixJQUFJLElBQUksR0FBRyxPQUFPLENBQUMsQ0FBQyxDQUFDLEtBQUssRUFBRSxDQUFBO0lBRTVCLElBQUksV0FBVyxHQUFXLG1DQUFtQyxDQUFBO0lBQzdELElBQUksUUFBUSxHQUFXLE9BQU8sQ0FBQyxHQUFHLENBQUMsZUFBZSxDQUFBO0lBQ2xELElBQUksZUFBZSxHQUFHLFdBQVcsR0FBRyxRQUFRLENBQUE7SUFFNUMsRUFBRSxDQUFDLENBQUMsUUFBUSxDQUFDLENBQUMsQ0FBQztRQUNYLE9BQU8sQ0FBQyxTQUFTLENBQUMsSUFBSSxDQUFDLG9CQUFvQixDQUFDLENBQUE7SUFDaEQsQ0FBQztJQUFDLElBQUksQ0FBQyxDQUFDO1FBQ0osT0FBTyxD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0FBQSxDQUFBIn0=
|
5
dist/npmci.publish.d.ts
vendored
5
dist/npmci.publish.d.ts
vendored
@ -1,5 +1,4 @@
|
|||||||
/// <reference types="q" />
|
import * as NpmciBuildDocker from './npmci.build.docker';
|
||||||
import * as plugins from './npmci.plugins';
|
|
||||||
/**
|
/**
|
||||||
* type of supported services
|
* type of supported services
|
||||||
*/
|
*/
|
||||||
@ -8,4 +7,4 @@ export declare type TPubService = 'npm' | 'docker';
|
|||||||
* the main exported publish function.
|
* the main exported publish function.
|
||||||
* @param pubServiceArg references targeted service to publish to
|
* @param pubServiceArg references targeted service to publish to
|
||||||
*/
|
*/
|
||||||
export declare let publish: (pubServiceArg?: TPubService) => plugins.q.Promise<{}>;
|
export declare let publish: (pubServiceArg?: TPubService) => Promise<void | NpmciBuildDocker.Dockerfile[]>;
|
||||||
|
44
dist/npmci.publish.js
vendored
44
dist/npmci.publish.js
vendored
@ -1,4 +1,13 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||||
|
return new (P || (P = Promise))(function (resolve, reject) {
|
||||||
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||||
|
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||||
|
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
|
||||||
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||||
|
});
|
||||||
|
};
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
const plugins = require("./npmci.plugins");
|
const plugins = require("./npmci.plugins");
|
||||||
const npmci_prepare_1 = require("./npmci.prepare");
|
const npmci_prepare_1 = require("./npmci.prepare");
|
||||||
const npmci_bash_1 = require("./npmci.bash");
|
const npmci_bash_1 = require("./npmci.bash");
|
||||||
@ -7,36 +16,35 @@ const NpmciBuildDocker = require("./npmci.build.docker");
|
|||||||
* the main exported publish function.
|
* the main exported publish function.
|
||||||
* @param pubServiceArg references targeted service to publish to
|
* @param pubServiceArg references targeted service to publish to
|
||||||
*/
|
*/
|
||||||
exports.publish = (pubServiceArg = 'npm') => {
|
exports.publish = (pubServiceArg = 'npm') => __awaiter(this, void 0, void 0, function* () {
|
||||||
switch (pubServiceArg) {
|
switch (pubServiceArg) {
|
||||||
case 'npm':
|
case 'npm':
|
||||||
return publishNpm();
|
return yield publishNpm();
|
||||||
case 'docker':
|
case 'docker':
|
||||||
return publishDocker();
|
return yield publishDocker();
|
||||||
}
|
}
|
||||||
};
|
});
|
||||||
/**
|
/**
|
||||||
* tries to publish current cwd to NPM registry
|
* tries to publish current cwd to NPM registry
|
||||||
*/
|
*/
|
||||||
let publishNpm = function () {
|
let publishNpm = () => __awaiter(this, void 0, void 0, function* () {
|
||||||
let done = plugins.q.defer();
|
yield npmci_prepare_1.prepare('npm')
|
||||||
npmci_prepare_1.prepare('npm')
|
|
||||||
.then(function () {
|
.then(function () {
|
||||||
npmci_bash_1.bash('npm publish');
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
|
yield npmci_bash_1.bash('npm publish');
|
||||||
plugins.beautylog.ok('Done!');
|
plugins.beautylog.ok('Done!');
|
||||||
done.resolve();
|
|
||||||
});
|
});
|
||||||
return done.promise;
|
});
|
||||||
};
|
});
|
||||||
/**
|
/**
|
||||||
* tries to pubish current cwd to Docker registry
|
* tries to pubish current cwd to Docker registry
|
||||||
*/
|
*/
|
||||||
let publishDocker = function () {
|
let publishDocker = () => __awaiter(this, void 0, void 0, function* () {
|
||||||
let done = plugins.q.defer();
|
return yield NpmciBuildDocker.readDockerfiles()
|
||||||
NpmciBuildDocker.readDockerfiles()
|
|
||||||
.then(NpmciBuildDocker.pullDockerfileImages)
|
.then(NpmciBuildDocker.pullDockerfileImages)
|
||||||
.then(NpmciBuildDocker.pushDockerfiles)
|
.then(NpmciBuildDocker.pushDockerfiles)
|
||||||
.then(done.resolve);
|
.then(dock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hQUFhLENBQUMsQ0FBQTtZQUN6QixPQUFPLENBQUMsU0FBUyxDQUFDLEVBQUUsQ0FBQyxPQUFPLENBQUMsQ0FBQTtRQUMvQixDQUFDO0tBQUEsQ0FBQyxDQUFBO0FBQ04sQ0FBQyxDQUFBLENBQUE7QUFFRDs7R0FFRztBQUNILElBQUksYUFBYSxHQUFHO0lBQ2xCLE1BQU0sQ0FBQyxNQUFNLGdCQUFnQixDQUFDLGVBQWUsRUFBRTtTQUM1QyxJQUFJLENBQUMsZ0JBQWdCLENBQUMsb0JBQW9CLENBQUM7U0FDM0MsSUFBSSxDQUFDLGdCQUFnQixDQUFDLGVBQWUsQ0FBQztTQUN0QyxJQUFJLENBQUMsZUFBZTtRQUNuQixNQUFNLENBQUMsZUFBZSxDQUFBO0lBQ3hCLENBQUMsQ0FBQyxDQUFBO0FBQ04sQ0FBQyxDQUFBLENBQUEifQ==
|
2
dist/npmci.servezone.d.ts
vendored
2
dist/npmci.servezone.d.ts
vendored
@ -1,4 +1,4 @@
|
|||||||
/**
|
/**
|
||||||
* the main run function to submit a service to a servezone
|
* the main run function to submit a service to a servezone
|
||||||
*/
|
*/
|
||||||
export declare let run: (configArg: any) => void;
|
export declare let run: (configArg: any) => Promise<void>;
|
||||||
|
15
dist/npmci.servezone.js
vendored
15
dist/npmci.servezone.js
vendored
@ -1,4 +1,13 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||||
|
return new (P || (P = Promise))(function (resolve, reject) {
|
||||||
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||||
|
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||||
|
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
|
||||||
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||||
|
});
|
||||||
|
};
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
const plugins = require("./npmci.plugins");
|
const plugins = require("./npmci.plugins");
|
||||||
/**
|
/**
|
||||||
* servezoneRegex is the regex that parses the servezone connection data
|
* servezoneRegex is the regex that parses the servezone connection data
|
||||||
@ -22,7 +31,7 @@ let smartsocketClientConstructorOptions = {
|
|||||||
/**
|
/**
|
||||||
* the main run function to submit a service to a servezone
|
* the main run function to submit a service to a servezone
|
||||||
*/
|
*/
|
||||||
exports.run = (configArg) => {
|
exports.run = (configArg) => __awaiter(this, void 0, void 0, function* () {
|
||||||
new plugins.smartsocket.SmartsocketClient(smartsocketClientConstructorOptions);
|
new plugins.smartsocket.SmartsocketClient(smartsocketClientConstructorOptions);
|
||||||
};
|
});
|
||||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnBtY2kuc2VydmV6b25lLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvbnBtY2kuc2VydmV6b25lLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSwyQ0FBMEM7QUFFMUM7OztHQUdHO0FBQ0gsSUFBSSxjQUFjLEdBQUcsbUJBQW1CLENBQUE7QUFFeEM7O0dBRUc7QUFDSCxJQUFJLHlCQUF5QixHQUFHLGNBQWMsQ0FBQyxJQUFJLENBQUMsT0FBTyxDQUFDLEdBQUcsQ0FBQyxlQUFlLENBQUMsQ0FBQTtBQUVoRjs7R0FFRztBQUNILElBQUksbUNBQW1DLEdBQUc7SUFDdEMsS0FBSyxFQUFFLE9BQU87SUFDZCxRQUFRLEVBQUUseUJBQXlCLENBQUMsQ0FBQyxDQUFDO0lBQ3RDLElBQUksRUFBRSxRQUFRLENBQUMseUJBQXlCLENBQUMsQ0FBQyxDQUFDLENBQUM7SUFDNUMsSUFBSSxFQUFFLElBQUk7SUFDVixHQUFHLEVBQUUseUJBQXlCLENBQUMsQ0FBQyxDQUFDO0NBQ3BDLENBQUE7Q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@ -1,6 +1,4 @@
|
|||||||
/// <reference types="q" />
|
|
||||||
import * as plugins from './npmci.plugins';
|
|
||||||
/**
|
/**
|
||||||
* checks for ENV vars in form of NPMCI_SSHKEY_* and deploys any found ones
|
* checks for ENV vars in form of NPMCI_SSHKEY_* and deploys any found ones
|
||||||
*/
|
*/
|
||||||
export declare let ssh: () => plugins.q.Promise<{}>;
|
export declare let ssh: () => Promise<void>;
|
||||||
|
23
dist/npmci.ssh.js
vendored
23
dist/npmci.ssh.js
vendored
@ -1,12 +1,20 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||||
|
return new (P || (P = Promise))(function (resolve, reject) {
|
||||||
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||||
|
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||||
|
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
|
||||||
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||||
|
});
|
||||||
|
};
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
const plugins = require("./npmci.plugins");
|
const plugins = require("./npmci.plugins");
|
||||||
let sshRegex = /^(.*)\|(.*)\|(.*)/;
|
let sshRegex = /^(.*)\|(.*)\|(.*)/;
|
||||||
let sshInstance;
|
let sshInstance;
|
||||||
/**
|
/**
|
||||||
* checks for ENV vars in form of NPMCI_SSHKEY_* and deploys any found ones
|
* checks for ENV vars in form of NPMCI_SSHKEY_* and deploys any found ones
|
||||||
*/
|
*/
|
||||||
exports.ssh = () => {
|
exports.ssh = () => __awaiter(this, void 0, void 0, function* () {
|
||||||
let done = plugins.q.defer();
|
|
||||||
sshInstance = new plugins.smartssh.SshInstance(); // init ssh instance
|
sshInstance = new plugins.smartssh.SshInstance(); // init ssh instance
|
||||||
plugins.smartparam.forEachMinimatch(process.env, 'NPMCI_SSHKEY_*', evaluateSshEnv);
|
plugins.smartparam.forEachMinimatch(process.env, 'NPMCI_SSHKEY_*', evaluateSshEnv);
|
||||||
if (!process.env.NPMTS_TEST) {
|
if (!process.env.NPMTS_TEST) {
|
||||||
@ -16,13 +24,11 @@ exports.ssh = () => {
|
|||||||
plugins.beautylog.log('In test mode, so not storing SSH keys to disk!');
|
plugins.beautylog.log('In test mode, so not storing SSH keys to disk!');
|
||||||
}
|
}
|
||||||
;
|
;
|
||||||
done.resolve();
|
});
|
||||||
return done.promise;
|
|
||||||
};
|
|
||||||
/**
|
/**
|
||||||
* gets called for each found SSH ENV Var and deploys it
|
* gets called for each found SSH ENV Var and deploys it
|
||||||
*/
|
*/
|
||||||
let evaluateSshEnv = (sshkeyEnvVarArg) => {
|
let evaluateSshEnv = (sshkeyEnvVarArg) => __awaiter(this, void 0, void 0, function* () {
|
||||||
let resultArray = sshRegex.exec(sshkeyEnvVarArg);
|
let resultArray = sshRegex.exec(sshkeyEnvVarArg);
|
||||||
let sshKey = new plugins.smartssh.SshKey();
|
let sshKey = new plugins.smartssh.SshKey();
|
||||||
plugins.beautylog.info('Found SSH identity for ' + resultArray[1]);
|
plugins.beautylog.info('Found SSH identity for ' + resultArray[1]);
|
||||||
@ -41,11 +47,12 @@ let evaluateSshEnv = (sshkeyEnvVarArg) => {
|
|||||||
}
|
}
|
||||||
;
|
;
|
||||||
sshInstance.addKey(sshKey);
|
sshInstance.addKey(sshKey);
|
||||||
};
|
return;
|
||||||
|
});
|
||||||
/**
|
/**
|
||||||
* checks if not undefined
|
* checks if not undefined
|
||||||
*/
|
*/
|
||||||
let notUndefined = (stringArg) => {
|
let notUndefined = (stringArg) => {
|
||||||
return (stringArg && stringArg !== 'undefined' && stringArg !== '##');
|
return (stringArg && stringArg !== 'undefined' && stringArg !== '##');
|
||||||
};
|
};
|
||||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnBtY2kuc3NoLmpzIiw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UFBSSxZQUFZLEdBQUcsQ0FBQyxTQUFpQjtJQUNuQyxNQUFNLENBQUMsQ0FBQyxTQUFTLElBQUksU0FBUyxLQUFLLFdBQVcsSUFBSSxTQUFTLEtBQUssSUFBSSxDQUFDLENBQUE7QUFDdkUsQ0FBQyxDQUFBIn0=
|
4
dist/npmci.test.d.ts
vendored
4
dist/npmci.test.d.ts
vendored
@ -1,3 +1 @@
|
|||||||
/// <reference types="q" />
|
export declare let test: (versionArg: any) => Promise<void>;
|
||||||
import * as plugins from './npmci.plugins';
|
|
||||||
export declare let test: (versionArg: any) => plugins.q.Promise<{}>;
|
|
||||||
|
58
dist/npmci.test.js
vendored
58
dist/npmci.test.js
vendored
@ -1,46 +1,38 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||||
|
return new (P || (P = Promise))(function (resolve, reject) {
|
||||||
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||||
|
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||||
|
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
|
||||||
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||||
|
});
|
||||||
|
};
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
const plugins = require("./npmci.plugins");
|
const plugins = require("./npmci.plugins");
|
||||||
const npmci_bash_1 = require("./npmci.bash");
|
const npmci_bash_1 = require("./npmci.bash");
|
||||||
const npmci_install_1 = require("./npmci.install");
|
const npmci_install_1 = require("./npmci.install");
|
||||||
const NpmciBuildDocker = require("./npmci.build.docker");
|
const NpmciBuildDocker = require("./npmci.build.docker");
|
||||||
exports.test = (versionArg) => {
|
exports.test = (versionArg) => __awaiter(this, void 0, void 0, function* () {
|
||||||
let done = plugins.q.defer();
|
|
||||||
if (versionArg === 'docker') {
|
if (versionArg === 'docker') {
|
||||||
testDocker()
|
yield testDocker();
|
||||||
.then(() => {
|
|
||||||
done.resolve();
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
npmci_install_1.install(versionArg)
|
yield npmci_install_1.install(versionArg)
|
||||||
.then(npmDependencies)
|
.then(npmDependencies)
|
||||||
.then(npmTest)
|
.then(npmTest);
|
||||||
.then(() => {
|
|
||||||
done.resolve();
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
return done.promise;
|
});
|
||||||
};
|
let npmDependencies = () => __awaiter(this, void 0, void 0, function* () {
|
||||||
let npmDependencies = function () {
|
|
||||||
let done = plugins.q.defer();
|
|
||||||
plugins.beautylog.info('now installing dependencies:');
|
plugins.beautylog.info('now installing dependencies:');
|
||||||
npmci_bash_1.bash('npm install');
|
yield npmci_bash_1.bash('npm install');
|
||||||
done.resolve();
|
});
|
||||||
return done.promise;
|
let npmTest = () => __awaiter(this, void 0, void 0, function* () {
|
||||||
};
|
|
||||||
let npmTest = () => {
|
|
||||||
let done = plugins.q.defer();
|
|
||||||
plugins.beautylog.info('now starting tests:');
|
plugins.beautylog.info('now starting tests:');
|
||||||
npmci_bash_1.bash('npm test');
|
yield npmci_bash_1.bash('npm test');
|
||||||
done.resolve();
|
});
|
||||||
return done.promise;
|
let testDocker = () => __awaiter(this, void 0, void 0, function* () {
|
||||||
};
|
return yield NpmciBuildDocker.readDockerfiles()
|
||||||
let testDocker = function () {
|
|
||||||
let done = plugins.q.defer();
|
|
||||||
NpmciBuildDocker.readDockerfiles()
|
|
||||||
.then(NpmciBuildDocker.pullDockerfileImages)
|
.then(NpmciBuildDocker.pullDockerfileImages)
|
||||||
.then(NpmciBuildDocker.testDockerfiles)
|
.then(NpmciBuildDocker.testDockerfiles);
|
||||||
.then(done.resolve);
|
});
|
||||||
return done.promise;
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnBtY2kudGVzdC5qcyIsInNvdXJjZVJvb3QiO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7SUFDdEQsaUJBQUksQ0FBQyxhQUFhLENBQUMsQ0FBQTtJQUNuQixJQUFJLENBQUMsT0FBTyxFQUFFLENBQUE7SUFDZCxNQUFNLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQTtBQUN2QixDQUFDLENBQUE7QUFFRCxJQUFJLE9BQU8sR0FBRztJQUNWLElBQUksSUFBSSxHQUFHLE9BQU8sQ0FBQyxDQUFDLENBQUMsS0FBSyxFQUFFLENBQUE7SUFDNUIsT0FBTyxDQUFDLFNBQVMsQ0FBQyxJQUFJLENBQUMscUJBQXFCLENBQUMsQ0FBQTtJQUM3QyxpQkFBSSxDQUFDLFVBQVUsQ0FBQyxDQUFBO0lBQ2hCLElBQUksQ0FBQyxPQUFPLEVBQUUsQ0FBQTtJQUNkLE1BQU0sQ0FBQyxJQUFJLENBQUMsT0FBTyxDQUFBO0FBQ3ZCLENBQUMsQ0FBQTtBQUVELElBQUksVUFBVSxHQUFHO0lBQ2IsSUFBSSxJQUFJLEdBQUcsT0FBTyxDQUFDLENBQUMsQ0FBQyxLQUFLLEVBQUUsQ0FBQTtJQUM1QixnQkFBZ0IsQ0FBQyxlQUFlLEVBQUU7U0FDN0IsSUFBSSxDQUFDLGdCQUFnQixDQUFDLG9CQUFvQixDQUFDO1NBQzNDLElBQUksQ0FBQyxnQkFBZ0IsQ0FBQyxlQUFlLENBQUM7U0FDdEMsSUFBSSxDQUFDLElBQUksQ0FBQyxPQUFPLENBQUMsQ0FBQTtJQUN2QixNQUFNLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQTtBQUN2QixDQUFDLENBQUEifQ==
|
|
4
dist/npmci.trigger.d.ts
vendored
4
dist/npmci.trigger.d.ts
vendored
@ -1,3 +1 @@
|
|||||||
/// <reference types="q" />
|
export declare let trigger: () => Promise<void>;
|
||||||
import * as plugins from './npmci.plugins';
|
|
||||||
export declare let trigger: () => plugins.q.Promise<{}>;
|
|
||||||
|
22
dist/npmci.trigger.js
vendored
22
dist/npmci.trigger.js
vendored
@ -1,14 +1,20 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||||
|
return new (P || (P = Promise))(function (resolve, reject) {
|
||||||
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||||
|
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||||
|
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
|
||||||
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||||
|
});
|
||||||
|
};
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
const plugins = require("./npmci.plugins");
|
const plugins = require("./npmci.plugins");
|
||||||
let triggerValueRegex = /^([a-zA-Z0-9\.]*)\|([a-zA-Z0-9\.]*)\|([a-zA-Z0-9\.]*)\|([a-zA-Z0-9\.]*)\|?([a-zA-Z0-9\.\-\/]*)/;
|
let triggerValueRegex = /^([a-zA-Z0-9\.]*)\|([a-zA-Z0-9\.]*)\|([a-zA-Z0-9\.]*)\|([a-zA-Z0-9\.]*)\|?([a-zA-Z0-9\.\-\/]*)/;
|
||||||
exports.trigger = function () {
|
exports.trigger = () => __awaiter(this, void 0, void 0, function* () {
|
||||||
let done = plugins.q.defer();
|
|
||||||
plugins.beautylog.info('now running triggers');
|
plugins.beautylog.info('now running triggers');
|
||||||
plugins.smartparam.forEachMinimatch(process.env, 'NPMCI_TRIGGER_*', evaluateTrigger);
|
plugins.smartparam.forEachMinimatch(process.env, 'NPMCI_TRIGGER_*', evaluateTrigger);
|
||||||
done.resolve();
|
});
|
||||||
return done.promise;
|
let evaluateTrigger = (triggerEnvVarArg) => __awaiter(this, void 0, void 0, function* () {
|
||||||
};
|
|
||||||
let evaluateTrigger = (triggerEnvVarArg) => {
|
|
||||||
let triggerRegexResultArray = triggerValueRegex.exec(triggerEnvVarArg);
|
let triggerRegexResultArray = triggerValueRegex.exec(triggerEnvVarArg);
|
||||||
let regexDomain = triggerRegexResultArray[1];
|
let regexDomain = triggerRegexResultArray[1];
|
||||||
let regexProjectId = triggerRegexResultArray[2];
|
let regexProjectId = triggerRegexResultArray[2];
|
||||||
@ -24,5 +30,5 @@ let evaluateTrigger = (triggerEnvVarArg) => {
|
|||||||
plugins.beautylog.info('Found Trigger!');
|
plugins.beautylog.info('Found Trigger!');
|
||||||
plugins.beautylog.log('triggering build for ref ' + regexRefName + ' of ' + regexTriggerName);
|
plugins.beautylog.log('triggering build for ref ' + regexRefName + ' of ' + regexTriggerName);
|
||||||
plugins.request.post('https://gitlab.com/api/v3/projects/' + regexProjectId + '/trigger/builds', { form: { token: regexProjectTriggerToken, ref: regexRefName } });
|
plugins.request.post('https://gitlab.com/api/v3/projects/' + regexProjectId + '/trigger/builds', { form: { token: regexProjectTriggerToken, ref: regexRefName } });
|
||||||
};
|
});
|
||||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnBtY2kudHJpZ2dlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL25wbWNpLnRyaWdnZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLDJDQUEwQztBQUkxQyxJQUFJLGlCQUFpQixHQUFHLGdHQUFnRyxDQUFBO0FBRTdHLFFBQUEsT0FBTyxHQUFHO0lBQ2pCLElBQUksSUFBSSxHQUFHLE9BQU8sQ0FBQyxDQUFDLENBQUMsS0FBSyxFQUFFLENBQUE7SUFDNUIsT0FBTyxDQUFDLFNBQVMsQ0FBQyxJQUFJLENBQUMsc0JBQXNCLENBQUMsQ0FBQTtJQUM5QyxPQUFPLENBQUMsVUFBVSxDQUFDLGdCQUFnQixDQUFDLE9BQU8sQ0FBQyxHQUFHLEVBQUUsaUJBQWlCLEVBQUUsZUFBZSxDQUFDLENBQUE7SUFDcEYsSUFBSSxDQUFDLE9BQU8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DLENBQUMsdUJBQXVCLENBQUMsTUFBTSxLQUFLLENBQUMsQ0FBQyxDQUFDLENBQUM7UUFDekMsZ0JBQWdCLEdBQUcsdUJBQXVCLENBQUMsQ0FBQyxDQUFDLENBQUE7SUFDL0MsQ0FBQztJQUFDLElBQUksQ0FBQyxDQUFDO1FBQ04sZ0JBQWdCLEdBQUcsaUJBQWlCLENBQUE7SUFDdEMsQ0FBQztJQUNELE9BQU8sQ0FBQyxTQUFTLENBQUMsSUFBSSxDQUFDLGdCQUFnQixDQUFDLENBQUE7SUFDeEMsT0FBTyxDQUFDLFNBQVMsQ0FBQyxHQUFHLENBQUMsMkJBQTJCLEdBQUcsWUFBWSxHQUFHLE1BQU0sR0FBRyxnQkFBZ0IsQ0FBQyxDQUFBO0lBQzdGLE9BQU8sQ0FBQyxPQUFPLENBQUMsSUFBSSxDQUFDLHFDQUFxQyxHQUFHLGNBQWMsR0FBRyxpQkFBaUIsRUFBRSxFQUFFLElBQUksRUFBRSxFQUFFLEtBQUssRUFBRSx3QkFBd0IsRUFBRSxHQUFHLEVBQUUsWUFBWSxFQUFFLEVBQUUsQ0FBQyxDQUFBO0FBQ3BLLENBQUMsQ0FBQSxDQUFBIn0=
|
@ -4,7 +4,13 @@
|
|||||||
"coverageTreshold": "70",
|
"coverageTreshold": "70",
|
||||||
"cli": true
|
"cli": true
|
||||||
},
|
},
|
||||||
|
"npmci": {
|
||||||
|
"globalNpmTools": [
|
||||||
|
"npmts"
|
||||||
|
]
|
||||||
|
},
|
||||||
"npmdocker":{
|
"npmdocker":{
|
||||||
"baseImage":"hosttoday/ht-docker-node:npmts"
|
"baseImage":"hosttoday/ht-docker-node:npmts",
|
||||||
|
"command": "npmci test stable"
|
||||||
}
|
}
|
||||||
}
|
}
|
18
package.json
18
package.json
@ -24,26 +24,28 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/should": "^8.1.30",
|
"@types/should": "^8.1.30",
|
||||||
"npmts-g": "^6.0.0",
|
"npmts-g": "^6.0.0",
|
||||||
"should": "^11.2.0",
|
"should": "^11.2.1",
|
||||||
"typings-test": "^1.0.3"
|
"typings-test": "^1.0.3"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@types/lodash": "^4.14.52",
|
"@types/lodash": "^4.14.55",
|
||||||
"@types/node": "^7.0.5",
|
"@types/node": "^7.0.8",
|
||||||
"@types/request": "0.x.x",
|
"@types/request": "0.x.x",
|
||||||
"@types/shelljs": "^0.7.0",
|
"@types/shelljs": "^0.7.0",
|
||||||
"@types/through2": "^2.0.32",
|
"@types/through2": "^2.0.32",
|
||||||
"beautylog": "^6.1.1",
|
"beautylog": "^6.1.3",
|
||||||
"gulp": "^3.9.1",
|
"gulp": "^3.9.1",
|
||||||
"gulp-function": "^2.2.3",
|
"gulp-function": "^2.2.3",
|
||||||
"lodash": "^4.17.4",
|
"lodash": "^4.17.4",
|
||||||
"npmextra": "^2.0.3",
|
"npmextra": "^2.0.3",
|
||||||
"projectinfo": "^3.0.1",
|
"projectinfo": "^3.0.2",
|
||||||
"request": "^2.79.0",
|
"request": "^2.81.0",
|
||||||
"shelljs": "^0.7.6",
|
"shelljs": "^0.7.7",
|
||||||
"smartcli": "^2.0.1",
|
"smartcli": "^2.0.1",
|
||||||
"smartfile": "^4.1.6",
|
"smartfile": "^4.1.7",
|
||||||
"smartparam": "^0.1.1",
|
"smartparam": "^0.1.1",
|
||||||
|
"smartq": "^1.1.1",
|
||||||
|
"smartshell": "^1.0.2",
|
||||||
"smartsocket": "^1.1.7",
|
"smartsocket": "^1.1.7",
|
||||||
"smartssh": "^1.2.1",
|
"smartssh": "^1.2.1",
|
||||||
"smartstring": "^2.0.24",
|
"smartstring": "^2.0.24",
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
require("typings-test");
|
require("typings-test");
|
||||||
const should = require("should");
|
const should = require("should");
|
||||||
const path = require("path");
|
const path = require("path");
|
||||||
@ -85,4 +86,4 @@ describe('NPMCI', function () {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInRlc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLHdCQUFxQjtBQUNyQixpQ0FBZ0M7QUFDaEMsNkJBQTRCO0FBRTVCLHFCQUFxQjtBQUNyQixPQUFPLENBQUMsR0FBRyxDQUFDLGFBQWEsR0FBRyx1REFBdUQsQ0FBQTtBQUNuRixPQUFPLENBQUMsR0FBRyxDQUFDLGNBQWMsR0FBRywyQkFBMkIsQ0FBQTtBQUN4RCxPQUFPLENBQUMsR0FBRyxDQUFDLFVBQVUsR0FBRyxNQUFNLENBQUE7QUFDL0IsT0FBTyxDQUFDLEdBQUcsR0FBRztJQUNWLE1BQU0sQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDLFNBQVMsRUFBQyxTQUFTLENBQUMsQ0FBQTtBQUN6QyxDQUFDLENBQUE7QUFJRCwrREFBK0Q7QUFDL0Qsc0RBQXNEO0FBQ3RELGdEQUFnRDtBQUNoRCw4Q0FBOEM7QUFHOUMsSUFBSSxXQUF3QyxDQUFBO0FBQzVDLElBQUksV0FBd0MsQ0FBQTtBQUM1QyxJQUFJLGFBQTRDLENBQUE7QUFFaEQsUUFBUSxDQUFDLE9BQU8sRUFBQztJQUNiLFFBQVEsQ0FBQyxjQUFjLEVBQUM7UUFDcEIsRUFBRSxDQUFDLGlDQUFpQyxFQUFDO1lBQ2pDLFdBQVcsR0FBRyxJQUFJLGdCQUFnQixDQUFDLFVBQVUsQ0FBQyxFQUFDLFFBQVEsRUFBRSxjQUFjLEVBQUUsSUFBSSxFQUFFLElBQUksRUFBQyxDQUFDLENBQUE7WUFDckYsV0FBVyxH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Q0FBQyxDQUFBO1lBQ25DLENBQUMsQ0FBQztpQkFDRCxJQUFJLENBQUM7Z0JBQ0YsSUFBSSxFQUFFLENBQUE7WUFDVixDQUFDLENBQUMsQ0FBQTtRQUNWLENBQUMsQ0FBQyxDQUFBO0lBQ04sQ0FBQyxDQUFDLENBQUE7SUFFRixRQUFRLENBQUMsYUFBYSxFQUFDO1FBQ25CLEVBQUUsQ0FBQyx5QkFBeUIsRUFBQyxVQUFTLElBQUk7WUFDdEMsU0FBUyxDQUFDLElBQUksQ0FBQyxRQUFRLENBQUM7aUJBQ25CLElBQUksQ0FBQztnQkFDRixJQUFJLEVBQUUsQ0FBQTtZQUNWLENBQUMsQ0FBQyxDQUFBO1FBQ1YsQ0FBQyxDQUFDLENBQUE7SUFDTixDQUFDLENBQUMsQ0FBQTtJQUVGLFFBQVEsQ0FBQyxtQkFBbUIsRUFBQztRQUN6QixFQUFFLENBQUMseUJBQXlCLEVBQUMsVUFBUyxJQUFJO1lBQ3RDLFFBQVEsQ0FBQyxHQUFHLEVBQUU7aUJBQ1QsSUFBSSxDQUFDO2dCQUNGLElBQUksRUFBRSxDQUFBO1lBQ1YsQ0FBQyxDQUFDLENBQUE7UUFDVixDQUFDLENBQUMsQ0FBQTtJQUNOLENBQUMsQ0FBQyxDQUFBO0FBQ04sQ0FBQyxDQUFDLENBQUEifQ==
|
@ -1,61 +1,83 @@
|
|||||||
import * as plugins from './npmci.plugins'
|
import * as plugins from './npmci.plugins'
|
||||||
|
import * as smartq from 'smartq'
|
||||||
|
|
||||||
let nvmSourceString: string = ''
|
/**
|
||||||
export let nvmAvailable: boolean = false
|
* wether nvm is available or not
|
||||||
let checkNvm = () => {
|
*/
|
||||||
let localExec: any = plugins.shelljs.exec
|
export let nvmAvailable = smartq.defer<boolean>()
|
||||||
if (localExec(`bash -c "source /usr/local/nvm/nvm.sh"`, { silent: true }).code === 0) {
|
|
||||||
nvmSourceString = `source /usr/local/nvm/nvm.sh && `
|
/**
|
||||||
nvmAvailable = true
|
* the smartshell instance for npmci
|
||||||
} else if (localExec(`bash -c "source ~/.nvm/nvm.sh"`, { silent: true }).code === 0) {
|
*/
|
||||||
nvmSourceString = `source ~/.nvm/nvm.sh && `
|
let npmciSmartshell = new plugins.smartshell.Smartshell({
|
||||||
nvmAvailable = true
|
executor: 'bash',
|
||||||
|
sourceFilePaths: []
|
||||||
|
})
|
||||||
|
|
||||||
|
let checkNvm = async () => {
|
||||||
|
if (
|
||||||
|
(await plugins.smartshell.execSilent(`bash -c "source /usr/local/nvm/nvm.sh"`)).exitCode === 0
|
||||||
|
) {
|
||||||
|
npmciSmartshell.addSourceFiles([`/usr/local/nvm/nvm.sh && `])
|
||||||
|
nvmAvailable.resolve(true)
|
||||||
|
} else if (
|
||||||
|
(await plugins.smartshell.execSilent(`bash -c "source ~/.nvm/nvm.sh"`)).exitCode === 0
|
||||||
|
) {
|
||||||
|
npmciSmartshell.addSourceFiles([`~/.nvm/nvm.sh && `])
|
||||||
|
nvmAvailable.resolve(true)
|
||||||
|
} else {
|
||||||
|
nvmAvailable.resolve(false)
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
checkNvm()
|
checkNvm()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* bash() allows using bash with nvm in path
|
* bash() allows using bash with nvm in path
|
||||||
* @param commandArg - The command to execute
|
* @param commandArg - The command to execute
|
||||||
* @param retryArg - The retryArg: 0 to any positive number will retry, -1 will always succeed, -2 will return undefined
|
* @param retryArg - The retryArg: 0 to any positive number will retry, -1 will always succeed, -2 will return undefined
|
||||||
*/
|
*/
|
||||||
export let bash = async (commandArg: string, retryArg: number = 2, bareArg: boolean = false): Promise<string> => {
|
export let bash = async (commandArg: string, retryArg: number = 2, bareArg: boolean = false): Promise<string> => {
|
||||||
let exitCode: number
|
await nvmAvailable.promise // make sure nvm check has run
|
||||||
let stdOut: string
|
let execResult: plugins.smartshell.IExecResult
|
||||||
let execResult
|
|
||||||
|
// determine if we fail
|
||||||
let failOnError: boolean = true
|
let failOnError: boolean = true
|
||||||
if (retryArg === -1) {
|
if (retryArg === -1) {
|
||||||
failOnError = false
|
failOnError = false
|
||||||
retryArg = 0
|
retryArg = 0
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!process.env.NPMTS_TEST) { // NPMTS_TEST is used during testing
|
if (!process.env.NPMTS_TEST) { // NPMTS_TEST is used during testing
|
||||||
for (let i = 0; i <= retryArg; i++) {
|
for (let i = 0; i <= retryArg; i++) {
|
||||||
if (!bareArg) {
|
if (!bareArg) {
|
||||||
execResult = plugins.shelljs.exec(
|
execResult = await npmciSmartshell.execSilent(commandArg)
|
||||||
`bash -c "${nvmSourceString} ${commandArg}"`
|
|
||||||
)
|
|
||||||
} else {
|
} else {
|
||||||
execResult = plugins.shelljs.exec(commandArg)
|
execResult = await plugins.smartshell.exec(commandArg)
|
||||||
}
|
}
|
||||||
exitCode = execResult.code
|
|
||||||
stdOut = execResult.stdout
|
|
||||||
|
|
||||||
// determine how bash reacts to error and success
|
// determine how bash reacts to error and success
|
||||||
if (exitCode !== 0 && i === retryArg) { // something went wrong and retries are exhausted
|
if (execResult.exitCode !== 0 && i === retryArg) { // something went wrong and retries are exhausted
|
||||||
if (failOnError) {
|
if (failOnError) {
|
||||||
plugins.beautylog.error('something went wrong and retries are exhausted')
|
plugins.beautylog.error('something went wrong and retries are exhausted')
|
||||||
process.exit(1)
|
process.exit(1)
|
||||||
}
|
}
|
||||||
} else if (exitCode === 0) { // everything went fine, or no error wanted
|
} else if (execResult.exitCode === 0) { // everything went fine, or no error wanted
|
||||||
i = retryArg + 1 // retry +1 breaks for loop, if everything works out ok retrials are not wanted
|
i = retryArg + 1 // retry +1 breaks for loop, if everything works out ok retrials are not wanted
|
||||||
} else {
|
} else {
|
||||||
plugins.beautylog.warn('Something went wrong! Exit Code: ' + exitCode.toString())
|
plugins.beautylog.warn('Something went wrong! Exit Code: ' + execResult.exitCode.toString())
|
||||||
plugins.beautylog.info('Retry ' + (i + 1).toString() + ' of ' + retryArg.toString())
|
plugins.beautylog.info('Retry ' + (i + 1).toString() + ' of ' + retryArg.toString())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
plugins.beautylog.log('ShellExec would be: ' + commandArg)
|
plugins.beautylog.log('ShellExec would be: ' + commandArg)
|
||||||
|
execResult = {
|
||||||
|
exitCode: 0,
|
||||||
|
stdout: 'testOutput'
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
return execResult.stdout
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -40,7 +40,7 @@ export let readDockerfiles = async (): Promise<Dockerfile[]> => {
|
|||||||
* @param sortableArrayArg an array of instances of class Dockerfile
|
* @param sortableArrayArg an array of instances of class Dockerfile
|
||||||
* @returns Promise<Dockerfile[]>
|
* @returns Promise<Dockerfile[]>
|
||||||
*/
|
*/
|
||||||
export let sortDockerfiles = (sortableArrayArg: Dockerfile[]): plugins.q.Promise<Dockerfile[]> => {
|
export let sortDockerfiles = (sortableArrayArg: Dockerfile[]): Promise<Dockerfile[]> => {
|
||||||
let done = plugins.q.defer<Dockerfile[]>()
|
let done = plugins.q.defer<Dockerfile[]>()
|
||||||
let sortedArray: Dockerfile[] = []
|
let sortedArray: Dockerfile[] = []
|
||||||
let cleanTagsOriginal = cleanTagsArrayFunction(sortableArrayArg, sortedArray)
|
let cleanTagsOriginal = cleanTagsArrayFunction(sortableArrayArg, sortedArray)
|
||||||
@ -69,7 +69,7 @@ export let sortDockerfiles = (sortableArrayArg: Dockerfile[]): plugins.q.Promise
|
|||||||
/**
|
/**
|
||||||
* maps local Dockerfiles dependencies to the correspoding Dockerfile class instances
|
* maps local Dockerfiles dependencies to the correspoding Dockerfile class instances
|
||||||
*/
|
*/
|
||||||
export let mapDockerfiles = async (sortedArray: Dockerfile[]): plugins.q.Promise<Dockerfile[]> => {
|
export let mapDockerfiles = async (sortedArray: Dockerfile[]): Promise<Dockerfile[]> => {
|
||||||
sortedArray.forEach((dockerfileArg) => {
|
sortedArray.forEach((dockerfileArg) => {
|
||||||
if (dockerfileArg.localBaseImageDependent) {
|
if (dockerfileArg.localBaseImageDependent) {
|
||||||
sortedArray.forEach((dockfile2: Dockerfile) => {
|
sortedArray.forEach((dockfile2: Dockerfile) => {
|
||||||
|
@ -19,7 +19,7 @@ export let install = async (versionArg) => {
|
|||||||
} else {
|
} else {
|
||||||
version = versionArg
|
version = versionArg
|
||||||
};
|
};
|
||||||
if (nvmAvailable) {
|
if (await nvmAvailable.promise) {
|
||||||
await bash(`nvm install ${version} && nvm alias default ${version}`)
|
await bash(`nvm install ${version} && nvm alias default ${version}`)
|
||||||
plugins.beautylog.success(`Node version ${version} successfully installed!`)
|
plugins.beautylog.success(`Node version ${version} successfully installed!`)
|
||||||
} else {
|
} else {
|
||||||
|
@ -1,16 +1,18 @@
|
|||||||
export import beautylog = require('beautylog')
|
export import beautylog = require('beautylog')
|
||||||
export let gulp = require('gulp')
|
export let gulp = require('gulp')
|
||||||
export import gulpFunction = require('gulp-function')
|
export import gulpFunction = require('gulp-function')
|
||||||
export import lodash = require('lodash')
|
export let lodash = require('lodash')
|
||||||
export import npmextra = require('npmextra')
|
export import npmextra = require('npmextra')
|
||||||
export import path = require('path')
|
export import path = require('path')
|
||||||
export import projectinfo = require('projectinfo')
|
export import projectinfo = require('projectinfo')
|
||||||
export import q = require('smartq')
|
export import q = require('smartq')
|
||||||
export let request = require('request')
|
export let request = require('request')
|
||||||
export import shelljs = require('shelljs')
|
|
||||||
export import smartcli = require('smartcli')
|
export import smartcli = require('smartcli')
|
||||||
export import smartfile = require('smartfile')
|
export import smartfile = require('smartfile')
|
||||||
|
export import shelljs = require('shelljs')
|
||||||
export import smartparam = require('smartparam')
|
export import smartparam = require('smartparam')
|
||||||
|
export import smartq = require('smartq')
|
||||||
|
export import smartshell = require('smartshell')
|
||||||
export import smartsocket = require('smartsocket')
|
export import smartsocket = require('smartsocket')
|
||||||
export import smartssh = require('smartssh')
|
export import smartssh = require('smartssh')
|
||||||
export import smartstring = require('smartstring')
|
export import smartstring = require('smartstring')
|
||||||
|
249
yarn.lock
249
yarn.lock
@ -12,26 +12,24 @@
|
|||||||
dependencies:
|
dependencies:
|
||||||
"@types/node" "*"
|
"@types/node" "*"
|
||||||
|
|
||||||
"@types/fs-extra@0.0.35":
|
"@types/fs-extra@0.0.35", "@types/fs-extra@0.x.x":
|
||||||
version "0.0.35"
|
version "0.0.35"
|
||||||
resolved "https://registry.yarnpkg.com/@types/fs-extra/-/fs-extra-0.0.35.tgz#3ed400c0122fb161db51da23d96ba5040cb9c7d9"
|
resolved "https://registry.yarnpkg.com/@types/fs-extra/-/fs-extra-0.0.35.tgz#3ed400c0122fb161db51da23d96ba5040cb9c7d9"
|
||||||
dependencies:
|
dependencies:
|
||||||
"@types/node" "*"
|
"@types/node" "*"
|
||||||
|
|
||||||
"@types/fs-extra@0.x.x":
|
|
||||||
version "0.0.37"
|
|
||||||
resolved "https://registry.yarnpkg.com/@types/fs-extra/-/fs-extra-0.0.37.tgz#195f11bcd9a1b97d9e412c6b66899b545471a1f7"
|
|
||||||
dependencies:
|
|
||||||
"@types/node" "*"
|
|
||||||
|
|
||||||
"@types/js-base64@^2.1.5":
|
"@types/js-base64@^2.1.5":
|
||||||
version "2.1.5"
|
version "2.1.5"
|
||||||
resolved "https://registry.yarnpkg.com/@types/js-base64/-/js-base64-2.1.5.tgz#31b6d36a66a4c59ae3f31b5e16bfd6b832a6eb41"
|
resolved "https://registry.yarnpkg.com/@types/js-base64/-/js-base64-2.1.5.tgz#31b6d36a66a4c59ae3f31b5e16bfd6b832a6eb41"
|
||||||
|
|
||||||
"@types/lodash@4.x.x", "@types/lodash@^4.14.35", "@types/lodash@^4.14.52":
|
"@types/lodash@4.x.x", "@types/lodash@^4.14.35":
|
||||||
version "4.14.52"
|
version "4.14.52"
|
||||||
resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.52.tgz#de5c7ab14da1289733233c9b0ec6f9e377db90f5"
|
resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.52.tgz#de5c7ab14da1289733233c9b0ec6f9e377db90f5"
|
||||||
|
|
||||||
|
"@types/lodash@^4.14.55":
|
||||||
|
version "4.14.55"
|
||||||
|
resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.55.tgz#75d7d4eba020ee4103d4cbd0f2a3ef5db8f7534f"
|
||||||
|
|
||||||
"@types/loggly@1.x.x":
|
"@types/loggly@1.x.x":
|
||||||
version "1.1.30"
|
version "1.1.30"
|
||||||
resolved "https://registry.yarnpkg.com/@types/loggly/-/loggly-1.1.30.tgz#a6658432314cbf0ec0350d33e7df9f4c0b76b3d0"
|
resolved "https://registry.yarnpkg.com/@types/loggly/-/loggly-1.1.30.tgz#a6658432314cbf0ec0350d33e7df9f4c0b76b3d0"
|
||||||
@ -44,10 +42,14 @@
|
|||||||
version "2.2.39"
|
version "2.2.39"
|
||||||
resolved "https://registry.yarnpkg.com/@types/mocha/-/mocha-2.2.39.tgz#f68d63db8b69c38e9558b4073525cf96c4f7a829"
|
resolved "https://registry.yarnpkg.com/@types/mocha/-/mocha-2.2.39.tgz#f68d63db8b69c38e9558b4073525cf96c4f7a829"
|
||||||
|
|
||||||
"@types/node@*", "@types/node@^7.0.5":
|
"@types/node@*":
|
||||||
version "7.0.5"
|
version "7.0.5"
|
||||||
resolved "https://registry.yarnpkg.com/@types/node/-/node-7.0.5.tgz#96a0f0a618b7b606f1ec547403c00650210bfbb7"
|
resolved "https://registry.yarnpkg.com/@types/node/-/node-7.0.5.tgz#96a0f0a618b7b606f1ec547403c00650210bfbb7"
|
||||||
|
|
||||||
|
"@types/node@^7.0.8":
|
||||||
|
version "7.0.8"
|
||||||
|
resolved "https://registry.yarnpkg.com/@types/node/-/node-7.0.8.tgz#25e4dd804b630c916ae671233e6d71f6ce18124a"
|
||||||
|
|
||||||
"@types/q@0.0.32", "@types/q@0.x.x", "@types/q@^0.x.x":
|
"@types/q@0.0.32", "@types/q@0.x.x", "@types/q@^0.x.x":
|
||||||
version "0.0.32"
|
version "0.0.32"
|
||||||
resolved "https://registry.yarnpkg.com/@types/q/-/q-0.0.32.tgz#bd284e57c84f1325da702babfc82a5328190c0c5"
|
resolved "https://registry.yarnpkg.com/@types/q/-/q-0.0.32.tgz#bd284e57c84f1325da702babfc82a5328190c0c5"
|
||||||
@ -65,6 +67,12 @@
|
|||||||
dependencies:
|
dependencies:
|
||||||
"@types/node" "*"
|
"@types/node" "*"
|
||||||
|
|
||||||
|
"@types/shelljs@^0.6.0":
|
||||||
|
version "0.6.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/@types/shelljs/-/shelljs-0.6.0.tgz#090b705c102ce7fc5c0c5ea9b524418ff15840df"
|
||||||
|
dependencies:
|
||||||
|
"@types/node" "*"
|
||||||
|
|
||||||
"@types/shelljs@^0.7.0":
|
"@types/shelljs@^0.7.0":
|
||||||
version "0.7.0"
|
version "0.7.0"
|
||||||
resolved "https://registry.yarnpkg.com/@types/shelljs/-/shelljs-0.7.0.tgz#229c157c6bc1e67d6b990e6c5e18dbd2ff58cff0"
|
resolved "https://registry.yarnpkg.com/@types/shelljs/-/shelljs-0.7.0.tgz#229c157c6bc1e67d6b990e6c5e18dbd2ff58cff0"
|
||||||
@ -101,12 +109,6 @@
|
|||||||
dependencies:
|
dependencies:
|
||||||
"@types/node" "*"
|
"@types/node" "*"
|
||||||
|
|
||||||
"@types/vinyl@^1.1.29":
|
|
||||||
version "1.2.30"
|
|
||||||
resolved "https://registry.yarnpkg.com/@types/vinyl/-/vinyl-1.2.30.tgz#9115c0c45c40c575738906be9fb4df6f5b9e5013"
|
|
||||||
dependencies:
|
|
||||||
"@types/node" "*"
|
|
||||||
|
|
||||||
"@types/vinyl@^2.0.0":
|
"@types/vinyl@^2.0.0":
|
||||||
version "2.0.0"
|
version "2.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/@types/vinyl/-/vinyl-2.0.0.tgz#fd213bf7f4136dde21fe1895500b12c186f8c268"
|
resolved "https://registry.yarnpkg.com/@types/vinyl/-/vinyl-2.0.0.tgz#fd213bf7f4136dde21fe1895500b12c186f8c268"
|
||||||
@ -128,6 +130,13 @@ after@0.8.2:
|
|||||||
version "0.8.2"
|
version "0.8.2"
|
||||||
resolved "https://registry.yarnpkg.com/after/-/after-0.8.2.tgz#fedb394f9f0e02aa9768e702bda23b505fae7e1f"
|
resolved "https://registry.yarnpkg.com/after/-/after-0.8.2.tgz#fedb394f9f0e02aa9768e702bda23b505fae7e1f"
|
||||||
|
|
||||||
|
ajv@^4.9.1:
|
||||||
|
version "4.11.4"
|
||||||
|
resolved "https://registry.yarnpkg.com/ajv/-/ajv-4.11.4.tgz#ebf3a55d4b132ea60ff5847ae85d2ef069960b45"
|
||||||
|
dependencies:
|
||||||
|
co "^4.6.0"
|
||||||
|
json-stable-stringify "^1.0.1"
|
||||||
|
|
||||||
ansi-256-colors@^1.1.0:
|
ansi-256-colors@^1.1.0:
|
||||||
version "1.1.0"
|
version "1.1.0"
|
||||||
resolved "https://registry.yarnpkg.com/ansi-256-colors/-/ansi-256-colors-1.1.0.tgz#910de50efcc7c09e3d82f2f87abd6b700c18818a"
|
resolved "https://registry.yarnpkg.com/ansi-256-colors/-/ansi-256-colors-1.1.0.tgz#910de50efcc7c09e3d82f2f87abd6b700c18818a"
|
||||||
@ -288,6 +297,19 @@ beautylog@^6.0.0, beautylog@^6.1.1:
|
|||||||
smartq "^1.0.4"
|
smartq "^1.0.4"
|
||||||
typings-global "^1.0.14"
|
typings-global "^1.0.14"
|
||||||
|
|
||||||
|
beautylog@^6.1.3:
|
||||||
|
version "6.1.3"
|
||||||
|
resolved "https://registry.yarnpkg.com/beautylog/-/beautylog-6.1.3.tgz#0e8640cc429746b1e0c46e8767e9273b6b1902f1"
|
||||||
|
dependencies:
|
||||||
|
"@types/lodash" "4.x.x"
|
||||||
|
beautycolor "^1.0.5"
|
||||||
|
figlet "^1.2.0"
|
||||||
|
lodash "^4.17.4"
|
||||||
|
ora "^1.1.0"
|
||||||
|
smartenv "^2.0.0"
|
||||||
|
smartq "^1.0.4"
|
||||||
|
typings-global "^1.0.14"
|
||||||
|
|
||||||
beeper@^1.0.0:
|
beeper@^1.0.0:
|
||||||
version "1.1.1"
|
version "1.1.1"
|
||||||
resolved "https://registry.yarnpkg.com/beeper/-/beeper-1.1.1.tgz#e6d5ea8c5dad001304a70b22638447f69cb2f809"
|
resolved "https://registry.yarnpkg.com/beeper/-/beeper-1.1.1.tgz#e6d5ea8c5dad001304a70b22638447f69cb2f809"
|
||||||
@ -349,6 +371,10 @@ caseless@~0.11.0:
|
|||||||
version "0.11.0"
|
version "0.11.0"
|
||||||
resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.11.0.tgz#715b96ea9841593cc33067923f5ec60ebda4f7d7"
|
resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.11.0.tgz#715b96ea9841593cc33067923f5ec60ebda4f7d7"
|
||||||
|
|
||||||
|
caseless@~0.12.0:
|
||||||
|
version "0.12.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc"
|
||||||
|
|
||||||
chalk@^1.0.0, chalk@^1.1.1:
|
chalk@^1.0.0, chalk@^1.1.1:
|
||||||
version "1.1.3"
|
version "1.1.3"
|
||||||
resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98"
|
resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98"
|
||||||
@ -439,6 +465,10 @@ cloneable-readable@^1.0.0:
|
|||||||
process-nextick-args "^1.0.6"
|
process-nextick-args "^1.0.6"
|
||||||
through2 "^2.0.1"
|
through2 "^2.0.1"
|
||||||
|
|
||||||
|
co@^4.6.0:
|
||||||
|
version "4.6.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/co/-/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184"
|
||||||
|
|
||||||
code-point-at@^1.0.0:
|
code-point-at@^1.0.0:
|
||||||
version "1.1.0"
|
version "1.1.0"
|
||||||
resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77"
|
resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77"
|
||||||
@ -810,16 +840,6 @@ fs-exists-sync@^0.1.0:
|
|||||||
version "0.1.0"
|
version "0.1.0"
|
||||||
resolved "https://registry.yarnpkg.com/fs-exists-sync/-/fs-exists-sync-0.1.0.tgz#982d6893af918e72d08dec9e8673ff2b5a8d6add"
|
resolved "https://registry.yarnpkg.com/fs-exists-sync/-/fs-exists-sync-0.1.0.tgz#982d6893af918e72d08dec9e8673ff2b5a8d6add"
|
||||||
|
|
||||||
fs-extra@^0.30.0:
|
|
||||||
version "0.30.0"
|
|
||||||
resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-0.30.0.tgz#f233ffcc08d4da7d432daa449776989db1df93f0"
|
|
||||||
dependencies:
|
|
||||||
graceful-fs "^4.1.2"
|
|
||||||
jsonfile "^2.1.0"
|
|
||||||
klaw "^1.0.0"
|
|
||||||
path-is-absolute "^1.0.0"
|
|
||||||
rimraf "^2.2.8"
|
|
||||||
|
|
||||||
fs-extra@^1.0.0:
|
fs-extra@^1.0.0:
|
||||||
version "1.0.0"
|
version "1.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-1.0.0.tgz#cd3ce5f7e7cb6145883fcae3191e9877f8587950"
|
resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-1.0.0.tgz#cd3ce5f7e7cb6145883fcae3191e9877f8587950"
|
||||||
@ -910,7 +930,7 @@ glob@^4.3.1:
|
|||||||
minimatch "^2.0.1"
|
minimatch "^2.0.1"
|
||||||
once "^1.3.0"
|
once "^1.3.0"
|
||||||
|
|
||||||
glob@^7.0.0, glob@^7.0.5, glob@^7.1.0, glob@^7.1.1:
|
glob@^7.0.0, glob@^7.1.1:
|
||||||
version "7.1.1"
|
version "7.1.1"
|
||||||
resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.1.tgz#805211df04faaf1c63a3600306cdf5ade50b2ec8"
|
resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.1.tgz#805211df04faaf1c63a3600306cdf5ade50b2ec8"
|
||||||
dependencies:
|
dependencies:
|
||||||
@ -1034,6 +1054,10 @@ gulplog@^1.0.0:
|
|||||||
dependencies:
|
dependencies:
|
||||||
glogg "^1.0.0"
|
glogg "^1.0.0"
|
||||||
|
|
||||||
|
har-schema@^1.0.5:
|
||||||
|
version "1.0.5"
|
||||||
|
resolved "https://registry.yarnpkg.com/har-schema/-/har-schema-1.0.5.tgz#d263135f43307c02c602afc8fe95970c0151369e"
|
||||||
|
|
||||||
har-validator@~2.0.6:
|
har-validator@~2.0.6:
|
||||||
version "2.0.6"
|
version "2.0.6"
|
||||||
resolved "https://registry.yarnpkg.com/har-validator/-/har-validator-2.0.6.tgz#cdcbc08188265ad119b6a5a7c8ab70eecfb5d27d"
|
resolved "https://registry.yarnpkg.com/har-validator/-/har-validator-2.0.6.tgz#cdcbc08188265ad119b6a5a7c8ab70eecfb5d27d"
|
||||||
@ -1043,6 +1067,13 @@ har-validator@~2.0.6:
|
|||||||
is-my-json-valid "^2.12.4"
|
is-my-json-valid "^2.12.4"
|
||||||
pinkie-promise "^2.0.0"
|
pinkie-promise "^2.0.0"
|
||||||
|
|
||||||
|
har-validator@~4.2.1:
|
||||||
|
version "4.2.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/har-validator/-/har-validator-4.2.1.tgz#33481d0f1bbff600dd203d75812a6a5fba002e2a"
|
||||||
|
dependencies:
|
||||||
|
ajv "^4.9.1"
|
||||||
|
har-schema "^1.0.5"
|
||||||
|
|
||||||
has-ansi@^2.0.0:
|
has-ansi@^2.0.0:
|
||||||
version "2.0.0"
|
version "2.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/has-ansi/-/has-ansi-2.0.0.tgz#34f5049ce1ecdf2b0649af3ef24e45ed35416d91"
|
resolved "https://registry.yarnpkg.com/has-ansi/-/has-ansi-2.0.0.tgz#34f5049ce1ecdf2b0649af3ef24e45ed35416d91"
|
||||||
@ -1275,7 +1306,7 @@ js-base64@^2.1.9:
|
|||||||
version "2.1.9"
|
version "2.1.9"
|
||||||
resolved "https://registry.yarnpkg.com/js-base64/-/js-base64-2.1.9.tgz#f0e80ae039a4bd654b5f281fc93f04a914a7fcce"
|
resolved "https://registry.yarnpkg.com/js-base64/-/js-base64-2.1.9.tgz#f0e80ae039a4bd654b5f281fc93f04a914a7fcce"
|
||||||
|
|
||||||
js-yaml@^3.6.1, js-yaml@^3.7.0:
|
js-yaml@^3.7.0:
|
||||||
version "3.8.1"
|
version "3.8.1"
|
||||||
resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.8.1.tgz#782ba50200be7b9e5a8537001b7804db3ad02628"
|
resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.8.1.tgz#782ba50200be7b9e5a8537001b7804db3ad02628"
|
||||||
dependencies:
|
dependencies:
|
||||||
@ -1290,6 +1321,12 @@ json-schema@0.2.3:
|
|||||||
version "0.2.3"
|
version "0.2.3"
|
||||||
resolved "https://registry.yarnpkg.com/json-schema/-/json-schema-0.2.3.tgz#b480c892e59a2f05954ce727bd3f2a4e882f9e13"
|
resolved "https://registry.yarnpkg.com/json-schema/-/json-schema-0.2.3.tgz#b480c892e59a2f05954ce727bd3f2a4e882f9e13"
|
||||||
|
|
||||||
|
json-stable-stringify@^1.0.1:
|
||||||
|
version "1.0.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/json-stable-stringify/-/json-stable-stringify-1.0.1.tgz#9a759d39c5f2ff503fd5300646ed445f88c4f9af"
|
||||||
|
dependencies:
|
||||||
|
jsonify "~0.0.0"
|
||||||
|
|
||||||
json-stringify-safe@5.0.x, json-stringify-safe@~5.0.1:
|
json-stringify-safe@5.0.x, json-stringify-safe@~5.0.1:
|
||||||
version "5.0.1"
|
version "5.0.1"
|
||||||
resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb"
|
resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb"
|
||||||
@ -1304,6 +1341,10 @@ jsonfile@^2.1.0:
|
|||||||
optionalDependencies:
|
optionalDependencies:
|
||||||
graceful-fs "^4.1.6"
|
graceful-fs "^4.1.6"
|
||||||
|
|
||||||
|
jsonify@~0.0.0:
|
||||||
|
version "0.0.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/jsonify/-/jsonify-0.0.0.tgz#2c74b6ee41d93ca51b7b5aaee8f503631d252a73"
|
||||||
|
|
||||||
jsonpointer@^4.0.0:
|
jsonpointer@^4.0.0:
|
||||||
version "4.0.1"
|
version "4.0.1"
|
||||||
resolved "https://registry.yarnpkg.com/jsonpointer/-/jsonpointer-4.0.1.tgz#4fd92cb34e0e9db3c89c8622ecf51f9b978c6cb9"
|
resolved "https://registry.yarnpkg.com/jsonpointer/-/jsonpointer-4.0.1.tgz#4fd92cb34e0e9db3c89c8622ecf51f9b978c6cb9"
|
||||||
@ -1695,13 +1736,7 @@ object.omit@^2.0.0:
|
|||||||
for-own "^0.1.4"
|
for-own "^0.1.4"
|
||||||
is-extendable "^0.1.1"
|
is-extendable "^0.1.1"
|
||||||
|
|
||||||
once@^1.3.0:
|
once@^1.3.0, once@~1.3.0:
|
||||||
version "1.4.0"
|
|
||||||
resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1"
|
|
||||||
dependencies:
|
|
||||||
wrappy "1"
|
|
||||||
|
|
||||||
once@~1.3.0:
|
|
||||||
version "1.3.3"
|
version "1.3.3"
|
||||||
resolved "https://registry.yarnpkg.com/once/-/once-1.3.3.tgz#b2e261557ce4c314ec8304f3fa82663e4297ca20"
|
resolved "https://registry.yarnpkg.com/once/-/once-1.3.3.tgz#b2e261557ce4c314ec8304f3fa82663e4297ca20"
|
||||||
dependencies:
|
dependencies:
|
||||||
@ -1843,6 +1878,10 @@ path-type@^1.0.0:
|
|||||||
pify "^2.0.0"
|
pify "^2.0.0"
|
||||||
pinkie-promise "^2.0.0"
|
pinkie-promise "^2.0.0"
|
||||||
|
|
||||||
|
performance-now@^0.2.0:
|
||||||
|
version "0.2.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-0.2.0.tgz#33ef30c5c77d4ea21c5a53869d91b56d8f2555e5"
|
||||||
|
|
||||||
pify@^2.0.0, pify@^2.3.0:
|
pify@^2.0.0, pify@^2.3.0:
|
||||||
version "2.3.0"
|
version "2.3.0"
|
||||||
resolved "https://registry.yarnpkg.com/pify/-/pify-2.3.0.tgz#ed141a6ac043a849ea588498e7dca8b15330e90c"
|
resolved "https://registry.yarnpkg.com/pify/-/pify-2.3.0.tgz#ed141a6ac043a849ea588498e7dca8b15330e90c"
|
||||||
@ -1869,15 +1908,15 @@ process-nextick-args@^1.0.6, process-nextick-args@~1.0.6:
|
|||||||
version "1.0.7"
|
version "1.0.7"
|
||||||
resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-1.0.7.tgz#150e20b756590ad3f91093f25a4f2ad8bff30ba3"
|
resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-1.0.7.tgz#150e20b756590ad3f91093f25a4f2ad8bff30ba3"
|
||||||
|
|
||||||
projectinfo@^3.0.1:
|
projectinfo@^3.0.2:
|
||||||
version "3.0.1"
|
version "3.0.2"
|
||||||
resolved "https://registry.yarnpkg.com/projectinfo/-/projectinfo-3.0.1.tgz#3d78c2f28676c93216ed30c962e9d8f81ef13b23"
|
resolved "https://registry.yarnpkg.com/projectinfo/-/projectinfo-3.0.2.tgz#87edb5ccab792481226c558151b81ccfa9e070df"
|
||||||
dependencies:
|
dependencies:
|
||||||
"@types/q" "0.0.32"
|
"@types/q" "0.0.32"
|
||||||
q "^1.4.1"
|
q "^1.4.1"
|
||||||
smartfile "4.1.0"
|
smartfile "4.1.6"
|
||||||
smartpath "^3.2.6"
|
smartpath "^3.2.8"
|
||||||
smartstring "2.0.22"
|
smartstring "2.0.24"
|
||||||
typings-global "^1.0.14"
|
typings-global "^1.0.14"
|
||||||
|
|
||||||
punycode@^1.4.1:
|
punycode@^1.4.1:
|
||||||
@ -1892,9 +1931,9 @@ qs@~6.2.0:
|
|||||||
version "6.2.2"
|
version "6.2.2"
|
||||||
resolved "https://registry.yarnpkg.com/qs/-/qs-6.2.2.tgz#d506a5ad5b2cae1fd35c4f54ec182e267e3ef586"
|
resolved "https://registry.yarnpkg.com/qs/-/qs-6.2.2.tgz#d506a5ad5b2cae1fd35c4f54ec182e267e3ef586"
|
||||||
|
|
||||||
qs@~6.3.0:
|
qs@~6.4.0:
|
||||||
version "6.3.1"
|
version "6.4.0"
|
||||||
resolved "https://registry.yarnpkg.com/qs/-/qs-6.3.1.tgz#918c0b3bcd36679772baf135b1acb4c1651ed79d"
|
resolved "https://registry.yarnpkg.com/qs/-/qs-6.4.0.tgz#13e26d28ad6b0ffaa91312cd3bf708ed351e7233"
|
||||||
|
|
||||||
randomatic@^1.1.3:
|
randomatic@^1.1.3:
|
||||||
version "1.1.6"
|
version "1.1.6"
|
||||||
@ -2018,18 +2057,18 @@ request@2.75.x:
|
|||||||
tough-cookie "~2.3.0"
|
tough-cookie "~2.3.0"
|
||||||
tunnel-agent "~0.4.1"
|
tunnel-agent "~0.4.1"
|
||||||
|
|
||||||
request@^2.75.0, request@^2.79.0:
|
request@^2.81.0:
|
||||||
version "2.79.0"
|
version "2.81.0"
|
||||||
resolved "https://registry.yarnpkg.com/request/-/request-2.79.0.tgz#4dfe5bf6be8b8cdc37fcf93e04b65577722710de"
|
resolved "https://registry.yarnpkg.com/request/-/request-2.81.0.tgz#c6928946a0e06c5f8d6f8a9333469ffda46298a0"
|
||||||
dependencies:
|
dependencies:
|
||||||
aws-sign2 "~0.6.0"
|
aws-sign2 "~0.6.0"
|
||||||
aws4 "^1.2.1"
|
aws4 "^1.2.1"
|
||||||
caseless "~0.11.0"
|
caseless "~0.12.0"
|
||||||
combined-stream "~1.0.5"
|
combined-stream "~1.0.5"
|
||||||
extend "~3.0.0"
|
extend "~3.0.0"
|
||||||
forever-agent "~0.6.1"
|
forever-agent "~0.6.1"
|
||||||
form-data "~2.1.1"
|
form-data "~2.1.1"
|
||||||
har-validator "~2.0.6"
|
har-validator "~4.2.1"
|
||||||
hawk "~3.1.3"
|
hawk "~3.1.3"
|
||||||
http-signature "~1.1.0"
|
http-signature "~1.1.0"
|
||||||
is-typedarray "~1.0.0"
|
is-typedarray "~1.0.0"
|
||||||
@ -2037,10 +2076,12 @@ request@^2.75.0, request@^2.79.0:
|
|||||||
json-stringify-safe "~5.0.1"
|
json-stringify-safe "~5.0.1"
|
||||||
mime-types "~2.1.7"
|
mime-types "~2.1.7"
|
||||||
oauth-sign "~0.8.1"
|
oauth-sign "~0.8.1"
|
||||||
qs "~6.3.0"
|
performance-now "^0.2.0"
|
||||||
|
qs "~6.4.0"
|
||||||
|
safe-buffer "^5.0.1"
|
||||||
stringstream "~0.0.4"
|
stringstream "~0.0.4"
|
||||||
tough-cookie "~2.3.0"
|
tough-cookie "~2.3.0"
|
||||||
tunnel-agent "~0.4.1"
|
tunnel-agent "^0.6.0"
|
||||||
uuid "^3.0.0"
|
uuid "^3.0.0"
|
||||||
|
|
||||||
require-directory@^2.1.1:
|
require-directory@^2.1.1:
|
||||||
@ -2080,18 +2121,16 @@ restore-cursor@^2.0.0:
|
|||||||
onetime "^2.0.0"
|
onetime "^2.0.0"
|
||||||
signal-exit "^3.0.2"
|
signal-exit "^3.0.2"
|
||||||
|
|
||||||
rimraf@^2.2.8:
|
|
||||||
version "2.6.0"
|
|
||||||
resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.0.tgz#89b8a0fe432b9ff9ec9a925a00b6cdb3a91bbada"
|
|
||||||
dependencies:
|
|
||||||
glob "^7.0.5"
|
|
||||||
|
|
||||||
rxjs@^5.0.0-beta.12, rxjs@^5.0.1, rxjs@^5.1.1:
|
rxjs@^5.0.0-beta.12, rxjs@^5.0.1, rxjs@^5.1.1:
|
||||||
version "5.1.1"
|
version "5.1.1"
|
||||||
resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-5.1.1.tgz#fc48922965bc6c5efbcc0fe46e90a3af64137a7b"
|
resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-5.1.1.tgz#fc48922965bc6c5efbcc0fe46e90a3af64137a7b"
|
||||||
dependencies:
|
dependencies:
|
||||||
symbol-observable "^1.0.1"
|
symbol-observable "^1.0.1"
|
||||||
|
|
||||||
|
safe-buffer@^5.0.1:
|
||||||
|
version "5.0.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.0.1.tgz#d263ca54696cd8a306b5ca6551e92de57918fbe7"
|
||||||
|
|
||||||
"semver@2 || 3 || 4 || 5", semver@^5.3.0:
|
"semver@2 || 3 || 4 || 5", semver@^5.3.0:
|
||||||
version "5.3.0"
|
version "5.3.0"
|
||||||
resolved "https://registry.yarnpkg.com/semver/-/semver-5.3.0.tgz#9b2ce5d3de02d17c6012ad326aa6b4d0cf54f94f"
|
resolved "https://registry.yarnpkg.com/semver/-/semver-5.3.0.tgz#9b2ce5d3de02d17c6012ad326aa6b4d0cf54f94f"
|
||||||
@ -2108,7 +2147,7 @@ set-blocking@^2.0.0:
|
|||||||
version "2.0.0"
|
version "2.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7"
|
resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7"
|
||||||
|
|
||||||
shelljs@^0.7.4, shelljs@^0.7.5, shelljs@^0.7.6:
|
shelljs@^0.7.4, shelljs@^0.7.5:
|
||||||
version "0.7.6"
|
version "0.7.6"
|
||||||
resolved "https://registry.yarnpkg.com/shelljs/-/shelljs-0.7.6.tgz#379cccfb56b91c8601e4793356eb5382924de9ad"
|
resolved "https://registry.yarnpkg.com/shelljs/-/shelljs-0.7.6.tgz#379cccfb56b91c8601e4793356eb5382924de9ad"
|
||||||
dependencies:
|
dependencies:
|
||||||
@ -2116,6 +2155,14 @@ shelljs@^0.7.4, shelljs@^0.7.5, shelljs@^0.7.6:
|
|||||||
interpret "^1.0.0"
|
interpret "^1.0.0"
|
||||||
rechoir "^0.6.2"
|
rechoir "^0.6.2"
|
||||||
|
|
||||||
|
shelljs@^0.7.6, shelljs@^0.7.7:
|
||||||
|
version "0.7.7"
|
||||||
|
resolved "https://registry.yarnpkg.com/shelljs/-/shelljs-0.7.7.tgz#b2f5c77ef97148f4b4f6e22682e10bba8667cff1"
|
||||||
|
dependencies:
|
||||||
|
glob "^7.0.0"
|
||||||
|
interpret "^1.0.0"
|
||||||
|
rechoir "^0.6.2"
|
||||||
|
|
||||||
shortid@^2.2.6:
|
shortid@^2.2.6:
|
||||||
version "2.2.6"
|
version "2.2.6"
|
||||||
resolved "https://registry.yarnpkg.com/shortid/-/shortid-2.2.6.tgz#3abbefc6c51074cf2c1f1e72f6216a1b45876d72"
|
resolved "https://registry.yarnpkg.com/shortid/-/shortid-2.2.6.tgz#3abbefc6c51074cf2c1f1e72f6216a1b45876d72"
|
||||||
@ -2148,9 +2195,9 @@ should-util@^1.0.0:
|
|||||||
version "1.0.0"
|
version "1.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/should-util/-/should-util-1.0.0.tgz#c98cda374aa6b190df8ba87c9889c2b4db620063"
|
resolved "https://registry.yarnpkg.com/should-util/-/should-util-1.0.0.tgz#c98cda374aa6b190df8ba87c9889c2b4db620063"
|
||||||
|
|
||||||
should@^11.2.0:
|
should@^11.2.1:
|
||||||
version "11.2.0"
|
version "11.2.1"
|
||||||
resolved "https://registry.yarnpkg.com/should/-/should-11.2.0.tgz#7afca3182c234781d786d2278a87805b5ecf0409"
|
resolved "https://registry.yarnpkg.com/should/-/should-11.2.1.tgz#90f55145552d01cfc200666e4e818a1c9670eda2"
|
||||||
dependencies:
|
dependencies:
|
||||||
should-equal "^1.0.0"
|
should-equal "^1.0.0"
|
||||||
should-format "^3.0.2"
|
should-format "^3.0.2"
|
||||||
@ -2197,26 +2244,7 @@ smartenv@^2.0.0:
|
|||||||
q "^1.4.1"
|
q "^1.4.1"
|
||||||
typings-global "^1.0.14"
|
typings-global "^1.0.14"
|
||||||
|
|
||||||
smartfile@4.1.0:
|
smartfile@4.1.6, smartfile@^4.0.21, smartfile@^4.1.0:
|
||||||
version "4.1.0"
|
|
||||||
resolved "https://registry.yarnpkg.com/smartfile/-/smartfile-4.1.0.tgz#c7fcd881cdab1d35779cbc30f4a38824d54787dc"
|
|
||||||
dependencies:
|
|
||||||
"@types/fs-extra" "0.x.x"
|
|
||||||
"@types/q" "0.x.x"
|
|
||||||
"@types/vinyl" "^1.1.29"
|
|
||||||
beautylog "^5.0.23"
|
|
||||||
fs-extra "^0.30.0"
|
|
||||||
glob "^7.1.0"
|
|
||||||
js-yaml "^3.6.1"
|
|
||||||
q "^1.4.1"
|
|
||||||
request "^2.75.0"
|
|
||||||
require-reload "0.2.2"
|
|
||||||
smartpath "^3.2.2"
|
|
||||||
typings-global "^1.0.14"
|
|
||||||
vinyl "^1.2.0"
|
|
||||||
vinyl-file "^2.0.0"
|
|
||||||
|
|
||||||
smartfile@^4.0.21, smartfile@^4.1.0, smartfile@^4.1.6:
|
|
||||||
version "4.1.6"
|
version "4.1.6"
|
||||||
resolved "https://registry.yarnpkg.com/smartfile/-/smartfile-4.1.6.tgz#d71026aefef99233c56766c3c6c11afc41a19b3a"
|
resolved "https://registry.yarnpkg.com/smartfile/-/smartfile-4.1.6.tgz#d71026aefef99233c56766c3c6c11afc41a19b3a"
|
||||||
dependencies:
|
dependencies:
|
||||||
@ -2233,6 +2261,23 @@ smartfile@^4.0.21, smartfile@^4.1.0, smartfile@^4.1.6:
|
|||||||
vinyl "^2.0.1"
|
vinyl "^2.0.1"
|
||||||
vinyl-file "^3.0.0"
|
vinyl-file "^3.0.0"
|
||||||
|
|
||||||
|
smartfile@^4.1.7:
|
||||||
|
version "4.1.7"
|
||||||
|
resolved "https://registry.yarnpkg.com/smartfile/-/smartfile-4.1.7.tgz#5657bea62ad673d891b2c9a00f5866154e768c3f"
|
||||||
|
dependencies:
|
||||||
|
"@types/fs-extra" "0.x.x"
|
||||||
|
"@types/vinyl" "^2.0.0"
|
||||||
|
fs-extra "^2.0.0"
|
||||||
|
glob "^7.1.1"
|
||||||
|
js-yaml "^3.7.0"
|
||||||
|
require-reload "0.2.2"
|
||||||
|
smartpath "^3.2.7"
|
||||||
|
smartq "^1.0.4"
|
||||||
|
smartrequest "^1.0.4"
|
||||||
|
typings-global "^1.0.14"
|
||||||
|
vinyl "^2.0.1"
|
||||||
|
vinyl-file "^3.0.0"
|
||||||
|
|
||||||
smartparam@0.1.1, smartparam@^0.1.1:
|
smartparam@0.1.1, smartparam@^0.1.1:
|
||||||
version "0.1.1"
|
version "0.1.1"
|
||||||
resolved "https://registry.yarnpkg.com/smartparam/-/smartparam-0.1.1.tgz#51c526bf38b0965007b21edd3e96c7e179c93591"
|
resolved "https://registry.yarnpkg.com/smartparam/-/smartparam-0.1.1.tgz#51c526bf38b0965007b21edd3e96c7e179c93591"
|
||||||
@ -2243,7 +2288,7 @@ smartparam@0.1.1, smartparam@^0.1.1:
|
|||||||
q "^1.4.1"
|
q "^1.4.1"
|
||||||
typings-global "^1.0.3"
|
typings-global "^1.0.3"
|
||||||
|
|
||||||
smartpath@^3.2.2, smartpath@^3.2.5, smartpath@^3.2.6, smartpath@^3.2.7:
|
smartpath@^3.2.5, smartpath@^3.2.7, smartpath@^3.2.8:
|
||||||
version "3.2.8"
|
version "3.2.8"
|
||||||
resolved "https://registry.yarnpkg.com/smartpath/-/smartpath-3.2.8.tgz#4834bd3a8bae2295baacadba23c87a501952f940"
|
resolved "https://registry.yarnpkg.com/smartpath/-/smartpath-3.2.8.tgz#4834bd3a8bae2295baacadba23c87a501952f940"
|
||||||
dependencies:
|
dependencies:
|
||||||
@ -2264,6 +2309,14 @@ smartrequest@^1.0.4:
|
|||||||
smartq "^1.1.0"
|
smartq "^1.1.0"
|
||||||
typings-global "^1.0.14"
|
typings-global "^1.0.14"
|
||||||
|
|
||||||
|
smartshell@^1.0.2:
|
||||||
|
version "1.0.2"
|
||||||
|
resolved "https://registry.yarnpkg.com/smartshell/-/smartshell-1.0.2.tgz#b05b8ea6b5ea7191f577028f96bf961c26302182"
|
||||||
|
dependencies:
|
||||||
|
"@types/shelljs" "^0.6.0"
|
||||||
|
shelljs "^0.7.6"
|
||||||
|
smartq "^1.1.0"
|
||||||
|
|
||||||
smartsocket@^1.1.7:
|
smartsocket@^1.1.7:
|
||||||
version "1.1.7"
|
version "1.1.7"
|
||||||
resolved "https://registry.yarnpkg.com/smartsocket/-/smartsocket-1.1.7.tgz#e021c668b76403f4eb8aeba0e0bfcaf4a7de6492"
|
resolved "https://registry.yarnpkg.com/smartsocket/-/smartsocket-1.1.7.tgz#e021c668b76403f4eb8aeba0e0bfcaf4a7de6492"
|
||||||
@ -2300,14 +2353,7 @@ smartssh@^1.2.1:
|
|||||||
smartstring "^2.0.22"
|
smartstring "^2.0.22"
|
||||||
typings-global "^1.0.14"
|
typings-global "^1.0.14"
|
||||||
|
|
||||||
smartstring@2.0.22:
|
smartstring@2.0.24, smartstring@^2.0.22, smartstring@^2.0.24:
|
||||||
version "2.0.22"
|
|
||||||
resolved "https://registry.yarnpkg.com/smartstring/-/smartstring-2.0.22.tgz#6b55904f527457546dd414cc4dadbfe0203257d9"
|
|
||||||
dependencies:
|
|
||||||
js-base64 "^2.1.9"
|
|
||||||
typings-global "^1.0.14"
|
|
||||||
|
|
||||||
smartstring@^2.0.22, smartstring@^2.0.24:
|
|
||||||
version "2.0.24"
|
version "2.0.24"
|
||||||
resolved "https://registry.yarnpkg.com/smartstring/-/smartstring-2.0.24.tgz#dc1c5efb738c10a2d7daeea3d800ad2ecc65a26c"
|
resolved "https://registry.yarnpkg.com/smartstring/-/smartstring-2.0.24.tgz#dc1c5efb738c10a2d7daeea3d800ad2ecc65a26c"
|
||||||
dependencies:
|
dependencies:
|
||||||
@ -2517,6 +2563,12 @@ tough-cookie@~2.3.0:
|
|||||||
dependencies:
|
dependencies:
|
||||||
punycode "^1.4.1"
|
punycode "^1.4.1"
|
||||||
|
|
||||||
|
tunnel-agent@^0.6.0:
|
||||||
|
version "0.6.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.6.0.tgz#27a5dea06b36b04a0a9966774b290868f0fc40fd"
|
||||||
|
dependencies:
|
||||||
|
safe-buffer "^5.0.1"
|
||||||
|
|
||||||
tunnel-agent@~0.4.1:
|
tunnel-agent@~0.4.1:
|
||||||
version "0.4.3"
|
version "0.4.3"
|
||||||
resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.4.3.tgz#6373db76909fe570e08d73583365ed828a74eeeb"
|
resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.4.3.tgz#6373db76909fe570e08d73583365ed828a74eeeb"
|
||||||
@ -2586,17 +2638,6 @@ verror@1.3.6:
|
|||||||
dependencies:
|
dependencies:
|
||||||
extsprintf "1.0.2"
|
extsprintf "1.0.2"
|
||||||
|
|
||||||
vinyl-file@^2.0.0:
|
|
||||||
version "2.0.0"
|
|
||||||
resolved "https://registry.yarnpkg.com/vinyl-file/-/vinyl-file-2.0.0.tgz#a7ebf5ffbefda1b7d18d140fcb07b223efb6751a"
|
|
||||||
dependencies:
|
|
||||||
graceful-fs "^4.1.2"
|
|
||||||
pify "^2.3.0"
|
|
||||||
pinkie-promise "^2.0.0"
|
|
||||||
strip-bom "^2.0.0"
|
|
||||||
strip-bom-stream "^2.0.0"
|
|
||||||
vinyl "^1.1.0"
|
|
||||||
|
|
||||||
vinyl-file@^3.0.0:
|
vinyl-file@^3.0.0:
|
||||||
version "3.0.0"
|
version "3.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/vinyl-file/-/vinyl-file-3.0.0.tgz#b104d9e4409ffa325faadd520642d0a3b488b365"
|
resolved "https://registry.yarnpkg.com/vinyl-file/-/vinyl-file-3.0.0.tgz#b104d9e4409ffa325faadd520642d0a3b488b365"
|
||||||
@ -2635,14 +2676,6 @@ vinyl@^0.5.0:
|
|||||||
clone-stats "^0.0.1"
|
clone-stats "^0.0.1"
|
||||||
replace-ext "0.0.1"
|
replace-ext "0.0.1"
|
||||||
|
|
||||||
vinyl@^1.1.0, vinyl@^1.2.0:
|
|
||||||
version "1.2.0"
|
|
||||||
resolved "https://registry.yarnpkg.com/vinyl/-/vinyl-1.2.0.tgz#5c88036cf565e5df05558bfc911f8656df218884"
|
|
||||||
dependencies:
|
|
||||||
clone "^1.0.0"
|
|
||||||
clone-stats "^0.0.1"
|
|
||||||
replace-ext "0.0.1"
|
|
||||||
|
|
||||||
vinyl@^2.0.1:
|
vinyl@^2.0.1:
|
||||||
version "2.0.1"
|
version "2.0.1"
|
||||||
resolved "https://registry.yarnpkg.com/vinyl/-/vinyl-2.0.1.tgz#1c3b4931e7ac4c1efee743f3b91a74c094407bb6"
|
resolved "https://registry.yarnpkg.com/vinyl/-/vinyl-2.0.1.tgz#1c3b4931e7ac4c1efee743f3b91a74c094407bb6"
|
||||||
|
Loading…
Reference in New Issue
Block a user