diff --git a/dist/index.js b/dist/index.js
index fad0d19..43007c7 100644
--- a/dist/index.js
+++ b/dist/index.js
@@ -1 +1,8 @@
-//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIn0=
\ No newline at end of file
+"use strict";
+const plugins = require("./npmdocker.plugins");
+let config = plugins.npmextra.dataFor({
+ toolName: "npmdocker",
+ defaultSettings: {},
+ cwd: ""
+});
+//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsTUFBWSxPQUFPLFdBQU0scUJBQXFCLENBQUMsQ0FBQTtBQUsvQyxJQUFJLE1BQU0sR0FBRyxPQUFPLENBQUMsUUFBUSxDQUFDLE9BQU8sQ0FBQztJQUNsQyxRQUFRLEVBQUMsV0FBVztJQUNwQixlQUFlLEVBQUUsRUFBRTtJQUNuQixHQUFHLEVBQUUsRUFBRTtDQUNWLENBQUMsQ0FBQyJ9
\ No newline at end of file
diff --git a/dist/npmdocker.docker.d.ts b/dist/npmdocker.docker.d.ts
new file mode 100644
index 0000000..0b42837
--- /dev/null
+++ b/dist/npmdocker.docker.d.ts
@@ -0,0 +1,7 @@
+///
+import * as plugins from "./npmdocker.plugins";
+/**
+ * check if docker is available
+ */
+export declare let checkDocker: () => plugins.q.Promise<{}>;
+export declare let makeDockerReady: () => void;
diff --git a/dist/npmdocker.docker.js b/dist/npmdocker.docker.js
new file mode 100644
index 0000000..6b88ff2
--- /dev/null
+++ b/dist/npmdocker.docker.js
@@ -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
\ No newline at end of file
diff --git a/dist/npmdocker.paths.d.ts b/dist/npmdocker.paths.d.ts
new file mode 100644
index 0000000..80e9ff5
--- /dev/null
+++ b/dist/npmdocker.paths.d.ts
@@ -0,0 +1 @@
+export declare let packageBase: string;
diff --git a/dist/npmdocker.paths.js b/dist/npmdocker.paths.js
new file mode 100644
index 0000000..b6c9b69
--- /dev/null
+++ b/dist/npmdocker.paths.js
@@ -0,0 +1,4 @@
+"use strict";
+const plugins = require("./npmdocker.plugins");
+exports.packageBase = plugins.path.join(__dirname, "../");
+//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnBtZG9ja2VyLnBhdGhzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvbnBtZG9ja2VyLnBhdGhzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxNQUFZLE9BQU8sV0FBTSxxQkFBcUIsQ0FBQyxDQUFBO0FBRXBDLG1CQUFXLEdBQUcsT0FBTyxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsU0FBUyxFQUFDLEtBQUssQ0FBQyxDQUFDIn0=
\ No newline at end of file
diff --git a/dist/npmdocker.plugins.d.ts b/dist/npmdocker.plugins.d.ts
new file mode 100644
index 0000000..b02ad57
--- /dev/null
+++ b/dist/npmdocker.plugins.d.ts
@@ -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");
diff --git a/dist/npmdocker.plugins.js b/dist/npmdocker.plugins.js
new file mode 100644
index 0000000..9dc3586
--- /dev/null
+++ b/dist/npmdocker.plugins.js
@@ -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=
\ No newline at end of file
diff --git a/dist/npmdocker.promisechain.d.ts b/dist/npmdocker.promisechain.d.ts
new file mode 100644
index 0000000..b2379c5
--- /dev/null
+++ b/dist/npmdocker.promisechain.d.ts
@@ -0,0 +1,3 @@
+///
+import * as plugins from "./npmdocker.plugins";
+export declare let promisechain: () => plugins.q.Promise<{}>;
diff --git a/dist/npmdocker.promisechain.js b/dist/npmdocker.promisechain.js
new file mode 100644
index 0000000..e1b625f
--- /dev/null
+++ b/dist/npmdocker.promisechain.js
@@ -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
\ No newline at end of file
diff --git a/npmextra.json b/npmextra.json
new file mode 100644
index 0000000..245ec6e
--- /dev/null
+++ b/npmextra.json
@@ -0,0 +1,5 @@
+{
+ "npmts":{
+ "mode":"default"
+ }
+}
\ No newline at end of file
diff --git a/package.json b/package.json
index 7719a93..fa8ef94 100644
--- a/package.json
+++ b/package.json
@@ -24,15 +24,17 @@
"homepage": "https://gitlab.com/pushrocks/npmdocker#README",
"devDependencies": {
"npmts-g": "^5.2.6",
- "should": "^9.0.2",
+ "should": "^10.0.0",
"typings-test": "^1.0.1"
},
"dependencies": {
- "@types/q": "*",
- "beautylog": "^5.0.13",
+ "@types/q": "^0.0.27",
+ "beautylog": "^5.0.14",
+ "npmextra": "^1.0.8",
"q": "^1.4.1",
"rxjs": "^5.0.0-beta.10",
- "smartfile": "^4.0.10",
+ "shelljs": "^0.7.0",
+ "smartfile": "^4.0.11",
"typings-global": "^1.0.6"
}
}
diff --git a/ts/index.ts b/ts/index.ts
index e69de29..5eac451 100644
--- a/ts/index.ts
+++ b/ts/index.ts
@@ -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: ""
+});
+
+
diff --git a/ts/npmdocker.docker.ts b/ts/npmdocker.docker.ts
new file mode 100644
index 0000000..1e2ae6d
--- /dev/null
+++ b/ts/npmdocker.docker.ts
@@ -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 = () => {};
\ No newline at end of file
diff --git a/ts/npmdocker.paths.ts b/ts/npmdocker.paths.ts
new file mode 100644
index 0000000..e3a513d
--- /dev/null
+++ b/ts/npmdocker.paths.ts
@@ -0,0 +1,3 @@
+import * as plugins from "./npmdocker.plugins";
+
+export let packageBase = plugins.path.join(__dirname,"../");
\ No newline at end of file
diff --git a/ts/npmdocker.plugins.ts b/ts/npmdocker.plugins.ts
index e69de29..fe481c8 100644
--- a/ts/npmdocker.plugins.ts
+++ b/ts/npmdocker.plugins.ts
@@ -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");
\ No newline at end of file
diff --git a/ts/npmdocker.promisechain.ts b/ts/npmdocker.promisechain.ts
new file mode 100644
index 0000000..7e096c7
--- /dev/null
+++ b/ts/npmdocker.promisechain.ts
@@ -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;
+}
\ No newline at end of file