start docker integration

This commit is contained in:
Phil Kunz 2016-07-18 20:48:34 +02:00
parent 030c3ec00d
commit c5413ca11d
16 changed files with 121 additions and 5 deletions

9
dist/index.js vendored
View File

@ -1 +1,8 @@
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIn0= "use strict";
const plugins = require("./npmdocker.plugins");
let config = plugins.npmextra.dataFor({
toolName: "npmdocker",
defaultSettings: {},
cwd: ""
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsTUFBWSxPQUFPLFdBQU0scUJBQXFCLENBQUMsQ0FBQTtBQUsvQyxJQUFJLE1BQU0sR0FBRyxPQUFPLENBQUMsUUFBUSxDQUFDLE9BQU8sQ0FBQztJQUNsQyxRQUFRLEVBQUMsV0FBVztJQUNwQixlQUFlLEVBQUUsRUFBRTtJQUNuQixHQUFHLEVBQUUsRUFBRTtDQUNWLENBQUMsQ0FBQyJ9

7
dist/npmdocker.docker.d.ts vendored Normal file
View File

@ -0,0 +1,7 @@
/// <reference types="q" />
import * as plugins from "./npmdocker.plugins";
/**
* check if docker is available
*/
export declare let checkDocker: () => plugins.q.Promise<{}>;
export declare let makeDockerReady: () => void;

17
dist/npmdocker.docker.js vendored Normal file
View File

@ -0,0 +1,17 @@
"use strict";
const plugins = require("./npmdocker.plugins");
/**
* check if docker is available
*/
exports.checkDocker = () => {
let done = plugins.q.defer();
if (plugins.shelljs.which("docker")) {
done.resolve();
}
else {
done.reject(new Error("docker not found on this machine"));
}
return done.promise;
};
exports.makeDockerReady = () => { };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnBtZG9ja2VyLmRvY2tlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL25wbWRvY2tlci5kb2NrZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE1BQVksT0FBTyxXQUFNLHFCQUFxQixDQUFDLENBQUE7QUFHL0M7O0dBRUc7QUFDUSxtQkFBVyxHQUFHO0lBQ3JCLElBQUksSUFBSSxHQUFHLE9BQU8sQ0FBQyxDQUFDLENBQUMsS0FBSyxFQUFFLENBQUM7SUFDN0IsRUFBRSxDQUFBLENBQUMsT0FBTyxDQUFDLE9BQU8sQ0FBQyxLQUFLLENBQUMsUUFBUSxDQUFDLENBQUMsQ0FBQSxDQUFDO1FBQ2hDLElBQUksQ0FBQyxPQUFPLEVBQUUsQ0FBQztJQUNuQixDQUFDO0lBQUMsSUFBSSxDQUFDLENBQUM7UUFDSixJQUFJLENBQUMsTUFBTSxDQUFDLElBQUksS0FBSyxDQUFDLGtDQUFrQyxDQUFDLENBQUMsQ0FBQztJQUMvRCxDQUFDO0lBQ0QsTUFBTSxDQUFDLElBQUksQ0FBQyxPQUFPLENBQUM7QUFDeEIsQ0FBQyxDQUFDO0FBRVMsdUJBQWUsR0FBRyxRQUFPLENBQUMsQ0FBQyJ9

1
dist/npmdocker.paths.d.ts vendored Normal file
View File

@ -0,0 +1 @@
export declare let packageBase: string;

4
dist/npmdocker.paths.js vendored Normal file
View File

@ -0,0 +1,4 @@
"use strict";
const plugins = require("./npmdocker.plugins");
exports.packageBase = plugins.path.join(__dirname, "../");
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnBtZG9ja2VyLnBhdGhzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvbnBtZG9ja2VyLnBhdGhzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxNQUFZLE9BQU8sV0FBTSxxQkFBcUIsQ0FBQyxDQUFBO0FBRXBDLG1CQUFXLEdBQUcsT0FBTyxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsU0FBUyxFQUFDLEtBQUssQ0FBQyxDQUFDIn0=

7
dist/npmdocker.plugins.d.ts vendored Normal file
View File

@ -0,0 +1,7 @@
import "typings-global";
export import beautylog = require("beautylog");
export import npmextra = require("npmextra");
export import path = require("path");
export import q = require("q");
export declare let shelljs: any;
export import smartfile = require("smartfile");

9
dist/npmdocker.plugins.js vendored Normal file
View File

@ -0,0 +1,9 @@
"use strict";
require("typings-global");
exports.beautylog = require("beautylog");
exports.npmextra = require("npmextra");
exports.path = require("path");
exports.q = require("q");
exports.shelljs = require("shelljs");
exports.smartfile = require("smartfile");
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnBtZG9ja2VyLnBsdWdpbnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9ucG1kb2NrZXIucGx1Z2lucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsUUFBTyxnQkFBZ0IsQ0FBQyxDQUFBO0FBQ1YsaUJBQVMsV0FBVyxXQUFXLENBQUMsQ0FBQztBQUNqQyxnQkFBUSxXQUFXLFVBQVUsQ0FBQyxDQUFDO0FBQy9CLFlBQUksV0FBVyxNQUFNLENBQUMsQ0FBQztBQUN2QixTQUFDLFdBQVcsR0FBRyxDQUFDLENBQUM7QUFDcEIsZUFBTyxHQUFHLE9BQU8sQ0FBQyxTQUFTLENBQUMsQ0FBQztBQUMxQixpQkFBUyxXQUFXLFdBQVcsQ0FBQyxDQUFDIn0=

3
dist/npmdocker.promisechain.d.ts vendored Normal file
View File

@ -0,0 +1,3 @@
/// <reference types="q" />
import * as plugins from "./npmdocker.plugins";
export declare let promisechain: () => plugins.q.Promise<{}>;

7
dist/npmdocker.promisechain.js vendored Normal file
View File

@ -0,0 +1,7 @@
"use strict";
const plugins = require("./npmdocker.plugins");
exports.promisechain = () => {
let done = plugins.q.defer();
return done.promise;
};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnBtZG9ja2VyLnByb21pc2VjaGFpbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL25wbWRvY2tlci5wcm9taXNlY2hhaW4udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE1BQVksT0FBTyxXQUFNLHFCQUFxQixDQUFDLENBQUE7QUFJcEMsb0JBQVksR0FBRztJQUN0QixJQUFJLElBQUksR0FBRyxPQUFPLENBQUMsQ0FBQyxDQUFDLEtBQUssRUFBRSxDQUFDO0lBQzdCLE1BQU0sQ0FBQyxJQUFJLENBQUMsT0FBTyxDQUFDO0FBQ3hCLENBQUMsQ0FBQSJ9

5
npmextra.json Normal file
View File

@ -0,0 +1,5 @@
{
"npmts":{
"mode":"default"
}
}

View File

@ -24,15 +24,17 @@
"homepage": "https://gitlab.com/pushrocks/npmdocker#README", "homepage": "https://gitlab.com/pushrocks/npmdocker#README",
"devDependencies": { "devDependencies": {
"npmts-g": "^5.2.6", "npmts-g": "^5.2.6",
"should": "^9.0.2", "should": "^10.0.0",
"typings-test": "^1.0.1" "typings-test": "^1.0.1"
}, },
"dependencies": { "dependencies": {
"@types/q": "*", "@types/q": "^0.0.27",
"beautylog": "^5.0.13", "beautylog": "^5.0.14",
"npmextra": "^1.0.8",
"q": "^1.4.1", "q": "^1.4.1",
"rxjs": "^5.0.0-beta.10", "rxjs": "^5.0.0-beta.10",
"smartfile": "^4.0.10", "shelljs": "^0.7.0",
"smartfile": "^4.0.11",
"typings-global": "^1.0.6" "typings-global": "^1.0.6"
} }
} }

