Compare commits
27 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 20bca85a12 | |||
| dd260538a7 | |||
| d511e8c2f7 | |||
| c44d6c036c | |||
| 9cec914c94 | |||
| 52a09bb8dd | |||
| 1224fce295 | |||
| 6343731772 | |||
| 129d22b537 | |||
| 8075281499 | |||
| fe5f602aca | |||
| 577a9b3e49 | |||
| e6ad22547c | |||
| 8adeb5bb5c | |||
| db0d55636e | |||
| 0a73134e1c | |||
| 2994a9ef5b | |||
| af74e730cc | |||
| 798c909f1e | |||
| ba41776c0e | |||
| 254f7dcfa6 | |||
| d1e060e1dc | |||
|
|
bbc2e9002a | ||
| 1db5d6e669 | |||
| a54015da16 | |||
| d9b8eb3bf0 | |||
| 5ede124f56 |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -3,3 +3,4 @@ coverage/
|
|||||||
pages/
|
pages/
|
||||||
public/
|
public/
|
||||||
config.json
|
config.json
|
||||||
|
.yarn/
|
||||||
|
|||||||
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sI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ts
vendored
@@ -1,15 +1,20 @@
|
|||||||
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>;
|
||||||
|
export declare let yarnAvailable: 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>;
|
||||||
|
|||||||
98
dist/npmci.bash.js
vendored
98
dist/npmci.bash.js
vendored
@@ -1,29 +1,61 @@
|
|||||||
"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 paths = require("./npmci.paths");
|
||||||
exports.nvmAvailable = false;
|
const smartq = require("smartq");
|
||||||
let checkNvm = () => {
|
/**
|
||||||
let localExec = plugins.shelljs.exec;
|
* wether nvm is available or not
|
||||||
if (localExec(`bash -c "source /usr/local/nvm/nvm.sh"`, { silent: true }).code === 0) {
|
*/
|
||||||
nvmSourceString = `source /usr/local/nvm/nvm.sh && `;
|
exports.nvmAvailable = smartq.defer();
|
||||||
exports.nvmAvailable = true;
|
exports.yarnAvailable = smartq.defer();
|
||||||
|
/**
|
||||||
|
* the smartshell instance for npmci
|
||||||
|
*/
|
||||||
|
let npmciSmartshell = new plugins.smartshell.Smartshell({
|
||||||
|
executor: 'bash',
|
||||||
|
sourceFilePaths: []
|
||||||
|
});
|
||||||
|
/**
|
||||||
|
* check for tools.
|
||||||
|
*/
|
||||||
|
let checkToolsAvailable = () => __awaiter(this, void 0, void 0, function* () {
|
||||||
|
// check for nvm
|
||||||
|
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);
|
||||||
}
|
}
|
||||||
;
|
;
|
||||||
};
|
// check for yarn
|
||||||
checkNvm();
|
yield plugins.smartshell.which('yarn').then(() => {
|
||||||
|
plugins.smartshell.exec(`yarn config set cache-folder ${plugins.path.join(paths.cwd, '.yarn')}`);
|
||||||
|
exports.yarnAvailable.resolve(true);
|
||||||
|
}, () => { exports.yarnAvailable.resolve(false); });
|
||||||
|
});
|
||||||
|
checkToolsAvailable();
|
||||||
/**
|
/**
|
||||||
* 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,43 +64,47 @@ 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.exec(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);
|
||||||
|
yield plugins.smartdelay.delayFor(100);
|
||||||
|
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
|
||||||
*/
|
*/
|
||||||
exports.bashBare = (commandArg, retryArg = 2) => {
|
exports.bashBare = (commandArg, retryArg = 2) => __awaiter(this, void 0, void 0, function* () {
|
||||||
return exports.bash(commandArg, retryArg, true);
|
return yield exports.bash(commandArg, retryArg, true);
|
||||||
};
|
});
|
||||||
/**
|
/**
|
||||||
* bashNoError allows executing stuff without throwing an error
|
* bashNoError allows executing stuff without throwing an error
|
||||||
*/
|
*/
|
||||||
exports.bashNoError = (commandArg) => {
|
exports.bashNoError = (commandArg) => __awaiter(this, void 0, void 0, function* () {
|
||||||
return exports.bash(commandArg, -1);
|
return yield exports.bash(commandArg, -1);
|
||||||
};
|
});
|
||||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnBtY2kuYmFzaC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL25wbWNpLmJhc2gudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLDJDQUEwQztBQUUxQyxJQUFJLGVBQWUsR0FBVyxFQUFFLENBQUE7QUFDckIsUUFBQSxZQUFZLEdBQVksS0FBSyxDQUFBO0FBQ3hDLElBQUksUUFBUSxHQUFHO0lBQ2IsSUFBSSxTQUFTLEdBQVEsT0FBTyxDQUFDLE9BQU8sQ0FBQyxJQUFJLENBQUE7SUFDekMsRUFBRSxDQUFDLENBQUMsU0FBUyxDQUFDLHdDQUF3QyxFQUFFLEVBQUUsTUFBTSxFQUFFLElBQUksRUFBRSxDQUFDLENBQUMsSUFBSSxLQUFLLENBQUMsQ0FBQyxDQUFDLENBQUM7UUFDckYsZUFBZSxHQUFHLGtDQUFrQyxDQUFBO1FBQ3BELG9CQUFZLEdBQUcsSUFBSSxDQUFBO0lBQ3JCLENBQUM7SUFBQyxJQUFJLENBQUMsRUFBRSxDQUFDLENBQUMsU0FBUyxDQUFDLGdDQUFnQyxFQUFFLEVBQUUsTUFBTSxFQUFFLElBQUksRUFBRSxDQUFDLENBQUMsSUFBSSxLQUFLLENBQUMsQ0FBQyxDQUFDLENBQUM7UUFDcEY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3JCLENBQUE7SUFDSCxDQUFDO0lBQ0QsTUFBTSxDQUFDLFVBQVUsQ0FBQyxNQUFNLENBQUE7QUFDMUIsQ0FBQyxDQUFBLENBQUE7QUFFRDs7R0FFRztBQUNRLFFBQUEsUUFBUSxHQUFHLENBQU8sVUFBa0IsRUFBRSxXQUFtQixDQUFDO0lBQ25FLE1BQU0sQ0FBQyxNQUFNLFlBQUksQ0FBQyxVQUFVLEVBQUUsUUFBUSxFQUFFLElBQUksQ0FBQyxDQUFBO0FBQy9DLENBQUMsQ0FBQSxDQUFBO0FBRUQ7O0dBRUc7QUFDUSxRQUFBLFdBQVcsR0FBRyxDQUFPLFVBQWtCO0lBQ2hELE1BQU0sQ0FBQyxNQUFNLFlBQUksQ0FBQyxVQUFVLEVBQUUsQ0FBQyxDQUFDLENBQUMsQ0FBQTtBQUNuQyxDQUFDLENBQUEsQ0FBQSJ9
|
||||||
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;
|
||||||
/**
|
/**
|
||||||
|
|||||||
198
dist/npmci.build.docker.js
vendored
198
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnBtY2kuY29tbWFuZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL25wbWNpLmNvbW1hbmQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7OztBQUNBLDZDQUFtQztBQUV4QixRQUFBLE9BQU8sR0FBRztJQUNuQixJQUFJLGNBQWMsR0FBVyxFQUFFLENBQUE7SUFDL0IsSUFBSSxTQUFTLEdBQUcsT0FBTyxDQUFDLElBQUksQ0FBQTtJQUM1QixHQUFHLENBQUMsQ0FBQyxJQUFJLENBQUMsR0FBRyxDQUFDLEVBQUUsQ0FBQyxHQUFHLFNBQVMsQ0FBQyxNQUFNLEVBQUUsQ0FBQyxFQUFFLEVBQUUsQ0FBQztRQUMxQyxjQUFjLEdBQUcsY0FBYyxHQUFHLFNBQVMsQ0FBQyxDQUFDLENBQUMsQ0FBQTtRQUM5QyxFQUFFLENBQUMsQ0FBQyxDQUFDLEdBQUcsQ0FBQyxLQUFLLFNBQVMsQ0FBQyxNQUFNLENBQUMsQ0FBQyxDQUFDO1lBQUMsY0FBYyxHQUFHLGNBQWMsR0FBRyxHQUFHLENBQUE7UUFBQyxDQUFDO0lBQzNFLENBQUM7SUFDRCxNQUFNLGlCQUFJLENBQUMsY0FBYyxDQUFDLENBQUE7SUFDMUIsTUFBTSxDQUFBO0FBQ1IsQ0FBQyxDQUFBLENBQUEifQ==
|
||||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnBtY2kuY29tbWFuZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL25wbWNpLmNvbW1hbmQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLDJDQUEwQztBQUMxQyw2Q0FBaUM7QUFFdEIsUUFBQSxPQUFPLEdBQUc7SUFDakIsSUFBSSxJQUFJLEdBQUcsT0FBTyxDQUFDLENBQUMsQ0FBQyxLQUFLLEVBQUUsQ0FBQTtJQUM1QixJQUFJLGNBQWMsR0FBVyxFQUFFLENBQUE7SUFDL0IsSUFBSSxTQUFTLEdBQUcsT0FBTyxDQUFDLElBQUksQ0FBQTtJQUM1QixHQUFHLENBQUMsQ0FBQyxJQUFJLENBQUMsR0FBRyxDQUFDLEVBQUUsQ0FBQyxHQUFHLFNBQVMsQ0FBQyxNQUFNLEVBQUUsQ0FBQyxFQUFFLEVBQUUsQ0FBQztRQUN4QyxjQUFjLEdBQUcsY0FBYyxHQUFHLFNBQVMsQ0FBQyxDQUFDLENBQUMsQ0FBQTtRQUM5QyxFQUFFLENBQUMsQ0FBQyxDQUFDLEdBQUcsQ0FBQyxLQUFLLFNBQVMsQ0FBQyxNQUFNLENBQUMsQ0FBQyxDQUFDO1lBQUMsY0FBYyxHQUFHLGNBQWMsR0FBRyxHQUFHLENBQUE7UUFBQyxDQUFDO0lBQzdFLENBQUM7SUFDRCxpQkFBSSxDQUFDLGNBQWMsQ0FBQyxDQUFBO0lBQ3BCLElBQUksQ0FBQyxPQUFPLEVBQUUsQ0FBQTtJQUNkLE1BQU0sQ0FBQyxJQUFJLENBQUMsT0FBTyxDQUFBO0FBQ3ZCLENBQUMsQ0FBQSJ9
|
|
||||||
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnBtY2kuY29uZmlnLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvbnBtY2kuY29uZmlnLnRzIl0sIm5hb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xPQUFPLENBQUMsV0FBVyxDQUFDLENBQUE7SUFDekIsTUFBTSxDQUFDLElBQUksQ0FBQyxPQUFPLENBQUE7QUFDdkIsQ0FBQyxDQUFBIn0=
|
|
||||||
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnBtY2kuZW52LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvbnBtY2kuZW52LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSwyQ0FBMEM7QUFDMUMsdUNBQXNDO0FBQ3RDLDZDQUFtQztBQUluQyxFQUFFLENBQUMsQ0FBQyxPQUFPLENBQUMsR0FBRyxDQUFDLGFBQWEsQ0FBQztJQUFDLFlBQUksR0FBRyxJQUFJLHFCQUFPLENBQUMsT0FBTyxDQUFDLEdBQUcsQ0FBQyxhQUFhLENBQUMsQ0FBQTtBQUVqRSxRQUFBLFVBQVUsR0FBVyxPQUFPLENBQUMsR0FBRyxDQUFDLGNBQWMsQ0FBQTtBQUkvQyxRQUFBLGlCQUFpQixHQUFHLENBQUMsaUJBQXlCO0lBQ3JELHNCQUFjLEdBQUcsaUJBQWlC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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>;
|
||||||
|
|||||||
46
dist/npmci.install.js
vendored
46
dist/npmci.install.js
vendored
@@ -1,10 +1,21 @@
|
|||||||
"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");
|
/**
|
||||||
exports.install = (versionArg) => {
|
* Install a specific version of node
|
||||||
let done = plugins.q.defer();
|
* @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 +31,38 @@ exports.install = (versionArg) => {
|
|||||||
version = versionArg;
|
version = versionArg;
|
||||||
}
|
}
|
||||||
;
|
;
|
||||||
if (npmci_bash_2.nvmAvailable) {
|
if (yield npmci_bash_1.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()
|
yield 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`);
|
if (yield npmci_bash_1.yarnAvailable.promise) {
|
||||||
|
yield npmci_bash_1.bash(`yarn global add ${npmTool}`);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnBtY2kuaW5zdGFsbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL25wbWNpLmluc3RhbGwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7OztBQUFBLDJDQUEwQztBQUMxQywrQ0FBOEM7QUFDOUMsNkNBSXFDO0FBRXJDOzs7R0FHRztBQUNRLFFBQUEsT0FBTyxHQUFHLENBQU8sVUFBVTtJQUNwQyxPQUFPLENBQUMsU0FBUyxDQUFDLEdBQUcsQ0FBQywrQkFBK0IsVUFBVSxFQUFFLENBQUMsQ0FBQTtJQUNsRSxJQUFJLE9BQWUsQ0FBQTtJQUNuQixFQUFFLENBQUMsQ0FBQyxVQUFVLEtBQUssUUFBUSxDQUFDLENBQUMsQ0FBQztRQUM1QixPQUFPLEdBQUcsUUFBUSxDQUFBO0lBQ3BCLENBQUM7SUFBQyxJQUFJLENBQUMsRUFBRSxDQUFDLENBQUMsVUFBVSxLQUFLLEtBQUssQ0FBQyxDQUFDLENBQUM7UUFDaEMsT0FBTyxHQUFHLEdBQUcsQ0FBQTtJQUNmLENBQUM7SUFBQyxJQUFJLENBQUMsRUFBRSxDQUFDLENBQUMsVUFBVSxLQUFLLFFBQVEsQ0FBQyxDQUFDLENBQUM7UUFDbkMsT0FBTyxHQUFHLEdBQU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LENBQUMsQ0FBQTtRQUMvRixJQUFJLENBQUMsT0FBTyxFQUFFLENBQUE7SUFDaEIsQ0FBQyxDQUFDLENBQUE7SUFDSixNQUFNLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQTtBQUNyQixDQUFDLENBQUEifQ==
|
|
||||||
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=
|
||||||
7
dist/npmci.plugins.d.ts
vendored
7
dist/npmci.plugins.d.ts
vendored
@@ -5,12 +5,15 @@ export import 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('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 smartdelay = require('smartdelay');
|
||||||
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');
|
||||||
|
|||||||
10
dist/npmci.plugins.js
vendored
10
dist/npmci.plugins.js
vendored
@@ -1,4 +1,5 @@
|
|||||||
"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");
|
||||||
@@ -6,14 +7,17 @@ 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.smartdelay = require("smartdelay");
|
||||||
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnBtY2kucGx1Z2lucy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL25wbWNpLnBsdWdpbnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSx5Q0FBOEM7QUFDbkMsUUFBQSxJQUFJLEdBQUcsT0FBTyxDQUFDLE1BQU0sQ0FBQyxDQUFBO0FBQ2pDLGdEQUFxRDtBQUNyRCxtQ0FBd0M7QUFDeEMsdUNBQTRDO0FBQzVDLCtCQUFvQztBQUNwQyw2Q0FBa0Q7QUFDbEQsOEJBQW1DO0FBQ3hCLFFBQUEsT0FBTyxHQUFHLE9BQU8sQ0FBQyxTQUFTLENBQUMsQ0FBQTtBQUN2Qyx1Q0FBNEM7QUFDNUMsMkNBQWdEO0FBQ2hELHlDQUE4QztBQUM5QyxxQ0FBMEM7QUFDMUMsMkNBQWdEO0FBQ2hELG1DQUF3QztBQUN4QywyQ0FBZ0Q7QUFDaEQsNkNBQWtEO0FBQ2xELHVDQUE0QztBQUM1Qyw2Q0FBa0Q7QUFDbEQsdUNBQTRDIn0=
|
||||||
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>;
|
||||||
|
|||||||
59
dist/npmci.prepare.js
vendored
59
dist/npmci.prepare.js
vendored
@@ -1,12 +1,21 @@
|
|||||||
"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 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 +27,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) {
|
||||||
@@ -36,45 +43,39 @@ let docker = function () {
|
|||||||
let dockerRegexResultArray = dockerRegex.exec(process.env.NPMCI_LOGIN_DOCKER);
|
let dockerRegexResultArray = dockerRegex.exec(process.env.NPMCI_LOGIN_DOCKER);
|
||||||
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);
|
yield npmci_bash_1.bash('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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnBtY2kucHJlcGFyZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL25wbWNpLnByZXBhcmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLDJDQUEwQztBQUUxQyxtQ0FBa0M7QUFDbEMseUNBQXdDO0FBVXhDOztHQUVHO0FBQ0gsSUFBSSxHQUFHLEdBQUc7SUFDTixJQUFJLElBQUksR0FBRyxPQUFPLENBQUMsQ0FBQyxDQUFDLEtBQUssRUFBRSxDQUFBO0lBRTVCLElBQUksV0FBVyxHQUFXLG1DQUFtQyxDQUFBO0lBQzdELElBQUksUUFBUSxHQUFXLE9BQU8sQ0FBQyxHQUFHLENBQUMsZUFBZSxDQUFBO0lBQ2xELElBQUksZUFBZSxHQUFHLFdBQVcsR0FBRyxRQUFRLENBQUE7SUFFNUMsRUFBRSxDQUFDLENBQUMsUUFBUSxDQUFDLENBQUMsQ0FBQztRQUNYLE9BQU8sQ0FBQyxTQUFTLENBQUMsSUFBSSxDQUFDLG9CQUFvQixDQUFDLENBQUE7SUFDaEQsQ0FBQztJQUFDLElBQUksQ0FBQyxDQUFDO1FBQ0osT0FBTyxDQUF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BQUEifQ==
|
||||||
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[]>;
|
||||||
|
|||||||
46
dist/npmci.publish.js
vendored
46
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* () {
|
||||||
plugins.beautylog.ok('Done!');
|
yield npmci_bash_1.bash('npm publish');
|
||||||
done.resolve();
|
plugins.beautylog.ok('Done!');
|
||||||
|
});
|
||||||
});
|
});
|
||||||
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);
|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0FBQyxhQUFhLENBQUMsQ0FBQTtZQUN6QixPQUFPLENBQUMsU0FBUyxDQUFDLEVBQUUsQ0FBQyxPQUFPLENBQUMsQ0FBQTtRQUMvQixDQUFDO0tBQUEsQ0FBQyxDQUFBO0FBQ04sQ0FBQyxDQUFBLENBQUE7QUFFRDs7R0FFRztBQUNILElBQUksYUFBYSxHQUFHO0lBQ2xCLE1BQU0sQ0FBQyxNQUFNLGdCQUFnQixDQUFDLGVBQWUsRUFBRTtTQUM1QyxJQUFJLENBQUMsZ0JBQWdCLENBQUMsb0JBQW9CLENBQUM7U0FDM0MsSUFBSSxDQUFDLGdCQUFnQixDQUFDLGVBQWUsQ0FBQztTQUN0QyxJQUFJLENBQUMsZUFBZTtRQUNuQixNQUFNLENBQUMsZUFBZSxDQUFBO0lBQ3hCLENBQUMsQ0FBQyxDQUFBO0FBQ04sQ0FBQyxDQUFBLENBQUEifQ==
|
||||||
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnBtY2kuc2VydmV6b25lLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvbnBtY2kuc2VydmV6b25lLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSwyQ0FBMEM7QUFFMUM7OztHQUdHO0FBQ0gsSUFBSSxjQUFjLEdBQUcsbUJBQW1CLENBQUE7QUFFeEM7O0dBRUc7QUFDSCxJQUFJLHlCQUF5QixHQUFHLGNBQWMsQ0FBQyxJQUFJLENBQUMsT0FBTyxDQUFDLEdBQUcsQ0FBQyxlQUFlLENBQUMsQ0FBQTtBQUVoRjs7R0FFRztBQUNILElBQUksbUNBQW1DLEdBQUc7SUFDdEMsS0FBSyxFQUFFLE9BQU87SUFDZCxRQUFRLEVBQUUseUJBQXlCLENBQUMsQ0FBQyxDQUFDO0lBQ3RDLElBQUksRUFBRSxRQUFRLENBQUMseUJBQXlCLENBQUMsQ0FBQyxDQUFDLENBQUM7SUFDNUMsSUFBSSxFQUFFLElBQUk7SUFDVixHQUFHLEVBQUUseUJBQXlCLENBQUMsQ0FBQyxDQUF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4
dist/npmci.ssh.d.ts
vendored
@@ -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,eyJ2ZXJzaW9uIj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sQ0FBQTtBQUVEOztHQUVHO0FBQ0gsSUFBSSxZQUFZLEdBQUcsQ0FBQyxTQUFpQjtJQUNuQyxNQUFNLENBQUMsQ0FBQyxTQUFTLElBQUksU0FBUyxLQUFLLFdBQVcsSUFBSSxTQUFTLEtBQUssSUFBSSxDQUFDLENBQUE7QUFDdkUsQ0FBQyxDQUFBIn0=
|
||||||
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<{}>;
|
|
||||||
|
|||||||
63
dist/npmci.test.js
vendored
63
dist/npmci.test.js
vendored
@@ -1,46 +1,43 @@
|
|||||||
"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');
|
if (yield npmci_bash_1.yarnAvailable.promise) {
|
||||||
done.resolve();
|
yield npmci_bash_1.bash('yarn upgrade');
|
||||||
return done.promise;
|
}
|
||||||
};
|
else {
|
||||||
let npmTest = () => {
|
yield npmci_bash_1.bash('npm install');
|
||||||
let done = plugins.q.defer();
|
}
|
||||||
|
});
|
||||||
|
let npmTest = () => __awaiter(this, void 0, void 0, function* () {
|
||||||
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);
|
||||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ElBQUksQ0FBQyxPQUFPLENBQUMsQ0FBQTtJQUN2QixNQUFNLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQTtBQUN2QixDQUFDLENBQUEifQ==
|
|
||||||
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnBtY2kudHJpZ2dlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL25wbWNpLnRyaWdnZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLDJDQUEwQztBQUkxQyxJQUFJLGlCQUFpQixHQUFHLGdHQUFnRyxDQUFBO0FBR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|
"npmci": {
|
||||||
|
"globalNpmTools": [
|
||||||
|
"npmts"
|
||||||
|
]
|
||||||
|
},
|
||||||
"npmdocker":{
|
"npmdocker":{
|
||||||
"baseImage":"hosttoday/ht-docker-node:npmts"
|
"baseImage":"hosttoday/ht-docker-node:npmts",
|
||||||
|
"command": "npmci test stable"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
23
package.json
23
package.json
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "npmci",
|
"name": "npmci",
|
||||||
"version": "2.3.41",
|
"version": "2.3.52",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"typings": "dist/index.d.ts",
|
"typings": "dist/index.d.ts",
|
||||||
@@ -24,28 +24,29 @@
|
|||||||
"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/q": "0.x.x",
|
|
||||||
"@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.5",
|
||||||
"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",
|
||||||
"q": "^1.4.1",
|
"request": "^2.81.0",
|
||||||
"request": "^2.79.0",
|
"shelljs": "^0.7.7",
|
||||||
"shelljs": "^0.7.6",
|
|
||||||
"smartcli": "^2.0.1",
|
"smartcli": "^2.0.1",
|
||||||
"smartfile": "^4.1.6",
|
"smartdelay": "^1.0.1",
|
||||||
|
"smartfile": "^4.1.7",
|
||||||
"smartparam": "^0.1.1",
|
"smartparam": "^0.1.1",
|
||||||
|
"smartq": "^1.1.1",
|
||||||
|
"smartshell": "^1.0.6",
|
||||||
"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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInRlc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLHdCQUFxQjtBQUNyQixpQ0FBZ0M7QUFDaEMsNkJBQTRCO0FBRTVCLHFCQUFxQjtBQUNyQixPQUFPLENBQUMsR0FBRyxDQUFDLGFBQWEsR0FBRyx1REFBdUQsQ0FBQTtBQUNuRixPQUFPLENBQUMsR0FBRyxDQUFDLGNBQWMsR0FBRywyQkFBMkIsQ0FBQTtBQUN4RCxPQUFPLENBQUMsR0FBRy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FBQztRQUN6QixFQUFFLENBQUMseUJBQXlCLEVBQUMsVUFBUyxJQUFJO1lBQ3RDLFFBQVEsQ0FBQyxHQUFHLEVBQUU7aUJBQ1QsSUFBSSxDQUFDO2dCQUNGLElBQUksRUFBRSxDQUFBO1lBQ1YsQ0FBQyxDQUFDLENBQUE7UUFDVixDQUFDLENBQUMsQ0FBQTtJQUNOLENBQUMsQ0FBQyxDQUFBO0FBQ04sQ0FBQyxDQUFDLENBQUEifQ==
|
||||||
@@ -1,73 +1,111 @@
|
|||||||
import * as plugins from './npmci.plugins'
|
import * as plugins from './npmci.plugins'
|
||||||
|
import * as paths from './npmci.paths'
|
||||||
|
|
||||||
let nvmSourceString: string = ''
|
import * as smartq from 'smartq'
|
||||||
export let nvmAvailable: boolean = false
|
|
||||||
let checkNvm = () => {
|
/**
|
||||||
let localExec: any = plugins.shelljs.exec
|
* wether nvm is available or not
|
||||||
if (localExec(`bash -c "source /usr/local/nvm/nvm.sh"`, { silent: true }).code === 0) {
|
*/
|
||||||
nvmSourceString = `source /usr/local/nvm/nvm.sh && `
|
export let nvmAvailable = smartq.defer<boolean>()
|
||||||
nvmAvailable = true
|
export let yarnAvailable = smartq.defer<boolean>()
|
||||||
} else if (localExec(`bash -c "source ~/.nvm/nvm.sh"`, { silent: true }).code === 0) {
|
/**
|
||||||
nvmSourceString = `source ~/.nvm/nvm.sh && `
|
* the smartshell instance for npmci
|
||||||
nvmAvailable = true
|
*/
|
||||||
|
let npmciSmartshell = new plugins.smartshell.Smartshell({
|
||||||
|
executor: 'bash',
|
||||||
|
sourceFilePaths: []
|
||||||
|
})
|
||||||
|
|
||||||
|
/**
|
||||||
|
* check for tools.
|
||||||
|
*/
|
||||||
|
let checkToolsAvailable = async () => {
|
||||||
|
// check for nvm
|
||||||
|
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)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// check for yarn
|
||||||
|
await plugins.smartshell.which('yarn').then(
|
||||||
|
() => {
|
||||||
|
plugins.smartshell.exec(`yarn config set cache-folder ${plugins.path.join(paths.cwd,'.yarn')}`)
|
||||||
|
yarnAvailable.resolve(true)
|
||||||
|
},
|
||||||
|
() => { yarnAvailable.resolve(false) }
|
||||||
|
)
|
||||||
}
|
}
|
||||||
checkNvm()
|
checkToolsAvailable()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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 = (commandArg: string, retryArg: number = 2, bareArg: boolean = false): 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.exec(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')
|
||||||
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)
|
||||||
|
await plugins.smartdelay.delayFor(100)
|
||||||
|
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
|
||||||
*/
|
*/
|
||||||
export let bashBare = (commandArg: string, retryArg: number = 2) => {
|
export let bashBare = async (commandArg: string, retryArg: number = 2): Promise<string> => {
|
||||||
return bash(commandArg, retryArg, true)
|
return await bash(commandArg, retryArg, true)
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* bashNoError allows executing stuff without throwing an error
|
* bashNoError allows executing stuff without throwing an error
|
||||||
*/
|
*/
|
||||||
export let bashNoError = (commandArg: string): string => {
|
export let bashNoError = async (commandArg: string): Promise<string> => {
|
||||||
return bash(commandArg, -1)
|
return await bash(commandArg, -1)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,43 +1,38 @@
|
|||||||
import * as plugins from './npmci.plugins'
|
import * as plugins from './npmci.plugins'
|
||||||
import * as paths from './npmci.paths'
|
import * as paths from './npmci.paths'
|
||||||
import * as NpmciEnv from './npmci.env'
|
import * as NpmciEnv from './npmci.env'
|
||||||
import {bashBare} from './npmci.bash'
|
import { bashBare } from './npmci.bash'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* builds a cwd of Dockerfiles by triggering a promisechain
|
* builds a cwd of Dockerfiles by triggering a promisechain
|
||||||
*/
|
*/
|
||||||
export let build = function(){
|
export let build = async () => {
|
||||||
let done = plugins.q.defer()
|
await readDockerfiles()
|
||||||
readDockerfiles()
|
.then(sortDockerfiles)
|
||||||
.then(sortDockerfiles)
|
.then(mapDockerfiles)
|
||||||
.then(mapDockerfiles)
|
.then(buildDockerfiles)
|
||||||
.then(buildDockerfiles)
|
.then(pushDockerfiles)
|
||||||
.then(pushDockerfiles)
|
|
||||||
.then(() => {
|
|
||||||
done.resolve()
|
|
||||||
})
|
|
||||||
return done.promise
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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 let readDockerfiles = function(): plugins.q.Promise<Dockerfile[]>{
|
export let readDockerfiles = async (): Promise<Dockerfile[]> => {
|
||||||
let done = plugins.q.defer<Dockerfile[]>()
|
let fileTree = await plugins.smartfile.fs.listFileTree(paths.cwd, './Dockerfile*')
|
||||||
let readDockerfilesArray: Dockerfile[] = []
|
|
||||||
plugins.gulp.src('./Dockerfile*')
|
// create the Dockerfile array
|
||||||
.pipe(plugins.through2.obj(function(file,enc,cb){
|
let readDockerfilesArray: Dockerfile[] = []
|
||||||
let myDockerfile = new Dockerfile({
|
for (let dockerfilePath of fileTree) {
|
||||||
filePath: file.path,
|
let myDockerfile = new Dockerfile({
|
||||||
read: true
|
filePath: dockerfilePath,
|
||||||
})
|
read: true
|
||||||
readDockerfilesArray.push(myDockerfile)
|
})
|
||||||
cb(null,file)
|
readDockerfilesArray.push(myDockerfile)
|
||||||
},function(){
|
}
|
||||||
done.resolve(readDockerfilesArray)
|
|
||||||
}))
|
return readDockerfilesArray
|
||||||
return done.promise
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -45,249 +40,236 @@ export let readDockerfiles = function(): plugins.q.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 = function(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)
|
||||||
let sorterFunctionCounter: number = 0
|
let sorterFunctionCounter: number = 0
|
||||||
let sorterFunction = function(){
|
let sorterFunction = function () {
|
||||||
sortableArrayArg.forEach((dockerfileArg) => {
|
sortableArrayArg.forEach((dockerfileArg) => {
|
||||||
let cleanTags = cleanTagsArrayFunction(sortableArrayArg,sortedArray)
|
let cleanTags = cleanTagsArrayFunction(sortableArrayArg, sortedArray)
|
||||||
if (cleanTags.indexOf(dockerfileArg.baseImage) === -1 && sortedArray.indexOf(dockerfileArg) === -1) {
|
if (cleanTags.indexOf(dockerfileArg.baseImage) === -1 && sortedArray.indexOf(dockerfileArg) === -1) {
|
||||||
sortedArray.push(dockerfileArg)
|
sortedArray.push(dockerfileArg)
|
||||||
};
|
};
|
||||||
if (cleanTagsOriginal.indexOf(dockerfileArg.baseImage) !== -1) {
|
if (cleanTagsOriginal.indexOf(dockerfileArg.baseImage) !== -1) {
|
||||||
dockerfileArg.localBaseImageDependent = true
|
dockerfileArg.localBaseImageDependent = true
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
if (sortableArrayArg.length === sortedArray.length) {
|
if (sortableArrayArg.length === sortedArray.length) {
|
||||||
done.resolve(sortedArray)
|
done.resolve(sortedArray)
|
||||||
} else if (sorterFunctionCounter < 10) {
|
} else if (sorterFunctionCounter < 10) {
|
||||||
sorterFunctionCounter++
|
sorterFunctionCounter++
|
||||||
sorterFunction()
|
sorterFunction()
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
sorterFunction()
|
sorterFunction()
|
||||||
return done.promise
|
return done.promise
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* maps local Dockerfiles dependencies to the correspoding Dockerfile class instances
|
* maps local Dockerfiles dependencies to the correspoding Dockerfile class instances
|
||||||
*/
|
*/
|
||||||
export let mapDockerfiles = function(sortedArray: Dockerfile[]): plugins.q.Promise<Dockerfile[]>{
|
export let mapDockerfiles = async (sortedArray: Dockerfile[]): Promise<Dockerfile[]> => {
|
||||||
let done = plugins.q.defer<Dockerfile[]>()
|
sortedArray.forEach((dockerfileArg) => {
|
||||||
sortedArray.forEach((dockerfileArg) => {
|
if (dockerfileArg.localBaseImageDependent) {
|
||||||
if (dockerfileArg.localBaseImageDependent) {
|
sortedArray.forEach((dockfile2: Dockerfile) => {
|
||||||
sortedArray.forEach((dockfile2: Dockerfile) => {
|
if (dockfile2.cleanTag === dockerfileArg.baseImage) {
|
||||||
if (dockfile2.cleanTag === dockerfileArg.baseImage) {
|
dockerfileArg.localBaseDockerfile = dockfile2
|
||||||
dockerfileArg.localBaseDockerfile = dockfile2
|
}
|
||||||
}
|
})
|
||||||
})
|
};
|
||||||
};
|
})
|
||||||
})
|
return sortedArray
|
||||||
done.resolve(sortedArray)
|
|
||||||
return done.promise
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* builds the correspoding real docker image for each Dockerfile class instance
|
* builds the correspoding real docker image for each Dockerfile class instance
|
||||||
*/
|
*/
|
||||||
export let buildDockerfiles = (sortedArrayArg: Dockerfile[]) => {
|
export let buildDockerfiles = async (sortedArrayArg: Dockerfile[]) => {
|
||||||
let done = plugins.q.defer()
|
for (let dockerfileArg of sortedArrayArg) {
|
||||||
sortedArrayArg.forEach(function(dockerfileArg){
|
await dockerfileArg.build()
|
||||||
dockerfileArg.build()
|
}
|
||||||
})
|
return sortedArrayArg
|
||||||
done.resolve(sortedArrayArg)
|
|
||||||
return done.promise
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* pushes the real Dockerfile images to a Docker registry
|
* pushes the real Dockerfile images to a Docker registry
|
||||||
*/
|
*/
|
||||||
export let pushDockerfiles = function(sortedArrayArg: Dockerfile[]){
|
export let pushDockerfiles = async (sortedArrayArg: Dockerfile[]) => {
|
||||||
let done = plugins.q.defer()
|
for (let dockerfileArg of sortedArrayArg) {
|
||||||
sortedArrayArg.forEach(function(dockerfileArg){
|
await dockerfileArg.push(NpmciEnv.buildStage)
|
||||||
dockerfileArg.push(NpmciEnv.buildStage)
|
}
|
||||||
})
|
return sortedArrayArg
|
||||||
done.resolve(sortedArrayArg)
|
|
||||||
return done.promise
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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 let pullDockerfileImages = (sortableArrayArg: Dockerfile[],registryArg = 'registry.gitlab.com') => {
|
export let pullDockerfileImages = async (sortableArrayArg: Dockerfile[], registryArg = 'registry.gitlab.com') => {
|
||||||
let done = plugins.q.defer()
|
for (let dockerfileArg of sortableArrayArg) {
|
||||||
sortableArrayArg.forEach((dockerfileArg) => {
|
await dockerfileArg.pull(registryArg)
|
||||||
dockerfileArg.pull(registryArg)
|
}
|
||||||
})
|
return sortableArrayArg
|
||||||
done.resolve(sortableArrayArg)
|
|
||||||
return done.promise
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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 let testDockerfiles = (sortedArrayArg: Dockerfile[]) => {
|
export let testDockerfiles = async (sortedArrayArg: Dockerfile[]) => {
|
||||||
let done = plugins.q.defer()
|
for (let dockerfileArg of sortedArrayArg) {
|
||||||
sortedArrayArg.forEach(function(dockerfileArg){
|
await dockerfileArg.test()
|
||||||
dockerfileArg.test()
|
}
|
||||||
})
|
return sortedArrayArg
|
||||||
done.resolve(sortedArrayArg)
|
|
||||||
return done.promise
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* class Dockerfile represents a Dockerfile on disk in npmci
|
* class Dockerfile represents a Dockerfile on disk in npmci
|
||||||
*/
|
*/
|
||||||
export class Dockerfile {
|
export class Dockerfile {
|
||||||
filePath: string
|
filePath: string
|
||||||
repo: string
|
repo: string
|
||||||
version: string
|
version: string
|
||||||
cleanTag: string
|
cleanTag: string
|
||||||
buildTag: string
|
buildTag: string
|
||||||
testTag: string
|
testTag: string
|
||||||
releaseTag: string
|
releaseTag: string
|
||||||
containerName: string
|
containerName: string
|
||||||
content: string
|
content: string
|
||||||
baseImage: string
|
baseImage: string
|
||||||
localBaseImageDependent: boolean
|
localBaseImageDependent: boolean
|
||||||
localBaseDockerfile: Dockerfile
|
localBaseDockerfile: Dockerfile
|
||||||
constructor(options: {filePath?: string,fileContents?: string|Buffer,read?: boolean}) {
|
constructor(options: { filePath?: string, fileContents?: string | Buffer, read?: boolean }) {
|
||||||
this.filePath = options.filePath
|
this.filePath = options.filePath
|
||||||
this.repo = NpmciEnv.repo.user + '/' + NpmciEnv.repo.repo
|
this.repo = NpmciEnv.repo.user + '/' + NpmciEnv.repo.repo
|
||||||
this.version = dockerFileVersion(plugins.path.parse(options.filePath).base)
|
this.version = dockerFileVersion(plugins.path.parse(options.filePath).base)
|
||||||
this.cleanTag = this.repo + ':' + this.version
|
this.cleanTag = this.repo + ':' + this.version
|
||||||
this.buildTag = this.cleanTag
|
this.buildTag = this.cleanTag
|
||||||
this.testTag = dockerTag('registry.gitlab.com',this.repo,this.version,'test')
|
this.testTag = dockerTag('registry.gitlab.com', this.repo, this.version, 'test')
|
||||||
this.releaseTag = dockerTag(NpmciEnv.dockerRegistry,this.repo,this.version)
|
this.releaseTag = dockerTag(NpmciEnv.dockerRegistry, this.repo, this.version)
|
||||||
this.containerName = 'dockerfile-' + this.version
|
this.containerName = 'dockerfile-' + this.version
|
||||||
if (options.filePath && options.read) {
|
if (options.filePath && options.read) {
|
||||||
this.content = plugins.smartfile.fs.toStringSync(plugins.path.resolve(options.filePath))
|
this.content = plugins.smartfile.fs.toStringSync(plugins.path.resolve(options.filePath))
|
||||||
};
|
|
||||||
this.baseImage = dockerBaseImage(this.content)
|
|
||||||
this.localBaseImageDependent = false
|
|
||||||
};
|
};
|
||||||
|
this.baseImage = dockerBaseImage(this.content)
|
||||||
|
this.localBaseImageDependent = false
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* builds the Dockerfile
|
* builds the Dockerfile
|
||||||
*/
|
*/
|
||||||
build() {
|
async build() {
|
||||||
let done = plugins.q.defer()
|
plugins.beautylog.info('now building Dockerfile for ' + this.cleanTag)
|
||||||
plugins.beautylog.info('now building Dockerfile for ' + this.cleanTag)
|
await bashBare('docker build -t ' + this.buildTag + ' -f ' + this.filePath + ' .')
|
||||||
bashBare('docker build -t ' + this.buildTag + ' -f ' + this.filePath + ' .')
|
NpmciEnv.dockerFilesBuilt.push(this)
|
||||||
NpmciEnv.dockerFilesBuilt.push(this)
|
return
|
||||||
done.resolve()
|
};
|
||||||
return done.promise
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* pushes the Dockerfile to a registry
|
* pushes the Dockerfile to a registry
|
||||||
*/
|
*/
|
||||||
push(stageArg) {
|
async push(stageArg) {
|
||||||
let done = plugins.q.defer()
|
let pushTag
|
||||||
let pushTag
|
switch (stageArg) {
|
||||||
switch (stageArg) {
|
case 'release':
|
||||||
case 'release':
|
pushTag = this.releaseTag
|
||||||
pushTag = this.releaseTag
|
break
|
||||||
break
|
case 'test':
|
||||||
case 'test':
|
default:
|
||||||
default:
|
pushTag = this.testTag
|
||||||
pushTag = this.testTag
|
break
|
||||||
break
|
|
||||||
}
|
|
||||||
bashBare('docker tag ' + this.buildTag + ' ' + pushTag)
|
|
||||||
bashBare('docker push ' + pushTag)
|
|
||||||
done.resolve()
|
|
||||||
return done.promise
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
|
||||||
* pulls the Dockerfile from a registry
|
|
||||||
*/
|
|
||||||
pull(registryArg: string) {
|
|
||||||
let pullTag = this.testTag
|
|
||||||
bashBare('docker pull ' + pullTag)
|
|
||||||
bashBare('docker tag ' + pullTag + ' ' + this.buildTag)
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
|
||||||
* tests the Dockerfile;
|
|
||||||
*/
|
|
||||||
test() {
|
|
||||||
let testFile: string = plugins.path.join(paths.NpmciTestDir,'test_' + this.version + '.sh')
|
|
||||||
let testFileExists: boolean = plugins.smartfile.fs.fileExistsSync(testFile)
|
|
||||||
if (testFileExists) {
|
|
||||||
bashBare('docker run --name npmci_test_container ' + this.buildTag + ' mkdir /npmci_test')
|
|
||||||
bashBare('docker cp ' + testFile + ' npmci_test_container:/npmci_test/test.sh')
|
|
||||||
bashBare('docker commit npmci_test_container npmci_test_image')
|
|
||||||
bashBare('docker run npmci_test_image sh /npmci_test/test.sh')
|
|
||||||
bashBare('docker rm npmci_test_container')
|
|
||||||
bashBare('docker rmi --force npmci_test_image')
|
|
||||||
} else {
|
|
||||||
plugins.beautylog.warn('skipping tests for ' + this.cleanTag + ' because no testfile was found!')
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
|
||||||
* gets the id of a Dockerfile
|
|
||||||
*/
|
|
||||||
getId() {
|
|
||||||
let containerId = bashBare('docker inspect --type=image --format=\"{{.Id}}\" ' + this.buildTag)
|
|
||||||
return containerId
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
export let dockerFileVersion = function(dockerfileNameArg: string): string{
|
|
||||||
let versionString: string
|
|
||||||
let versionRegex = /Dockerfile_([a-zA-Z0-9\.]*)$/
|
|
||||||
let regexResultArray = versionRegex.exec(dockerfileNameArg)
|
|
||||||
if (regexResultArray && regexResultArray.length === 2) {
|
|
||||||
versionString = regexResultArray[1]
|
|
||||||
} else {
|
|
||||||
versionString = 'latest'
|
|
||||||
}
|
}
|
||||||
return versionString
|
await bashBare('docker tag ' + this.buildTag + ' ' + pushTag)
|
||||||
|
await bashBare('docker push ' + pushTag)
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* pulls the Dockerfile from a registry
|
||||||
|
*/
|
||||||
|
async pull(registryArg: string) {
|
||||||
|
let pullTag = this.testTag
|
||||||
|
await bashBare('docker pull ' + pullTag)
|
||||||
|
await bashBare('docker tag ' + pullTag + ' ' + this.buildTag)
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* tests the Dockerfile;
|
||||||
|
*/
|
||||||
|
async test() {
|
||||||
|
let testFile: string = plugins.path.join(paths.NpmciTestDir, 'test_' + this.version + '.sh')
|
||||||
|
let testFileExists: boolean = plugins.smartfile.fs.fileExistsSync(testFile)
|
||||||
|
if (testFileExists) {
|
||||||
|
// run tests
|
||||||
|
await bashBare('docker run --name npmci_test_container ' + this.buildTag + ' mkdir /npmci_test')
|
||||||
|
await bashBare('docker cp ' + testFile + ' npmci_test_container:/npmci_test/test.sh')
|
||||||
|
await bashBare('docker commit npmci_test_container npmci_test_image')
|
||||||
|
await bashBare('docker run npmci_test_image sh /npmci_test/test.sh')
|
||||||
|
await bashBare('docker rm npmci_test_container')
|
||||||
|
await bashBare('docker rmi --force npmci_test_image')
|
||||||
|
} else {
|
||||||
|
plugins.beautylog.warn('skipping tests for ' + this.cleanTag + ' because no testfile was found!')
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* gets the id of a Dockerfile
|
||||||
|
*/
|
||||||
|
async getId() {
|
||||||
|
let containerId = await bashBare('docker inspect --type=image --format=\"{{.Id}}\" ' + this.buildTag)
|
||||||
|
return containerId
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* returns a version for a docker file
|
||||||
|
* @execution SYNC
|
||||||
|
*/
|
||||||
|
export let dockerFileVersion = (dockerfileNameArg: string): string => {
|
||||||
|
let versionString: string
|
||||||
|
let versionRegex = /Dockerfile_([a-zA-Z0-9\.]*)$/
|
||||||
|
let regexResultArray = versionRegex.exec(dockerfileNameArg)
|
||||||
|
if (regexResultArray && regexResultArray.length === 2) {
|
||||||
|
versionString = regexResultArray[1]
|
||||||
|
} else {
|
||||||
|
versionString = 'latest'
|
||||||
|
}
|
||||||
|
return versionString
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export let dockerBaseImage = function(dockerfileContentArg: string){
|
export let dockerBaseImage = function (dockerfileContentArg: string) {
|
||||||
let baseImageRegex = /FROM\s([a-zA-z0-9\/\-\:]*)\n?/
|
let baseImageRegex = /FROM\s([a-zA-z0-9\/\-\:]*)\n?/
|
||||||
let regexResultArray = baseImageRegex.exec(dockerfileContentArg)
|
let regexResultArray = baseImageRegex.exec(dockerfileContentArg)
|
||||||
return regexResultArray[1]
|
return regexResultArray[1]
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export let dockerTag = function(registryArg: string,repoArg: string,versionArg: string,suffixArg?: string): string{
|
export let dockerTag = function (registryArg: string, repoArg: string, versionArg: string, suffixArg?: string): string {
|
||||||
let tagString: string
|
let tagString: string
|
||||||
let registry = registryArg
|
let registry = registryArg
|
||||||
let repo = repoArg
|
let repo = repoArg
|
||||||
let version = versionArg
|
let version = versionArg
|
||||||
if (suffixArg) {
|
if (suffixArg) {
|
||||||
version = versionArg + '_' + suffixArg
|
version = versionArg + '_' + suffixArg
|
||||||
};
|
};
|
||||||
tagString = registry + '/' + repo + ':' + version
|
tagString = registry + '/' + repo + ':' + version
|
||||||
return tagString
|
return tagString
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export let cleanTagsArrayFunction = function(dockerfileArrayArg: Dockerfile[],trackingArrayArg: Dockerfile[]): string[]{
|
export let cleanTagsArrayFunction = function (dockerfileArrayArg: Dockerfile[], trackingArrayArg: Dockerfile[]): string[] {
|
||||||
let cleanTagsArray: string[] = []
|
let cleanTagsArray: string[] = []
|
||||||
dockerfileArrayArg.forEach(function(dockerfileArg){
|
dockerfileArrayArg.forEach(function (dockerfileArg) {
|
||||||
if (trackingArrayArg.indexOf(dockerfileArg) === -1) {
|
if (trackingArrayArg.indexOf(dockerfileArg) === -1) {
|
||||||
cleanTagsArray.push(dockerfileArg.cleanTag)
|
cleanTagsArray.push(dockerfileArg.cleanTag)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
return cleanTagsArray
|
return cleanTagsArray
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,22 +1,23 @@
|
|||||||
import * as plugins from './npmci.plugins'
|
import * as plugins from './npmci.plugins'
|
||||||
import {bash} from './npmci.bash'
|
import { bash } from './npmci.bash'
|
||||||
import * as env from './npmci.env'
|
import * as env from './npmci.env'
|
||||||
import * as buildDocker from './npmci.build.docker'
|
import * as buildDocker from './npmci.build.docker'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* defines possible build services
|
* defines possible build services
|
||||||
*/
|
*/
|
||||||
export type TBuildService = 'docker';
|
export type TBuildService = 'docker'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* builds for a specific service
|
* builds for a specific service
|
||||||
*/
|
*/
|
||||||
export let build = function(commandArg): plugins.q.Promise<any> {
|
export let build = async (commandArg): Promise<void> => {
|
||||||
switch (commandArg) {
|
switch (commandArg) {
|
||||||
case 'docker':
|
case 'docker':
|
||||||
return buildDocker.build()
|
await buildDocker.build()
|
||||||
default:
|
break
|
||||||
plugins.beautylog.log('build target ' + commandArg + ' not recognised!')
|
default:
|
||||||
};
|
plugins.beautylog.log('build target ' + commandArg + ' not recognised!')
|
||||||
return
|
};
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,9 +4,7 @@ import * as paths from './npmci.paths'
|
|||||||
/**
|
/**
|
||||||
* cleans npmci config files
|
* cleans npmci config files
|
||||||
*/
|
*/
|
||||||
export let clean = () => {
|
export let clean = async (): Promise<void> => {
|
||||||
let done = plugins.q.defer()
|
plugins.smartfile.fs.removeSync(paths.NpmciPackageConfig)
|
||||||
plugins.smartfile.fs.removeSync(paths.NpmciPackageConfig)
|
return
|
||||||
done.resolve()
|
|
||||||
return done.promise
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,15 +1,13 @@
|
|||||||
import * as plugins from './npmci.plugins'
|
import * as plugins from './npmci.plugins'
|
||||||
import {bash} from './npmci.bash'
|
import { bash } from './npmci.bash'
|
||||||
|
|
||||||
export let command = () => {
|
export let command = async () => {
|
||||||
let done = plugins.q.defer()
|
let wrappedCommand: string = ''
|
||||||
let wrappedCommand: string = ''
|
let argvArray = process.argv
|
||||||
let argvArray = process.argv
|
for (let i = 3; i < argvArray.length; i++) {
|
||||||
for (let i = 3; i < argvArray.length; i++) {
|
wrappedCommand = wrappedCommand + argvArray[i]
|
||||||
wrappedCommand = wrappedCommand + argvArray[i]
|
if (i + 1 !== argvArray.length) { wrappedCommand = wrappedCommand + ' ' }
|
||||||
if (i + 1 !== argvArray.length) { wrappedCommand = wrappedCommand + ' ' }
|
}
|
||||||
}
|
await bash(wrappedCommand)
|
||||||
bash(wrappedCommand)
|
return
|
||||||
done.resolve()
|
|
||||||
return done.promise
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,16 +4,14 @@ import * as plugins from './npmci.plugins'
|
|||||||
import * as paths from './npmci.paths'
|
import * as paths from './npmci.paths'
|
||||||
|
|
||||||
export interface INpmciOptions {
|
export interface INpmciOptions {
|
||||||
globalNpmTools: string[]
|
globalNpmTools: string[]
|
||||||
}
|
}
|
||||||
|
|
||||||
export let getConfig = () => {
|
export let getConfig = async (): Promise<INpmciOptions> => {
|
||||||
let done = q.defer<INpmciOptions>()
|
let npmciNpmextra = new plugins.npmextra.Npmextra(paths.cwd)
|
||||||
let npmciNpmextra = new plugins.npmextra.Npmextra(paths.cwd)
|
let defaultConfig: INpmciOptions = {
|
||||||
let defaultConfig: INpmciOptions = {
|
globalNpmTools: []
|
||||||
globalNpmTools: []
|
}
|
||||||
}
|
let npmciConfig = npmciNpmextra.dataFor<INpmciOptions>('npmci', defaultConfig)
|
||||||
let npmciConfig = npmciNpmextra.dataFor<INpmciOptions>('npmci', defaultConfig)
|
return npmciConfig
|
||||||
done.resolve(npmciConfig)
|
|
||||||
return done.promise
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import * as plugins from './npmci.plugins'
|
import * as plugins from './npmci.plugins'
|
||||||
import * as paths from './npmci.paths'
|
import * as paths from './npmci.paths'
|
||||||
import {GitRepo} from 'smartstring'
|
import { GitRepo } from 'smartstring'
|
||||||
import {Dockerfile} from './npmci.build.docker'
|
import { Dockerfile } from './npmci.build.docker'
|
||||||
|
|
||||||
export let repo: GitRepo
|
export let repo: GitRepo
|
||||||
if (process.env.CI_BUILD_REPO) repo = new GitRepo(process.env.CI_BUILD_REPO)
|
if (process.env.CI_BUILD_REPO) repo = new GitRepo(process.env.CI_BUILD_REPO)
|
||||||
@@ -11,48 +11,47 @@ export let buildStage: string = process.env.CI_BUILD_STAGE
|
|||||||
// handling config between commands
|
// handling config between commands
|
||||||
export let dockerRegistry: string // will be set by npmci.prepare
|
export let dockerRegistry: string // will be set by npmci.prepare
|
||||||
export let setDockerRegistry = (dockerRegistryArg: string) => {
|
export let setDockerRegistry = (dockerRegistryArg: string) => {
|
||||||
dockerRegistry = dockerRegistryArg
|
dockerRegistry = dockerRegistryArg
|
||||||
}
|
}
|
||||||
export let dockerFilesBuilt: Dockerfile[] = []
|
export let dockerFilesBuilt: Dockerfile[] = []
|
||||||
export let dockerFiles: Dockerfile[] = []
|
export let dockerFiles: Dockerfile[] = []
|
||||||
export let config = {
|
export let config = {
|
||||||
dockerRegistry: undefined, // this will be set later on store
|
dockerRegistry: undefined, // this will be set later on store
|
||||||
dockerFilesBuilt: dockerFilesBuilt,
|
dockerFilesBuilt: dockerFilesBuilt,
|
||||||
dockerFiles: dockerFiles,
|
dockerFiles: dockerFiles,
|
||||||
project: undefined
|
project: undefined
|
||||||
}
|
}
|
||||||
|
|
||||||
export let configStore = () => {
|
export let configStore = () => {
|
||||||
config.dockerRegistry = dockerRegistry
|
config.dockerRegistry = dockerRegistry
|
||||||
plugins.smartfile.memory.toFsSync(
|
plugins.smartfile.memory.toFsSync(
|
||||||
JSON.stringify(config),
|
JSON.stringify(config),
|
||||||
paths.NpmciPackageConfig
|
paths.NpmciPackageConfig
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
let configLoad = () => {
|
let configLoad = () => {
|
||||||
// internal config to transfer information in between npmci shell calls
|
// internal config to transfer information in between npmci shell calls
|
||||||
try {
|
try {
|
||||||
plugins.lodash.assign(config,plugins.smartfile.fs.toObjectSync(paths.NpmciPackageConfig,'json'))
|
plugins.lodash.assign(config, plugins.smartfile.fs.toObjectSync(paths.NpmciPackageConfig, 'json'))
|
||||||
}
|
} catch (err) {
|
||||||
catch (err) {
|
configStore()
|
||||||
configStore()
|
plugins.beautylog.log('config initialized!')
|
||||||
plugins.beautylog.log('config initialized!')
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// project config
|
// project config
|
||||||
try {
|
try {
|
||||||
if (!config.project) {
|
if (!config.project) {
|
||||||
config.project = plugins.smartfile.fs.toObjectSync(paths.NpmciProjectDir,'npmci.json')
|
config.project = plugins.smartfile.fs.toObjectSync(paths.NpmciProjectDir, 'npmci.json')
|
||||||
plugins.beautylog.ok('project config found!')
|
plugins.beautylog.ok('project config found!')
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
catch (err) {
|
catch (err) {
|
||||||
config.project = {}
|
config.project = {}
|
||||||
plugins.beautylog.log('no project config found, so proceeding with default behaviour!')
|
plugins.beautylog.log('no project config found, so proceeding with default behaviour!')
|
||||||
}
|
}
|
||||||
|
|
||||||
config.dockerRegistry ? dockerRegistry = config.dockerRegistry : void(0)
|
config.dockerRegistry ? dockerRegistry = config.dockerRegistry : void (0)
|
||||||
config.dockerFilesBuilt ? dockerFilesBuilt = config.dockerFilesBuilt : void(0)
|
config.dockerFilesBuilt ? dockerFilesBuilt = config.dockerFilesBuilt : void (0)
|
||||||
}
|
}
|
||||||
configLoad()
|
configLoad()
|
||||||
|
|||||||
@@ -1,9 +1,16 @@
|
|||||||
import * as plugins from './npmci.plugins'
|
import * as plugins from './npmci.plugins'
|
||||||
import * as configModule from './npmci.config'
|
import * as configModule from './npmci.config'
|
||||||
import { bash, bashNoError } from './npmci.bash'
|
import {
|
||||||
import { nvmAvailable } from './npmci.bash'
|
bash,
|
||||||
export let install = (versionArg) => {
|
bashNoError,
|
||||||
let done = plugins.q.defer()
|
nvmAvailable,
|
||||||
|
yarnAvailable } from './npmci.bash'
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Install a specific version of node
|
||||||
|
* @param versionArg
|
||||||
|
*/
|
||||||
|
export let install = async (versionArg) => {
|
||||||
plugins.beautylog.log(`now installing node version ${versionArg}`)
|
plugins.beautylog.log(`now installing node version ${versionArg}`)
|
||||||
let version: string
|
let version: string
|
||||||
if (versionArg === 'stable') {
|
if (versionArg === 'stable') {
|
||||||
@@ -15,31 +22,33 @@ export let install = (versionArg) => {
|
|||||||
} else {
|
} else {
|
||||||
version = versionArg
|
version = versionArg
|
||||||
};
|
};
|
||||||
if (nvmAvailable) {
|
if (await nvmAvailable.promise) {
|
||||||
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 {
|
||||||
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!')
|
||||||
};
|
};
|
||||||
bash('node -v')
|
await bash('node -v')
|
||||||
bash('npm -v')
|
await bash('npm -v')
|
||||||
// lets look for further config
|
// lets look for further config
|
||||||
configModule.getConfig()
|
await configModule.getConfig()
|
||||||
.then(configArg => {
|
.then(async configArg => {
|
||||||
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 = bashNoError(`which ${npmTool}`)
|
let whichOutput: string = await bashNoError(`which ${npmTool}`)
|
||||||
let toolAvailable: boolean = !((/not\sfound/.test(whichOutput)) || whichOutput === '')
|
let toolAvailable: boolean = !((/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`)
|
||||||
bash(`npm install ${npmTool} -q -g`)
|
if (await yarnAvailable.promise) {
|
||||||
|
await bash(`yarn global add ${npmTool}`)
|
||||||
|
} else {
|
||||||
|
await 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
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,12 +5,15 @@ export import 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('q')
|
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 smartdelay = require('smartdelay')
|
||||||
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')
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import * as plugins from './npmci.plugins'
|
import * as plugins from './npmci.plugins'
|
||||||
import {bash} from './npmci.bash'
|
import { bash } from './npmci.bash'
|
||||||
import * as env from './npmci.env'
|
import * as env from './npmci.env'
|
||||||
import * as sshModule from './npmci.ssh'
|
import * as sshModule from './npmci.ssh'
|
||||||
|
|
||||||
@@ -9,85 +9,74 @@ import * as sshModule from './npmci.ssh'
|
|||||||
/**
|
/**
|
||||||
* defines possible prepare services
|
* defines possible prepare services
|
||||||
*/
|
*/
|
||||||
export type TPrepService = 'npm' | 'docker' | 'docker-gitlab' | 'ssh';
|
export type TPrepService = 'npm' | 'docker' | 'docker-gitlab' | 'ssh'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* authenticates npm with token from env var
|
* authenticates npm with token from env var
|
||||||
*/
|
*/
|
||||||
let npm = function(){
|
let npm = async () => {
|
||||||
let done = plugins.q.defer()
|
let npmrcPrefix: string = '//registry.npmjs.org/:_authToken='
|
||||||
|
let npmToken: string = process.env.NPMCI_TOKEN_NPM
|
||||||
let npmrcPrefix: string = '//registry.npmjs.org/:_authToken='
|
let npmrcFileString: string = npmrcPrefix + npmToken
|
||||||
let npmToken: string = process.env.NPMCI_TOKEN_NPM
|
if (npmToken) {
|
||||||
let npmrcFileString = npmrcPrefix + npmToken
|
plugins.beautylog.info('found access token')
|
||||||
|
} else {
|
||||||
if (npmToken) {
|
plugins.beautylog.error('no access token found! Exiting!')
|
||||||
plugins.beautylog.info('found access token')
|
process.exit(1)
|
||||||
} else {
|
}
|
||||||
plugins.beautylog.error('no access token found! Exiting!')
|
plugins.smartfile.memory.toFsSync(npmrcFileString, '/root/.npmrc')
|
||||||
process.exit(1)
|
return
|
||||||
}
|
|
||||||
plugins.smartfile.memory.toFsSync(npmrcFileString,'/root/.npmrc')
|
|
||||||
done.resolve()
|
|
||||||
return done.promise
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* logs in docker
|
* logs in docker
|
||||||
*/
|
*/
|
||||||
let docker = function(){
|
let docker = async () => {
|
||||||
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) {
|
plugins.beautylog.error('You have to specify Login Data to the Docker Registry')
|
||||||
plugins.beautylog.error('You have to specify Login Data to the Docker Registry')
|
process.exit(1)
|
||||||
process.exit(1)
|
}
|
||||||
}
|
plugins.shelljs.exec('docker login -u gitlab-ci-token -p ' + process.env.CI_BUILD_TOKEN + ' ' + 'registry.gitlab.com') // Always also login to GitLab Registry
|
||||||
plugins.shelljs.exec('docker login -u gitlab-ci-token -p ' + process.env.CI_BUILD_TOKEN + ' ' + 'registry.gitlab.com') // Always also login to GitLab Registry
|
let dockerRegexResultArray = dockerRegex.exec(process.env.NPMCI_LOGIN_DOCKER)
|
||||||
let dockerRegexResultArray = dockerRegex.exec(process.env.NPMCI_LOGIN_DOCKER)
|
let username = dockerRegexResultArray[1]
|
||||||
let username = dockerRegexResultArray[1]
|
let password = dockerRegexResultArray[2]
|
||||||
let password = dockerRegexResultArray[2]
|
await bash('docker login -u ' + username + ' -p ' + password)
|
||||||
plugins.shelljs.exec('docker login -u ' + username + ' -p ' + password)
|
return
|
||||||
done.resolve()
|
|
||||||
return done.promise
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* prepare docker for gitlab registry
|
* prepare docker for gitlab registry
|
||||||
*/
|
*/
|
||||||
let dockerGitlab = function(){
|
let dockerGitlab = async () => {
|
||||||
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')
|
return
|
||||||
done.resolve()
|
|
||||||
return done.promise
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* prepare ssh
|
* prepare ssh
|
||||||
*/
|
*/
|
||||||
let ssh = function(){
|
let ssh = async () => {
|
||||||
let done = plugins.q.defer()
|
await 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
|
||||||
*/
|
*/
|
||||||
export let prepare = function(serviceArg: TPrepService){
|
export let prepare = async (serviceArg: TPrepService) => {
|
||||||
switch (serviceArg) {
|
switch (serviceArg) {
|
||||||
case 'npm':
|
case 'npm':
|
||||||
return npm()
|
return await npm()
|
||||||
case 'docker':
|
case 'docker':
|
||||||
return docker()
|
return await docker()
|
||||||
case 'docker-gitlab':
|
case 'docker-gitlab':
|
||||||
return dockerGitlab()
|
return await dockerGitlab()
|
||||||
case 'ssh':
|
case 'ssh':
|
||||||
return ssh()
|
return await ssh()
|
||||||
default:
|
default:
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,49 +1,46 @@
|
|||||||
import * as plugins from './npmci.plugins'
|
import * as plugins from './npmci.plugins'
|
||||||
import {prepare} from './npmci.prepare'
|
import { prepare } from './npmci.prepare'
|
||||||
import {bash} from './npmci.bash'
|
import { bash } from './npmci.bash'
|
||||||
import * as NpmciEnv from './npmci.env'
|
import * as NpmciEnv from './npmci.env'
|
||||||
import * as NpmciBuildDocker from './npmci.build.docker'
|
import * as NpmciBuildDocker from './npmci.build.docker'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* type of supported services
|
* type of supported services
|
||||||
*/
|
*/
|
||||||
export type TPubService = 'npm' | 'docker';
|
export 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 let publish = (pubServiceArg: TPubService = 'npm') => {
|
export let publish = async (pubServiceArg: TPubService = 'npm') => {
|
||||||
switch (pubServiceArg) {
|
switch (pubServiceArg) {
|
||||||
case 'npm':
|
case 'npm':
|
||||||
return publishNpm()
|
return await publishNpm()
|
||||||
case 'docker':
|
case 'docker':
|
||||||
return publishDocker()
|
return await publishDocker()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* tries to publish current cwd to NPM registry
|
* tries to publish current cwd to NPM registry
|
||||||
*/
|
*/
|
||||||
let publishNpm = function(){
|
let publishNpm = async () => {
|
||||||
let done = plugins.q.defer()
|
await prepare('npm')
|
||||||
prepare('npm')
|
.then(async function () {
|
||||||
.then(function(){
|
await bash('npm publish')
|
||||||
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 = async () => {
|
||||||
let done = plugins.q.defer()
|
return await NpmciBuildDocker.readDockerfiles()
|
||||||
NpmciBuildDocker.readDockerfiles()
|
.then(NpmciBuildDocker.pullDockerfileImages)
|
||||||
.then(NpmciBuildDocker.pullDockerfileImages)
|
.then(NpmciBuildDocker.pushDockerfiles)
|
||||||
.then(NpmciBuildDocker.pushDockerfiles)
|
.then(dockerfileArray => {
|
||||||
.then(done.resolve)
|
return dockerfileArray
|
||||||
return done.promise
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,7 +25,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
|
||||||
*/
|
*/
|
||||||
export let run = (configArg) => {
|
export let run = async (configArg) => {
|
||||||
new plugins.smartsocket.SmartsocketClient(
|
new plugins.smartsocket.SmartsocketClient(
|
||||||
smartsocketClientConstructorOptions
|
smartsocketClientConstructorOptions
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -6,45 +6,43 @@ let sshInstance: plugins.smartssh.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
|
||||||
*/
|
*/
|
||||||
export let ssh = () => {
|
export let ssh = async () => {
|
||||||
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) {
|
sshInstance.writeToDisk()
|
||||||
sshInstance.writeToDisk()
|
} else {
|
||||||
} else {
|
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 = async (sshkeyEnvVarArg) => {
|
||||||
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])
|
||||||
if (notUndefined(resultArray[1])) {
|
if (notUndefined(resultArray[1])) {
|
||||||
plugins.beautylog.log('---> host defined!')
|
plugins.beautylog.log('---> host defined!')
|
||||||
sshKey.host = resultArray[1]
|
sshKey.host = resultArray[1]
|
||||||
}
|
}
|
||||||
if (notUndefined(resultArray[2])) {
|
if (notUndefined(resultArray[2])) {
|
||||||
plugins.beautylog.log('---> privKey defined!')
|
plugins.beautylog.log('---> privKey defined!')
|
||||||
sshKey.privKeyBase64 = resultArray[2]
|
sshKey.privKeyBase64 = resultArray[2]
|
||||||
};
|
};
|
||||||
if (notUndefined(resultArray[3])) {
|
if (notUndefined(resultArray[3])) {
|
||||||
'---> pubKey defined!'
|
'---> pubKey defined!'
|
||||||
sshKey.pubKeyBase64 = resultArray[3]
|
sshKey.pubKeyBase64 = resultArray[3]
|
||||||
};
|
};
|
||||||
|
|
||||||
sshInstance.addKey(sshKey)
|
sshInstance.addKey(sshKey)
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* checks if not undefined
|
* checks if not undefined
|
||||||
*/
|
*/
|
||||||
let notUndefined = (stringArg: string) => {
|
let notUndefined = (stringArg: string) => {
|
||||||
return (stringArg && stringArg !== 'undefined' && stringArg !== '##')
|
return (stringArg && stringArg !== 'undefined' && stringArg !== '##')
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,49 +1,36 @@
|
|||||||
import * as plugins from './npmci.plugins'
|
import * as plugins from './npmci.plugins'
|
||||||
import {bash} from './npmci.bash'
|
import { bash, yarnAvailable } from './npmci.bash'
|
||||||
import {install} from './npmci.install'
|
import { install } from './npmci.install'
|
||||||
import * as env from './npmci.env'
|
import * as env from './npmci.env'
|
||||||
import * as NpmciBuildDocker from './npmci.build.docker'
|
import * as NpmciBuildDocker from './npmci.build.docker'
|
||||||
|
|
||||||
export let test = (versionArg) => {
|
export let test = async (versionArg): Promise<void> => {
|
||||||
let done = plugins.q.defer()
|
if (versionArg === 'docker') {
|
||||||
if (versionArg === 'docker') {
|
await testDocker()
|
||||||
testDocker()
|
} else {
|
||||||
.then(() => {
|
await install(versionArg)
|
||||||
done.resolve()
|
.then(npmDependencies)
|
||||||
})
|
.then(npmTest)
|
||||||
} else {
|
}
|
||||||
install(versionArg)
|
|
||||||
.then(npmDependencies)
|
|
||||||
.then(npmTest)
|
|
||||||
.then(() => {
|
|
||||||
done.resolve()
|
|
||||||
})
|
|
||||||
}
|
|
||||||
return done.promise
|
|
||||||
}
|
}
|
||||||
|
|
||||||
let npmDependencies = function(){
|
let npmDependencies = async (): Promise<void> => {
|
||||||
let done = plugins.q.defer()
|
plugins.beautylog.info('now installing dependencies:')
|
||||||
plugins.beautylog.info('now installing dependencies:')
|
if (await yarnAvailable.promise) {
|
||||||
bash('npm install')
|
await bash('yarn upgrade')
|
||||||
done.resolve()
|
} else {
|
||||||
return done.promise
|
await bash('npm install')
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let npmTest = () => {
|
let npmTest = async (): Promise<void> => {
|
||||||
let done = plugins.q.defer()
|
plugins.beautylog.info('now starting tests:')
|
||||||
plugins.beautylog.info('now starting tests:')
|
await bash('npm test')
|
||||||
bash('npm test')
|
|
||||||
done.resolve()
|
|
||||||
return done.promise
|
|
||||||
}
|
}
|
||||||
|
|
||||||
let testDocker = function(){
|
let testDocker = async (): Promise<NpmciBuildDocker.Dockerfile[]> => {
|
||||||
let done = plugins.q.defer()
|
return await NpmciBuildDocker.readDockerfiles()
|
||||||
NpmciBuildDocker.readDockerfiles()
|
.then(NpmciBuildDocker.pullDockerfileImages)
|
||||||
.then(NpmciBuildDocker.pullDockerfileImages)
|
.then(NpmciBuildDocker.testDockerfiles)
|
||||||
.then(NpmciBuildDocker.testDockerfiles)
|
|
||||||
.then(done.resolve)
|
|
||||||
return done.promise
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -4,27 +4,24 @@ import { bash } from './npmci.bash'
|
|||||||
|
|
||||||
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\.\-\/]*)/
|
||||||
|
|
||||||
export let trigger = function () {
|
export let trigger = async () => {
|
||||||
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) => {
|
let evaluateTrigger = async (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]
|
||||||
let regexProjectTriggerToken = triggerRegexResultArray[3]
|
let regexProjectTriggerToken = triggerRegexResultArray[3]
|
||||||
let regexRefName = triggerRegexResultArray[4]
|
let regexRefName = triggerRegexResultArray[4]
|
||||||
let regexTriggerName
|
let regexTriggerName
|
||||||
if (triggerRegexResultArray.length === 6) {
|
if (triggerRegexResultArray.length === 6) {
|
||||||
regexTriggerName = triggerRegexResultArray[5]
|
regexTriggerName = triggerRegexResultArray[5]
|
||||||
} else {
|
} else {
|
||||||
regexTriggerName = 'Unnamed Trigger'
|
regexTriggerName = 'Unnamed Trigger'
|
||||||
}
|
}
|
||||||
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 } })
|
||||||
}
|
}
|
||||||
|
|||||||
520
yarn.lock
520
yarn.lock
@@ -28,9 +28,9 @@
|
|||||||
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", "@types/lodash@^4.14.55":
|
||||||
version "4.14.52"
|
version "4.14.57"
|
||||||
resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.52.tgz#de5c7ab14da1289733233c9b0ec6f9e377db90f5"
|
resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.57.tgz#f0095fb15ec1004455613f3ad73766583e62f830"
|
||||||
|
|
||||||
"@types/loggly@1.x.x":
|
"@types/loggly@1.x.x":
|
||||||
version "1.1.30"
|
version "1.1.30"
|
||||||
@@ -41,20 +41,24 @@
|
|||||||
resolved "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-2.0.29.tgz#5002e14f75e2d71e564281df0431c8c1b4a2a36a"
|
resolved "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-2.0.29.tgz#5002e14f75e2d71e564281df0431c8c1b4a2a36a"
|
||||||
|
|
||||||
"@types/mocha@^2.2.31":
|
"@types/mocha@^2.2.31":
|
||||||
version "2.2.39"
|
version "2.2.40"
|
||||||
resolved "https://registry.yarnpkg.com/@types/mocha/-/mocha-2.2.39.tgz#f68d63db8b69c38e9558b4073525cf96c4f7a829"
|
resolved "https://registry.yarnpkg.com/@types/mocha/-/mocha-2.2.40.tgz#9811dd800ece544cd84b5b859917bf584a150c4c"
|
||||||
|
|
||||||
"@types/node@*", "@types/node@^7.0.5":
|
"@types/node@*", "@types/node@^7.0.8":
|
||||||
version "7.0.5"
|
version "7.0.10"
|
||||||
resolved "https://registry.yarnpkg.com/@types/node/-/node-7.0.5.tgz#96a0f0a618b7b606f1ec547403c00650210bfbb7"
|
resolved "https://registry.yarnpkg.com/@types/node/-/node-7.0.10.tgz#d860abb18c1b58b552c7c6cd8b2ba7adf6546fa3"
|
||||||
|
|
||||||
"@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":
|
||||||
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"
|
||||||
|
|
||||||
|
"@types/q@^1.x.x":
|
||||||
|
version "1.0.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/@types/q/-/q-1.0.0.tgz#57e5465d665b370d4217e69b344b20faa6b724f5"
|
||||||
|
|
||||||
"@types/request@0.x.x":
|
"@types/request@0.x.x":
|
||||||
version "0.0.40"
|
version "0.0.42"
|
||||||
resolved "https://registry.yarnpkg.com/@types/request/-/request-0.0.40.tgz#0a7b0e2843fa9073199ec572d38e1bbd235e5dc6"
|
resolved "https://registry.yarnpkg.com/@types/request/-/request-0.0.42.tgz#e47a53bf0b130464854fb693297746a0c0479c31"
|
||||||
dependencies:
|
dependencies:
|
||||||
"@types/form-data" "*"
|
"@types/form-data" "*"
|
||||||
"@types/node" "*"
|
"@types/node" "*"
|
||||||
@@ -65,6 +69,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"
|
||||||
@@ -84,14 +94,14 @@
|
|||||||
resolved "https://registry.yarnpkg.com/@types/socket.io-client/-/socket.io-client-1.4.29.tgz#f8743070cee93175e36e0b6a77a8af73e58ccb32"
|
resolved "https://registry.yarnpkg.com/@types/socket.io-client/-/socket.io-client-1.4.29.tgz#f8743070cee93175e36e0b6a77a8af73e58ccb32"
|
||||||
|
|
||||||
"@types/socket.io@^1.4.26":
|
"@types/socket.io@^1.4.26":
|
||||||
version "1.4.28"
|
version "1.4.29"
|
||||||
resolved "https://registry.yarnpkg.com/@types/socket.io/-/socket.io-1.4.28.tgz#52ff4a45ee7b58d275af13ced3947487ede07a1b"
|
resolved "https://registry.yarnpkg.com/@types/socket.io/-/socket.io-1.4.29.tgz#86a6b3a9ab78cf9a900ceef85b9b68b6bea86712"
|
||||||
dependencies:
|
dependencies:
|
||||||
"@types/node" "*"
|
"@types/node" "*"
|
||||||
|
|
||||||
"@types/through2@0.x.x":
|
"@types/through2@0.x.x":
|
||||||
version "0.4.0"
|
version "0.4.1"
|
||||||
resolved "https://registry.yarnpkg.com/@types/through2/-/through2-0.4.0.tgz#23b20d2ef1ef82d02e99cca9a099b4a7884f379a"
|
resolved "https://registry.yarnpkg.com/@types/through2/-/through2-0.4.1.tgz#0f008e174c1dc5f1cc7e00eb2d132b2cb67f7bd2"
|
||||||
dependencies:
|
dependencies:
|
||||||
"@types/node" "*"
|
"@types/node" "*"
|
||||||
|
|
||||||
@@ -101,18 +111,16 @@
|
|||||||
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"
|
||||||
dependencies:
|
dependencies:
|
||||||
"@types/node" "*"
|
"@types/node" "*"
|
||||||
|
|
||||||
|
"@types/which@^1.0.28":
|
||||||
|
version "1.0.28"
|
||||||
|
resolved "https://registry.yarnpkg.com/@types/which/-/which-1.0.28.tgz#016e387629b8817bed653fe32eab5d11279c8df6"
|
||||||
|
|
||||||
"@types/yargs@6.x.x":
|
"@types/yargs@6.x.x":
|
||||||
version "6.6.0"
|
version "6.6.0"
|
||||||
resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-6.6.0.tgz#91f8e2580a8083049f78311c059aa57d6949df6b"
|
resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-6.6.0.tgz#91f8e2580a8083049f78311c059aa57d6949df6b"
|
||||||
@@ -128,11 +136,18 @@ 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.5"
|
||||||
|
resolved "https://registry.yarnpkg.com/ajv/-/ajv-4.11.5.tgz#b6ee74657b993a01dce44b7944d56f485828d5bd"
|
||||||
|
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"
|
||||||
|
|
||||||
ansi-regex@2, ansi-regex@^2.0.0:
|
ansi-regex@^2.0.0, ansi-regex@^2.1.1:
|
||||||
version "2.1.1"
|
version "2.1.1"
|
||||||
resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df"
|
resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df"
|
||||||
|
|
||||||
@@ -180,14 +195,14 @@ asn1@~0.2.3:
|
|||||||
version "0.2.3"
|
version "0.2.3"
|
||||||
resolved "https://registry.yarnpkg.com/asn1/-/asn1-0.2.3.tgz#dac8787713c9966849fc8180777ebe9c1ddf3b86"
|
resolved "https://registry.yarnpkg.com/asn1/-/asn1-0.2.3.tgz#dac8787713c9966849fc8180777ebe9c1ddf3b86"
|
||||||
|
|
||||||
|
assert-plus@1.0.0, assert-plus@^1.0.0:
|
||||||
|
version "1.0.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-1.0.0.tgz#f12e0f3c5d77b0b1cdd9146942e4e96c1e4dd525"
|
||||||
|
|
||||||
assert-plus@^0.2.0:
|
assert-plus@^0.2.0:
|
||||||
version "0.2.0"
|
version "0.2.0"
|
||||||
resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-0.2.0.tgz#d74e1b87e7affc0db8aadb7021f3fe48101ab234"
|
resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-0.2.0.tgz#d74e1b87e7affc0db8aadb7021f3fe48101ab234"
|
||||||
|
|
||||||
assert-plus@^1.0.0:
|
|
||||||
version "1.0.0"
|
|
||||||
resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-1.0.0.tgz#f12e0f3c5d77b0b1cdd9146942e4e96c1e4dd525"
|
|
||||||
|
|
||||||
asynckit@^0.4.0:
|
asynckit@^0.4.0:
|
||||||
version "0.4.0"
|
version "0.4.0"
|
||||||
resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79"
|
resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79"
|
||||||
@@ -222,7 +237,7 @@ bcrypt-pbkdf@^1.0.0:
|
|||||||
dependencies:
|
dependencies:
|
||||||
tweetnacl "^0.14.3"
|
tweetnacl "^0.14.3"
|
||||||
|
|
||||||
beautycolor@^1.0.5:
|
beautycolor@^1.0.7:
|
||||||
version "1.0.7"
|
version "1.0.7"
|
||||||
resolved "https://registry.yarnpkg.com/beautycolor/-/beautycolor-1.0.7.tgz#a4715738ac4c8221371e9cbeb5a6cc6d11ecbf7c"
|
resolved "https://registry.yarnpkg.com/beautycolor/-/beautycolor-1.0.7.tgz#a4715738ac4c8221371e9cbeb5a6cc6d11ecbf7c"
|
||||||
dependencies:
|
dependencies:
|
||||||
@@ -275,17 +290,17 @@ beautylog@^5.0.23:
|
|||||||
smartenv "^1.2.5"
|
smartenv "^1.2.5"
|
||||||
typings-global "^1.0.13"
|
typings-global "^1.0.13"
|
||||||
|
|
||||||
beautylog@^6.0.0, beautylog@^6.1.1:
|
beautylog@^6.0.0, beautylog@^6.1.1, beautylog@^6.1.5:
|
||||||
version "6.1.1"
|
version "6.1.5"
|
||||||
resolved "https://registry.yarnpkg.com/beautylog/-/beautylog-6.1.1.tgz#2a83603ad7e2a0a09701ac63d7d3064a588dc779"
|
resolved "https://registry.yarnpkg.com/beautylog/-/beautylog-6.1.5.tgz#5d1eca8d32ca9ed49954a1622134b03ed904c44f"
|
||||||
dependencies:
|
dependencies:
|
||||||
"@types/lodash" "4.x.x"
|
"@types/lodash" "^4.14.55"
|
||||||
beautycolor "^1.0.5"
|
beautycolor "^1.0.7"
|
||||||
figlet "^1.2.0"
|
figlet "^1.2.0"
|
||||||
lodash "^4.17.4"
|
lodash "^4.17.4"
|
||||||
ora "^1.1.0"
|
ora "^1.1.0"
|
||||||
smartenv "^2.0.0"
|
smartenv "^2.0.0"
|
||||||
smartq "^1.0.4"
|
smartq "^1.1.1"
|
||||||
typings-global "^1.0.14"
|
typings-global "^1.0.14"
|
||||||
|
|
||||||
beeper@^1.0.0:
|
beeper@^1.0.0:
|
||||||
@@ -349,6 +364,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"
|
||||||
@@ -360,14 +379,14 @@ chalk@^1.0.0, chalk@^1.1.1:
|
|||||||
supports-color "^2.0.0"
|
supports-color "^2.0.0"
|
||||||
|
|
||||||
cli-color@^1.1.0:
|
cli-color@^1.1.0:
|
||||||
version "1.1.0"
|
version "1.2.0"
|
||||||
resolved "https://registry.yarnpkg.com/cli-color/-/cli-color-1.1.0.tgz#de188cdc4929d83b67aea04110fbed40fdbf6775"
|
resolved "https://registry.yarnpkg.com/cli-color/-/cli-color-1.2.0.tgz#3a5ae74fd76b6267af666e69e2afbbd01def34d1"
|
||||||
dependencies:
|
dependencies:
|
||||||
ansi-regex "2"
|
ansi-regex "^2.1.1"
|
||||||
d "^0.1.1"
|
d "1"
|
||||||
es5-ext "^0.10.8"
|
es5-ext "^0.10.12"
|
||||||
es6-iterator "2"
|
es6-iterator "2"
|
||||||
memoizee "^0.3.9"
|
memoizee "^0.4.3"
|
||||||
timers-ext "0.1"
|
timers-ext "0.1"
|
||||||
|
|
||||||
cli-cursor@^1.0.2:
|
cli-cursor@^1.0.2:
|
||||||
@@ -439,6 +458,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"
|
||||||
@@ -493,11 +516,11 @@ cryptiles@2.x.x:
|
|||||||
dependencies:
|
dependencies:
|
||||||
boom "2.x.x"
|
boom "2.x.x"
|
||||||
|
|
||||||
d@^0.1.1, d@~0.1.1:
|
d@1:
|
||||||
version "0.1.1"
|
version "1.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/d/-/d-0.1.1.tgz#da184c535d18d8ee7ba2aa229b914009fae11309"
|
resolved "https://registry.yarnpkg.com/d/-/d-1.0.0.tgz#754bb5bfe55451da69a58b94d45f4c5b0462d58f"
|
||||||
dependencies:
|
dependencies:
|
||||||
es5-ext "~0.10.2"
|
es5-ext "^0.10.9"
|
||||||
|
|
||||||
dashdash@^1.12.0:
|
dashdash@^1.12.0:
|
||||||
version "1.14.1"
|
version "1.14.1"
|
||||||
@@ -603,56 +626,41 @@ engine.io@1.8.3:
|
|||||||
ws "1.1.2"
|
ws "1.1.2"
|
||||||
|
|
||||||
error-ex@^1.2.0:
|
error-ex@^1.2.0:
|
||||||
version "1.3.0"
|
version "1.3.1"
|
||||||
resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.0.tgz#e67b43f3e82c96ea3a584ffee0b9fc3325d802d9"
|
resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.1.tgz#f855a86ce61adc4e8621c3cda21e7a7612c3a8dc"
|
||||||
dependencies:
|
dependencies:
|
||||||
is-arrayish "^0.2.1"
|
is-arrayish "^0.2.1"
|
||||||
|
|
||||||
es5-ext@^0.10.7, es5-ext@^0.10.8, es5-ext@~0.10.11, es5-ext@~0.10.2, es5-ext@~0.10.5, es5-ext@~0.10.6, es5-ext@~0.10.7:
|
es5-ext@^0.10.12, es5-ext@^0.10.13, es5-ext@^0.10.14, es5-ext@^0.10.9, es5-ext@~0.10.14, es5-ext@~0.10.2:
|
||||||
version "0.10.12"
|
version "0.10.15"
|
||||||
resolved "https://registry.yarnpkg.com/es5-ext/-/es5-ext-0.10.12.tgz#aa84641d4db76b62abba5e45fd805ecbab140047"
|
resolved "https://registry.yarnpkg.com/es5-ext/-/es5-ext-0.10.15.tgz#c330a5934c1ee21284a7c081a86e5fd937c91ea6"
|
||||||
dependencies:
|
dependencies:
|
||||||
es6-iterator "2"
|
es6-iterator "2"
|
||||||
es6-symbol "~3.1"
|
es6-symbol "~3.1"
|
||||||
|
|
||||||
es6-iterator@2:
|
es6-iterator@2, es6-iterator@^2.0.1:
|
||||||
version "2.0.0"
|
|
||||||
resolved "https://registry.yarnpkg.com/es6-iterator/-/es6-iterator-2.0.0.tgz#bd968567d61635e33c0b80727613c9cb4b096bac"
|
|
||||||
dependencies:
|
|
||||||
d "^0.1.1"
|
|
||||||
es5-ext "^0.10.7"
|
|
||||||
es6-symbol "3"
|
|
||||||
|
|
||||||
es6-iterator@~0.1.3:
|
|
||||||
version "0.1.3"
|
|
||||||
resolved "https://registry.yarnpkg.com/es6-iterator/-/es6-iterator-0.1.3.tgz#d6f58b8c4fc413c249b4baa19768f8e4d7c8944e"
|
|
||||||
dependencies:
|
|
||||||
d "~0.1.1"
|
|
||||||
es5-ext "~0.10.5"
|
|
||||||
es6-symbol "~2.0.1"
|
|
||||||
|
|
||||||
es6-symbol@3, es6-symbol@~3.1:
|
|
||||||
version "3.1.0"
|
|
||||||
resolved "https://registry.yarnpkg.com/es6-symbol/-/es6-symbol-3.1.0.tgz#94481c655e7a7cad82eba832d97d5433496d7ffa"
|
|
||||||
dependencies:
|
|
||||||
d "~0.1.1"
|
|
||||||
es5-ext "~0.10.11"
|
|
||||||
|
|
||||||
es6-symbol@~2.0.1:
|
|
||||||
version "2.0.1"
|
version "2.0.1"
|
||||||
resolved "https://registry.yarnpkg.com/es6-symbol/-/es6-symbol-2.0.1.tgz#761b5c67cfd4f1d18afb234f691d678682cb3bf3"
|
resolved "https://registry.yarnpkg.com/es6-iterator/-/es6-iterator-2.0.1.tgz#8e319c9f0453bf575d374940a655920e59ca5512"
|
||||||
dependencies:
|
dependencies:
|
||||||
d "~0.1.1"
|
d "1"
|
||||||
es5-ext "~0.10.5"
|
es5-ext "^0.10.14"
|
||||||
|
es6-symbol "^3.1"
|
||||||
|
|
||||||
es6-weak-map@~0.1.4:
|
es6-symbol@^3.1, es6-symbol@^3.1.1, es6-symbol@~3.1:
|
||||||
version "0.1.4"
|
version "3.1.1"
|
||||||
resolved "https://registry.yarnpkg.com/es6-weak-map/-/es6-weak-map-0.1.4.tgz#706cef9e99aa236ba7766c239c8b9e286ea7d228"
|
resolved "https://registry.yarnpkg.com/es6-symbol/-/es6-symbol-3.1.1.tgz#bf00ef4fdab6ba1b46ecb7b629b4c7ed5715cc77"
|
||||||
dependencies:
|
dependencies:
|
||||||
d "~0.1.1"
|
d "1"
|
||||||
es5-ext "~0.10.6"
|
es5-ext "~0.10.14"
|
||||||
es6-iterator "~0.1.3"
|
|
||||||
es6-symbol "~2.0.1"
|
es6-weak-map@^2.0.1:
|
||||||
|
version "2.0.2"
|
||||||
|
resolved "https://registry.yarnpkg.com/es6-weak-map/-/es6-weak-map-2.0.2.tgz#5e3ab32251ffd1538a1f8e5ffa1357772f92d96f"
|
||||||
|
dependencies:
|
||||||
|
d "1"
|
||||||
|
es5-ext "^0.10.14"
|
||||||
|
es6-iterator "^2.0.1"
|
||||||
|
es6-symbol "^3.1.1"
|
||||||
|
|
||||||
escape-string-regexp@^1.0.2:
|
escape-string-regexp@^1.0.2:
|
||||||
version "1.0.5"
|
version "1.0.5"
|
||||||
@@ -662,12 +670,12 @@ esprima@^3.1.1:
|
|||||||
version "3.1.3"
|
version "3.1.3"
|
||||||
resolved "https://registry.yarnpkg.com/esprima/-/esprima-3.1.3.tgz#fdca51cee6133895e3c88d535ce49dbff62a4633"
|
resolved "https://registry.yarnpkg.com/esprima/-/esprima-3.1.3.tgz#fdca51cee6133895e3c88d535ce49dbff62a4633"
|
||||||
|
|
||||||
event-emitter@~0.3.4:
|
event-emitter@^0.3.4:
|
||||||
version "0.3.4"
|
version "0.3.5"
|
||||||
resolved "https://registry.yarnpkg.com/event-emitter/-/event-emitter-0.3.4.tgz#8d63ddfb4cfe1fae3b32ca265c4c720222080bb5"
|
resolved "https://registry.yarnpkg.com/event-emitter/-/event-emitter-0.3.5.tgz#df8c69eef1647923c7157b9ce83840610b02cc39"
|
||||||
dependencies:
|
dependencies:
|
||||||
d "~0.1.1"
|
d "1"
|
||||||
es5-ext "~0.10.7"
|
es5-ext "~0.10.14"
|
||||||
|
|
||||||
exit-hook@^1.0.0:
|
exit-hook@^1.0.0:
|
||||||
version "1.1.1"
|
version "1.1.1"
|
||||||
@@ -776,15 +784,15 @@ flagged-respawn@^0.3.2:
|
|||||||
version "0.3.2"
|
version "0.3.2"
|
||||||
resolved "https://registry.yarnpkg.com/flagged-respawn/-/flagged-respawn-0.3.2.tgz#ff191eddcd7088a675b2610fffc976be9b8074b5"
|
resolved "https://registry.yarnpkg.com/flagged-respawn/-/flagged-respawn-0.3.2.tgz#ff191eddcd7088a675b2610fffc976be9b8074b5"
|
||||||
|
|
||||||
for-in@^0.1.5:
|
for-in@^1.0.1:
|
||||||
version "0.1.6"
|
version "1.0.2"
|
||||||
resolved "https://registry.yarnpkg.com/for-in/-/for-in-0.1.6.tgz#c9f96e89bfad18a545af5ec3ed352a1d9e5b4dc8"
|
resolved "https://registry.yarnpkg.com/for-in/-/for-in-1.0.2.tgz#81068d295a8142ec0ac726c6e2200c30fb6d5e80"
|
||||||
|
|
||||||
for-own@^0.1.4:
|
for-own@^0.1.4:
|
||||||
version "0.1.4"
|
version "0.1.5"
|
||||||
resolved "https://registry.yarnpkg.com/for-own/-/for-own-0.1.4.tgz#0149b41a39088c7515f51ebe1c1386d45f935072"
|
resolved "https://registry.yarnpkg.com/for-own/-/for-own-0.1.5.tgz#5265c681a4f294dabbf17c9509b6763aa84510ce"
|
||||||
dependencies:
|
dependencies:
|
||||||
for-in "^0.1.5"
|
for-in "^1.0.1"
|
||||||
|
|
||||||
forever-agent@~0.6.1:
|
forever-agent@~0.6.1:
|
||||||
version "0.6.1"
|
version "0.6.1"
|
||||||
@@ -810,16 +818,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"
|
||||||
@@ -829,8 +827,8 @@ fs-extra@^1.0.0:
|
|||||||
klaw "^1.0.0"
|
klaw "^1.0.0"
|
||||||
|
|
||||||
fs-extra@^2.0.0:
|
fs-extra@^2.0.0:
|
||||||
version "2.0.0"
|
version "2.1.2"
|
||||||
resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-2.0.0.tgz#337352bded4a0b714f3eb84de8cea765e9d37600"
|
resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-2.1.2.tgz#046c70163cef9aad46b0e4a7fa467fb22d71de35"
|
||||||
dependencies:
|
dependencies:
|
||||||
graceful-fs "^4.1.2"
|
graceful-fs "^4.1.2"
|
||||||
jsonfile "^2.1.0"
|
jsonfile "^2.1.0"
|
||||||
@@ -910,7 +908,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 +1032,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 +1045,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"
|
||||||
@@ -1091,8 +1100,8 @@ homedir-polyfill@^1.0.0:
|
|||||||
parse-passwd "^1.0.0"
|
parse-passwd "^1.0.0"
|
||||||
|
|
||||||
hosted-git-info@^2.1.4:
|
hosted-git-info@^2.1.4:
|
||||||
version "2.2.0"
|
version "2.4.1"
|
||||||
resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.2.0.tgz#7a0d097863d886c0fabbdcd37bf1758d8becf8a5"
|
resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.4.1.tgz#4b0445e41c004a8bd1337773a4ff790ca40318c8"
|
||||||
|
|
||||||
http-signature@~1.1.0:
|
http-signature@~1.1.0:
|
||||||
version "1.1.1"
|
version "1.1.1"
|
||||||
@@ -1145,8 +1154,8 @@ is-arrayish@^0.2.1:
|
|||||||
resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d"
|
resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d"
|
||||||
|
|
||||||
is-buffer@^1.0.2:
|
is-buffer@^1.0.2:
|
||||||
version "1.1.4"
|
version "1.1.5"
|
||||||
resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.4.tgz#cfc86ccd5dc5a52fa80489111c6920c457e2d98b"
|
resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.5.tgz#1f3b26ef613b214b88cbca23cc6c01d87961eecc"
|
||||||
|
|
||||||
is-builtin-module@^1.0.0:
|
is-builtin-module@^1.0.0:
|
||||||
version "1.0.0"
|
version "1.0.0"
|
||||||
@@ -1185,8 +1194,8 @@ is-glob@^2.0.0, is-glob@^2.0.1:
|
|||||||
is-extglob "^1.0.0"
|
is-extglob "^1.0.0"
|
||||||
|
|
||||||
is-my-json-valid@^2.12.4:
|
is-my-json-valid@^2.12.4:
|
||||||
version "2.15.0"
|
version "2.16.0"
|
||||||
resolved "https://registry.yarnpkg.com/is-my-json-valid/-/is-my-json-valid-2.15.0.tgz#936edda3ca3c211fd98f3b2d3e08da43f7b2915b"
|
resolved "https://registry.yarnpkg.com/is-my-json-valid/-/is-my-json-valid-2.16.0.tgz#f079dd9bfdae65ee2038aae8acbc86ab109e3693"
|
||||||
dependencies:
|
dependencies:
|
||||||
generate-function "^2.0.0"
|
generate-function "^2.0.0"
|
||||||
generate-object-property "^1.1.0"
|
generate-object-property "^1.1.0"
|
||||||
@@ -1207,7 +1216,7 @@ is-primitive@^2.0.0:
|
|||||||
version "2.0.0"
|
version "2.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/is-primitive/-/is-primitive-2.0.0.tgz#207bab91638499c07b2adf240a41a87210034575"
|
resolved "https://registry.yarnpkg.com/is-primitive/-/is-primitive-2.0.0.tgz#207bab91638499c07b2adf240a41a87210034575"
|
||||||
|
|
||||||
is-promise@^2.1.0:
|
is-promise@^2.1, is-promise@^2.1.0:
|
||||||
version "2.1.0"
|
version "2.1.0"
|
||||||
resolved "https://registry.yarnpkg.com/is-promise/-/is-promise-2.1.0.tgz#79a2a9ece7f096e80f36d2b2f3bc16c1ff4bf3fa"
|
resolved "https://registry.yarnpkg.com/is-promise/-/is-promise-2.1.0.tgz#79a2a9ece7f096e80f36d2b2f3bc16c1ff4bf3fa"
|
||||||
|
|
||||||
@@ -1251,9 +1260,9 @@ isarray@1.0.0, isarray@~1.0.0:
|
|||||||
version "1.0.0"
|
version "1.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11"
|
resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11"
|
||||||
|
|
||||||
isexe@^1.1.1:
|
isexe@^2.0.0:
|
||||||
version "1.1.2"
|
version "2.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/isexe/-/isexe-1.1.2.tgz#36f3e22e60750920f5e7241a476a8c6a42275ad0"
|
resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10"
|
||||||
|
|
||||||
isobject@^2.0.0:
|
isobject@^2.0.0:
|
||||||
version "2.1.0"
|
version "2.1.0"
|
||||||
@@ -1275,9 +1284,9 @@ 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, js-yaml@^3.8.2:
|
||||||
version "3.8.1"
|
version "3.8.2"
|
||||||
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.2.tgz#02d3e2c0f6beab20248d412c352203827d786721"
|
||||||
dependencies:
|
dependencies:
|
||||||
argparse "^1.0.7"
|
argparse "^1.0.7"
|
||||||
esprima "^3.1.1"
|
esprima "^3.1.1"
|
||||||
@@ -1290,6 +1299,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,14 +1319,19 @@ 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"
|
||||||
|
|
||||||
jsprim@^1.2.2:
|
jsprim@^1.2.2:
|
||||||
version "1.3.1"
|
version "1.4.0"
|
||||||
resolved "https://registry.yarnpkg.com/jsprim/-/jsprim-1.3.1.tgz#2a7256f70412a29ee3670aaca625994c4dcff252"
|
resolved "https://registry.yarnpkg.com/jsprim/-/jsprim-1.4.0.tgz#a3b87e40298d8c380552d8cc7628a0bb95a22918"
|
||||||
dependencies:
|
dependencies:
|
||||||
|
assert-plus "1.0.0"
|
||||||
extsprintf "1.0.2"
|
extsprintf "1.0.2"
|
||||||
json-schema "0.2.3"
|
json-schema "0.2.3"
|
||||||
verror "1.3.6"
|
verror "1.3.6"
|
||||||
@@ -1518,16 +1538,17 @@ map-cache@^0.2.0:
|
|||||||
version "0.2.2"
|
version "0.2.2"
|
||||||
resolved "https://registry.yarnpkg.com/map-cache/-/map-cache-0.2.2.tgz#c32abd0bd6525d9b051645bb4f26ac5dc98a0dbf"
|
resolved "https://registry.yarnpkg.com/map-cache/-/map-cache-0.2.2.tgz#c32abd0bd6525d9b051645bb4f26ac5dc98a0dbf"
|
||||||
|
|
||||||
memoizee@^0.3.9:
|
memoizee@^0.4.3:
|
||||||
version "0.3.10"
|
version "0.4.4"
|
||||||
resolved "https://registry.yarnpkg.com/memoizee/-/memoizee-0.3.10.tgz#4eca0d8aed39ec9d017f4c5c2f2f6432f42e5c8f"
|
resolved "https://registry.yarnpkg.com/memoizee/-/memoizee-0.4.4.tgz#ecf4b791a09cd11c970203f80682534730fad78f"
|
||||||
dependencies:
|
dependencies:
|
||||||
d "~0.1.1"
|
d "1"
|
||||||
es5-ext "~0.10.11"
|
es5-ext "^0.10.13"
|
||||||
es6-weak-map "~0.1.4"
|
es6-weak-map "^2.0.1"
|
||||||
event-emitter "~0.3.4"
|
event-emitter "^0.3.4"
|
||||||
|
is-promise "^2.1"
|
||||||
lru-queue "0.1"
|
lru-queue "0.1"
|
||||||
next-tick "~0.2.2"
|
next-tick "1"
|
||||||
timers-ext "0.1"
|
timers-ext "0.1"
|
||||||
|
|
||||||
micromatch@^2.3.7:
|
micromatch@^2.3.7:
|
||||||
@@ -1548,15 +1569,15 @@ micromatch@^2.3.7:
|
|||||||
parse-glob "^3.0.4"
|
parse-glob "^3.0.4"
|
||||||
regex-cache "^0.4.2"
|
regex-cache "^0.4.2"
|
||||||
|
|
||||||
mime-db@~1.26.0:
|
mime-db@~1.27.0:
|
||||||
version "1.26.0"
|
version "1.27.0"
|
||||||
resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.26.0.tgz#eaffcd0e4fc6935cf8134da246e2e6c35305adff"
|
resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.27.0.tgz#820f572296bbd20ec25ed55e5b5de869e5436eb1"
|
||||||
|
|
||||||
mime-types@^2.1.11, mime-types@^2.1.12, mime-types@~2.1.11, mime-types@~2.1.7:
|
mime-types@^2.1.11, mime-types@^2.1.12, mime-types@~2.1.11, mime-types@~2.1.7:
|
||||||
version "2.1.14"
|
version "2.1.15"
|
||||||
resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.14.tgz#f7ef7d97583fcaf3b7d282b6f8b5679dab1e94ee"
|
resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.15.tgz#a4ebf5064094569237b8cf70046776d09fc92aed"
|
||||||
dependencies:
|
dependencies:
|
||||||
mime-db "~1.26.0"
|
mime-db "~1.27.0"
|
||||||
|
|
||||||
mimic-fn@^1.0.0:
|
mimic-fn@^1.0.0:
|
||||||
version "1.1.0"
|
version "1.1.0"
|
||||||
@@ -1617,13 +1638,13 @@ negotiator@0.6.1:
|
|||||||
version "0.6.1"
|
version "0.6.1"
|
||||||
resolved "https://registry.yarnpkg.com/negotiator/-/negotiator-0.6.1.tgz#2b327184e8992101177b28563fb5e7102acd0ca9"
|
resolved "https://registry.yarnpkg.com/negotiator/-/negotiator-0.6.1.tgz#2b327184e8992101177b28563fb5e7102acd0ca9"
|
||||||
|
|
||||||
next-tick@~0.2.2:
|
next-tick@1:
|
||||||
version "0.2.2"
|
version "1.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/next-tick/-/next-tick-0.2.2.tgz#75da4a927ee5887e39065880065b7336413b310d"
|
resolved "https://registry.yarnpkg.com/next-tick/-/next-tick-1.0.0.tgz#ca86d1fe8828169b0120208e3dc8424b9db8342c"
|
||||||
|
|
||||||
node-uuid@~1.4.7:
|
node-uuid@~1.4.7:
|
||||||
version "1.4.7"
|
version "1.4.8"
|
||||||
resolved "https://registry.yarnpkg.com/node-uuid/-/node-uuid-1.4.7.tgz#6da5a17668c4b3dd59623bda11cf7fa4c1f60a6f"
|
resolved "https://registry.yarnpkg.com/node-uuid/-/node-uuid-1.4.8.tgz#b040eb0923968afabf8d32fb1f17f1167fdab907"
|
||||||
|
|
||||||
nodehash@^1.0.4:
|
nodehash@^1.0.4:
|
||||||
version "1.0.4"
|
version "1.0.4"
|
||||||
@@ -1636,8 +1657,8 @@ nodehash@^1.0.4:
|
|||||||
typings-global "^1.0.6"
|
typings-global "^1.0.6"
|
||||||
|
|
||||||
normalize-package-data@^2.3.2:
|
normalize-package-data@^2.3.2:
|
||||||
version "2.3.5"
|
version "2.3.6"
|
||||||
resolved "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-2.3.5.tgz#8d924f142960e1777e7ffe170543631cc7cb02df"
|
resolved "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-2.3.6.tgz#498fa420c96401f787402ba21e600def9f981fff"
|
||||||
dependencies:
|
dependencies:
|
||||||
hosted-git-info "^2.1.4"
|
hosted-git-info "^2.1.4"
|
||||||
is-builtin-module "^1.0.0"
|
is-builtin-module "^1.0.0"
|
||||||
@@ -1649,14 +1670,15 @@ normalize-path@^2.0.1:
|
|||||||
resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-2.0.1.tgz#47886ac1662760d4261b7d979d241709d3ce3f7a"
|
resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-2.0.1.tgz#47886ac1662760d4261b7d979d241709d3ce3f7a"
|
||||||
|
|
||||||
npmextra@^2.0.3:
|
npmextra@^2.0.3:
|
||||||
version "2.0.3"
|
version "2.0.5"
|
||||||
resolved "https://registry.yarnpkg.com/npmextra/-/npmextra-2.0.3.tgz#03ca33e82e7ebf9e9a215173f5a737b9d4c51254"
|
resolved "https://registry.yarnpkg.com/npmextra/-/npmextra-2.0.5.tgz#6f84f8604578dbd0fe678ea5c0413173979aa3e0"
|
||||||
dependencies:
|
dependencies:
|
||||||
"@types/q" "^0.x.x"
|
"@types/q" "^1.x.x"
|
||||||
beautylog "^5.0.23"
|
beautylog "^6.1.5"
|
||||||
lodash "^4.16.1"
|
lodash "^4.17.4"
|
||||||
q "^1.4.1"
|
q "^1.4.1"
|
||||||
smartfile "^4.0.21"
|
smartfile "^4.1.9"
|
||||||
|
smartq "^1.1.1"
|
||||||
typings-global "^1.0.14"
|
typings-global "^1.0.14"
|
||||||
|
|
||||||
npmts-g@^6.0.0:
|
npmts-g@^6.0.0:
|
||||||
@@ -1716,8 +1738,8 @@ onetime@^1.0.0:
|
|||||||
resolved "https://registry.yarnpkg.com/onetime/-/onetime-1.1.0.tgz#a1f7838f8314c516f05ecefcbc4ccfe04b4ed789"
|
resolved "https://registry.yarnpkg.com/onetime/-/onetime-1.1.0.tgz#a1f7838f8314c516f05ecefcbc4ccfe04b4ed789"
|
||||||
|
|
||||||
onetime@^2.0.0:
|
onetime@^2.0.0:
|
||||||
version "2.0.0"
|
version "2.0.1"
|
||||||
resolved "https://registry.yarnpkg.com/onetime/-/onetime-2.0.0.tgz#52aa8110e52fc5126ffc667bd8ec21c2ed209ce6"
|
resolved "https://registry.yarnpkg.com/onetime/-/onetime-2.0.1.tgz#067428230fd67443b2794b22bba528b6867962d4"
|
||||||
dependencies:
|
dependencies:
|
||||||
mimic-fn "^1.0.0"
|
mimic-fn "^1.0.0"
|
||||||
|
|
||||||
@@ -1829,6 +1851,10 @@ path-is-absolute@^1.0.0:
|
|||||||
version "1.0.1"
|
version "1.0.1"
|
||||||
resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f"
|
resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f"
|
||||||
|
|
||||||
|
path-parse@^1.0.5:
|
||||||
|
version "1.0.5"
|
||||||
|
resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.5.tgz#3c1adf871ea9cd6c9431b6ea2bd74a0ff055c4c1"
|
||||||
|
|
||||||
path-root-regex@^0.1.0:
|
path-root-regex@^0.1.0:
|
||||||
version "0.1.2"
|
version "0.1.2"
|
||||||
resolved "https://registry.yarnpkg.com/path-root-regex/-/path-root-regex-0.1.2.tgz#bfccdc8df5b12dc52c8b43ec38d18d72c04ba96d"
|
resolved "https://registry.yarnpkg.com/path-root-regex/-/path-root-regex-0.1.2.tgz#bfccdc8df5b12dc52c8b43ec38d18d72c04ba96d"
|
||||||
@@ -1847,6 +1873,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"
|
||||||
@@ -1873,15 +1903,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:
|
||||||
@@ -1889,16 +1919,16 @@ punycode@^1.4.1:
|
|||||||
resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.4.1.tgz#c0d5a63b2718800ad8e1eb0fa5269c84dd41845e"
|
resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.4.1.tgz#c0d5a63b2718800ad8e1eb0fa5269c84dd41845e"
|
||||||
|
|
||||||
q@^1.4.1:
|
q@^1.4.1:
|
||||||
version "1.4.1"
|
version "1.5.0"
|
||||||
resolved "https://registry.yarnpkg.com/q/-/q-1.4.1.tgz#55705bcd93c5f3673530c2c2cbc0c2b3addc286e"
|
resolved "https://registry.yarnpkg.com/q/-/q-1.5.0.tgz#dd01bac9d06d30e6f219aecb8253ee9ebdc308f1"
|
||||||
|
|
||||||
qs@~6.2.0:
|
qs@~6.2.0:
|
||||||
version "6.2.2"
|
version "6.2.3"
|
||||||
resolved "https://registry.yarnpkg.com/qs/-/qs-6.2.2.tgz#d506a5ad5b2cae1fd35c4f54ec182e267e3ef586"
|
resolved "https://registry.yarnpkg.com/qs/-/qs-6.2.3.tgz#1cfcb25c10a9b2b483053ff39f5dfc9233908cfe"
|
||||||
|
|
||||||
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"
|
||||||
@@ -1932,8 +1962,8 @@ read-pkg@^1.0.0:
|
|||||||
string_decoder "~0.10.x"
|
string_decoder "~0.10.x"
|
||||||
|
|
||||||
readable-stream@^2.0.2, readable-stream@^2.1.5:
|
readable-stream@^2.0.2, readable-stream@^2.1.5:
|
||||||
version "2.2.2"
|
version "2.2.6"
|
||||||
resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.2.2.tgz#a9e6fec3c7dda85f8bb1b3ba7028604556fc825e"
|
resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.2.6.tgz#8b43aed76e71483938d12a8d46c6cf1a00b1f816"
|
||||||
dependencies:
|
dependencies:
|
||||||
buffer-shims "^1.0.0"
|
buffer-shims "^1.0.0"
|
||||||
core-util-is "~1.0.0"
|
core-util-is "~1.0.0"
|
||||||
@@ -2022,18 +2052,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"
|
||||||
@@ -2041,10 +2071,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:
|
||||||
@@ -2067,8 +2099,10 @@ resolve-dir@^0.1.0:
|
|||||||
global-modules "^0.2.3"
|
global-modules "^0.2.3"
|
||||||
|
|
||||||
resolve@^1.1.6, resolve@^1.1.7:
|
resolve@^1.1.6, resolve@^1.1.7:
|
||||||
version "1.2.0"
|
version "1.3.2"
|
||||||
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.2.0.tgz#9589c3f2f6149d1417a40becc1663db6ec6bc26c"
|
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.3.2.tgz#1f0442c9e0cbb8136e87b9305f932f46c7f28235"
|
||||||
|
dependencies:
|
||||||
|
path-parse "^1.0.5"
|
||||||
|
|
||||||
restore-cursor@^1.0.1:
|
restore-cursor@^1.0.1:
|
||||||
version "1.0.1"
|
version "1.0.1"
|
||||||
@@ -2084,18 +2118,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.2.0"
|
||||||
resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-5.1.1.tgz#fc48922965bc6c5efbcc0fe46e90a3af64137a7b"
|
resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-5.2.0.tgz#db537de8767c05fa73721587a29e0085307d318b"
|
||||||
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"
|
||||||
@@ -2112,17 +2144,17 @@ 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, shelljs@^0.7.6, shelljs@^0.7.7:
|
||||||
version "0.7.6"
|
version "0.7.7"
|
||||||
resolved "https://registry.yarnpkg.com/shelljs/-/shelljs-0.7.6.tgz#379cccfb56b91c8601e4793356eb5382924de9ad"
|
resolved "https://registry.yarnpkg.com/shelljs/-/shelljs-0.7.7.tgz#b2f5c77ef97148f4b4f6e22682e10bba8667cff1"
|
||||||
dependencies:
|
dependencies:
|
||||||
glob "^7.0.0"
|
glob "^7.0.0"
|
||||||
interpret "^1.0.0"
|
interpret "^1.0.0"
|
||||||
rechoir "^0.6.2"
|
rechoir "^0.6.2"
|
||||||
|
|
||||||
shortid@^2.2.6:
|
shortid@^2.2.6:
|
||||||
version "2.2.6"
|
version "2.2.8"
|
||||||
resolved "https://registry.yarnpkg.com/shortid/-/shortid-2.2.6.tgz#3abbefc6c51074cf2c1f1e72f6216a1b45876d72"
|
resolved "https://registry.yarnpkg.com/shortid/-/shortid-2.2.8.tgz#033b117d6a2e975804f6f0969dbe7d3d0b355131"
|
||||||
|
|
||||||
should-equal@^1.0.0:
|
should-equal@^1.0.0:
|
||||||
version "1.0.1"
|
version "1.0.1"
|
||||||
@@ -2152,9 +2184,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"
|
||||||
@@ -2184,6 +2216,12 @@ smartcli@^2.0.1:
|
|||||||
typings-global "^1.0.14"
|
typings-global "^1.0.14"
|
||||||
yargs "^6.4.0"
|
yargs "^6.4.0"
|
||||||
|
|
||||||
|
smartdelay@^1.0.1:
|
||||||
|
version "1.0.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/smartdelay/-/smartdelay-1.0.1.tgz#687f8bcc09d7c62c9c5a8a1771c1aba3aff54156"
|
||||||
|
dependencies:
|
||||||
|
typings-global "^1.0.14"
|
||||||
|
|
||||||
smartenv@^1.2.2, smartenv@^1.2.5:
|
smartenv@^1.2.2, smartenv@^1.2.5:
|
||||||
version "1.2.5"
|
version "1.2.5"
|
||||||
resolved "https://registry.yarnpkg.com/smartenv/-/smartenv-1.2.5.tgz#5e50343ec4653953ef24929fc548cd74ea53205c"
|
resolved "https://registry.yarnpkg.com/smartenv/-/smartenv-1.2.5.tgz#5e50343ec4653953ef24929fc548cd74ea53205c"
|
||||||
@@ -2201,26 +2239,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:
|
||||||
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:
|
||||||
@@ -2237,6 +2256,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.0, smartfile@^4.1.7, smartfile@^4.1.9:
|
||||||
|
version "4.1.9"
|
||||||
|
resolved "https://registry.yarnpkg.com/smartfile/-/smartfile-4.1.9.tgz#d789032193a45493607b8b37ff5811942f832008"
|
||||||
|
dependencies:
|
||||||
|
"@types/fs-extra" "0.x.x"
|
||||||
|
"@types/vinyl" "^2.0.0"
|
||||||
|
fs-extra "^2.0.0"
|
||||||
|
glob "^7.1.1"
|
||||||
|
js-yaml "^3.8.2"
|
||||||
|
require-reload "0.2.2"
|
||||||
|
smartpath "^3.2.8"
|
||||||
|
smartq "^1.1.1"
|
||||||
|
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"
|
||||||
@@ -2247,7 +2283,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:
|
||||||
@@ -2268,6 +2304,16 @@ 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.6:
|
||||||
|
version "1.0.6"
|
||||||
|
resolved "https://registry.yarnpkg.com/smartshell/-/smartshell-1.0.6.tgz#27b1c79029784abe72ac7e91fe698b7ebecc6629"
|
||||||
|
dependencies:
|
||||||
|
"@types/shelljs" "^0.6.0"
|
||||||
|
"@types/which" "^1.0.28"
|
||||||
|
shelljs "^0.7.6"
|
||||||
|
smartq "^1.1.0"
|
||||||
|
which "^1.2.12"
|
||||||
|
|
||||||
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"
|
||||||
@@ -2304,14 +2350,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:
|
||||||
@@ -2391,8 +2430,8 @@ sprintf-js@~1.0.2:
|
|||||||
resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c"
|
resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c"
|
||||||
|
|
||||||
sshpk@^1.7.0:
|
sshpk@^1.7.0:
|
||||||
version "1.10.2"
|
version "1.11.0"
|
||||||
resolved "https://registry.yarnpkg.com/sshpk/-/sshpk-1.10.2.tgz#d5a804ce22695515638e798dbe23273de070a5fa"
|
resolved "https://registry.yarnpkg.com/sshpk/-/sshpk-1.11.0.tgz#2d8d5ebb4a6fab28ffba37fa62a90f4a3ea59d77"
|
||||||
dependencies:
|
dependencies:
|
||||||
asn1 "~0.2.3"
|
asn1 "~0.2.3"
|
||||||
assert-plus "^1.0.0"
|
assert-plus "^1.0.0"
|
||||||
@@ -2501,11 +2540,11 @@ time-stamp@^1.0.0:
|
|||||||
resolved "https://registry.yarnpkg.com/time-stamp/-/time-stamp-1.0.1.tgz#9f4bd23559c9365966f3302dbba2b07c6b99b151"
|
resolved "https://registry.yarnpkg.com/time-stamp/-/time-stamp-1.0.1.tgz#9f4bd23559c9365966f3302dbba2b07c6b99b151"
|
||||||
|
|
||||||
timers-ext@0.1:
|
timers-ext@0.1:
|
||||||
version "0.1.0"
|
version "0.1.1"
|
||||||
resolved "https://registry.yarnpkg.com/timers-ext/-/timers-ext-0.1.0.tgz#00345a2ca93089d1251322054389d263e27b77e2"
|
resolved "https://registry.yarnpkg.com/timers-ext/-/timers-ext-0.1.1.tgz#d6422f1ebd67772355f46c93f25e3933992c8b08"
|
||||||
dependencies:
|
dependencies:
|
||||||
es5-ext "~0.10.2"
|
es5-ext "~0.10.14"
|
||||||
next-tick "~0.2.2"
|
next-tick "1"
|
||||||
|
|
||||||
timespan@2.3.x:
|
timespan@2.3.x:
|
||||||
version "2.3.0"
|
version "2.3.0"
|
||||||
@@ -2521,6 +2560,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"
|
||||||
@@ -2590,17 +2635,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"
|
||||||
@@ -2639,14 +2673,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"
|
||||||
@@ -2664,10 +2690,10 @@ which-module@^1.0.0:
|
|||||||
resolved "https://registry.yarnpkg.com/which-module/-/which-module-1.0.0.tgz#bba63ca861948994ff307736089e3b96026c2a4f"
|
resolved "https://registry.yarnpkg.com/which-module/-/which-module-1.0.0.tgz#bba63ca861948994ff307736089e3b96026c2a4f"
|
||||||
|
|
||||||
which@^1.2.12:
|
which@^1.2.12:
|
||||||
version "1.2.12"
|
version "1.2.14"
|
||||||
resolved "https://registry.yarnpkg.com/which/-/which-1.2.12.tgz#de67b5e450269f194909ef23ece4ebe416fa1192"
|
resolved "https://registry.yarnpkg.com/which/-/which-1.2.14.tgz#9a87c4378f03e827cecaf1acdf56c736c01c14e5"
|
||||||
dependencies:
|
dependencies:
|
||||||
isexe "^1.1.1"
|
isexe "^2.0.0"
|
||||||
|
|
||||||
wrap-ansi@^2.0.0:
|
wrap-ansi@^2.0.0:
|
||||||
version "2.1.0"
|
version "2.1.0"
|
||||||
|
|||||||
Reference in New Issue
Block a user