From d5b5e8d612eb1b5e165f856de129200ebf0e20d2 Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Sat, 18 Jun 2016 16:03:46 +0200 Subject: [PATCH] update Readme --- README.md | 9 ++++++--- dist/cert.paths.d.ts | 2 ++ dist/cert.paths.js | 6 ++++-- dist/cert.plugins.d.ts | 0 dist/cert.plugins.js | 3 +++ dist/index.d.ts | 18 ++++++++++++++++++ dist/index.js | 24 ++++++++++++++++++++++-- 7 files changed, 55 insertions(+), 7 deletions(-) create mode 100644 dist/cert.plugins.d.ts create mode 100644 dist/cert.plugins.js diff --git a/README.md b/README.md index 5e92846..b218540 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,18 @@ # Cert Easily obain SSL certificates from LetsEncrypt. Supports DNS-01 challenge. TypeScript ready. +> Note: this package is in pre-alpha stage and will be ready soon. + ## Usage ```typescript import {Cert} from "cert"; let myCert = new Cert({ - cfEmail = "some@cloudflare.email", - cfKey = "someCloudflareApiKey", - sslDir = "someOutputPath" // NOTE: if you already have certificates, make sure you put them in here, so cert only requires the missing ones + cfEmail: "some@cloudflare.email", + cfKey: "someCloudflareApiKey", + sslDir: "someOutputPath", // NOTE: if you already have certificates, make sure you put them in here, so cert only requires the missing ones + gitOriginRepo: "git@githhub.com/someuser/somereopo" // good for pesistence in highly volatile environments like docker }); myCert.getDomainCert("example.com"); diff --git a/dist/cert.paths.d.ts b/dist/cert.paths.d.ts index e69de29..ef561cc 100644 --- a/dist/cert.paths.d.ts +++ b/dist/cert.paths.d.ts @@ -0,0 +1,2 @@ +import "typings-global"; +export import path = require("path"); diff --git a/dist/cert.paths.js b/dist/cert.paths.js index b129c62..88e630c 100644 --- a/dist/cert.paths.js +++ b/dist/cert.paths.js @@ -1,3 +1,5 @@ +"use strict"; +require("typings-global"); +exports.path = require("path"); - -//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJjZXJ0LnBhdGhzLmpzIiwic291cmNlc0NvbnRlbnQiOltdfQ== +//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNlcnQucGF0aHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLFFBQU8sZ0JBQWdCLENBQUMsQ0FBQTtBQUNWLFlBQUksV0FBVyxNQUFNLENBQUMsQ0FBQyIsImZpbGUiOiJjZXJ0LnBhdGhzLmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFwidHlwaW5ncy1nbG9iYWxcIjtcbmV4cG9ydCBpbXBvcnQgcGF0aCA9IHJlcXVpcmUoXCJwYXRoXCIpO1xuXG4iXX0= diff --git a/dist/cert.plugins.d.ts b/dist/cert.plugins.d.ts new file mode 100644 index 0000000..e69de29 diff --git a/dist/cert.plugins.js b/dist/cert.plugins.js new file mode 100644 index 0000000..0de51f5 --- /dev/null +++ b/dist/cert.plugins.js @@ -0,0 +1,3 @@ + + +//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJjZXJ0LnBsdWdpbnMuanMiLCJzb3VyY2VzQ29udGVudCI6W119 diff --git a/dist/index.d.ts b/dist/index.d.ts index e69de29..d95ea52 100644 --- a/dist/index.d.ts +++ b/dist/index.d.ts @@ -0,0 +1,18 @@ +export declare class Cert { + cfEmail: string; + cfKey: string; + sslDir: string; + certificatesPresent: any; + certificatesValid: any; + gitOriginRepo: any; + constructor(optionsArg: { + cfEmail: string; + cfKey: string; + sslDir: string; + gitOriginRepo: string; + }); + getDomainCert(): void; +} +export declare class Certificate { + constructor(); +} diff --git a/dist/index.js b/dist/index.js index b8dbb98..be2d9ec 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,3 +1,23 @@ +"use strict"; +var Cert = (function () { + function Cert(optionsArg) { + this.cfEmail = optionsArg.cfEmail; + this.cfKey = optionsArg.cfKey; + this.sslDir = optionsArg.sslDir; + this.gitOriginRepo = optionsArg.gitOriginRepo; + } + ; + Cert.prototype.getDomainCert = function () { }; + ; + return Cert; +}()); +exports.Cert = Cert; +var Certificate = (function () { + function Certificate() { + } + ; + return Certificate; +}()); +exports.Certificate = Certificate; - -//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJpbmRleC5qcyIsInNvdXJjZXNDb250ZW50IjpbXX0= +//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFFQTtJQU9JLGNBQVksVUFLWDtRQUNHLElBQUksQ0FBQyxPQUFPLEdBQUcsVUFBVSxDQUFDLE9BQU8sQ0FBQztRQUNsQyxJQUFJLENBQUMsS0FBSyxHQUFHLFVBQVUsQ0FBQyxLQUFLLENBQUM7UUFDOUIsSUFBSSxDQUFDLE1BQU0sR0FBRyxVQUFVLENBQUMsTUFBTSxDQUFDO1FBQ2hDLElBQUksQ0FBQyxhQUFhLEdBQUcsVUFBVSxDQUFDLGFBQWEsQ0FBQztJQUNsRCxDQUFDOztJQUNELDRCQUFhLEdBQWIsY0FBZ0IsQ0FBQzs7SUFDckIsV0FBQztBQUFELENBbkJBLEFBbUJDLElBQUE7QUFuQlksWUFBSSxPQW1CaEIsQ0FBQTtBQUVEO0lBQ0k7SUFFQSxDQUFDOztJQUNMLGtCQUFDO0FBQUQsQ0FKQSxBQUlDLElBQUE7QUFKWSxtQkFBVyxjQUl2QixDQUFBIiwiZmlsZSI6ImluZGV4LmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0ICogYXMgcGF0aHMgZnJvbSBcIi4vY2VydC5wYXRo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