View File

@ -0,0 +1,12 @@
import * as plugins from "./npmdocker.plugins";
import * as paths from "./npmdocker.paths";
import * as docker from "./npmdocker.docker";
import {promisechain} from "./npmdocker.promisechain";
let config = plugins.npmextra.dataFor({
toolName:"npmdocker",
defaultSettings: {},
cwd: ""
});

17
ts/npmdocker.docker.ts Normal file
View File

@ -0,0 +1,17 @@
import * as plugins from "./npmdocker.plugins";
import * as paths from "./npmdocker.paths";
/**
* check if docker is available
*/
export let checkDocker = () => {
let done = plugins.q.defer();
if(plugins.shelljs.which("docker")){
done.resolve();
} else {
done.reject(new Error("docker not found on this machine"));
}
return done.promise;
};
export let makeDockerReady = () => {};

3
ts/npmdocker.paths.ts Normal file
View File

@ -0,0 +1,3 @@
import * as plugins from "./npmdocker.plugins";
export let packageBase = plugins.path.join(__dirname,"../");

View File

@ -0,0 +1,7 @@
import "typings-global";
export import beautylog = require("beautylog");
export import npmextra = require("npmextra");
export import path = require("path");
export import q = require("q");
export let shelljs = require("shelljs");
export import smartfile = require("smartfile");

View File

@ -0,0 +1,8 @@
import * as plugins from "./npmdocker.plugins";
import * as paths from "./npmdocker.paths";
import * as docker from "./npmdocker.docker";
export let promisechain = () => {
let done = plugins.q.defer();
return done.promise;
}