From 13f8fb8e3ec90f6f7fd4314e3033dc1172ff7423 Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Wed, 27 Apr 2016 02:20:27 +0200 Subject: [PATCH] added travis and improved README --- .gitignore | 7 +++++++ .travis.yml | 12 ++++++++++++ README.md | 23 +++++++++++++++++++++++ dist/cflare.classes.helpers.js | 3 +++ dist/cflare.classes.js | 10 ++++++++++ dist/cflare.plugins.js | 6 ++++++ dist/index.js | 3 +++ package.json | 9 ++++++++- ts/cflare.classes.helpers.ts | 2 ++ ts/cflare.classes.ts | 12 ++++++++++++ ts/cflare.plugins.ts | 3 +++ ts/index.ts | 2 ++ ts/typings.json | 8 ++++++++ 13 files changed, 99 insertions(+), 1 deletion(-) create mode 100644 .gitignore create mode 100644 .travis.yml create mode 100644 dist/cflare.classes.helpers.js create mode 100644 dist/cflare.classes.js create mode 100644 dist/cflare.plugins.js create mode 100644 dist/index.js create mode 100644 ts/cflare.classes.helpers.ts create mode 100644 ts/cflare.classes.ts create mode 100644 ts/cflare.plugins.ts create mode 100644 ts/index.ts create mode 100644 ts/typings.json diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..629f3fa --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +coverage/ +docs/ +ts/typings/ +ts/**/*.js +ts/**/*.js.map +.idea/ +node_modules/ diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..eb33e45 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,12 @@ +language: node_js +node_js: +- '4' +- stable +deploy: + provider: npm + email: npm@lossless.digital + api_key: + secure: uWqO634z8xMWI8tcIpSvUeVeG4ypX5fppXWxrSKbO5zOHCHGqJK90XiGFfKUekMf0cYQPb5dLT5+J/3nd4mf4KtU3+v1OK6ZikEqn/PcSeqOmK7EnI9wDFZwDTgJWIn0lRwX2mfB9meblSZ7XthTXumX78fmRTyeyImLm9P0ak+CrNzs8rzKauBoqeVryOez4/LaH3f0kxSz7o7zYLxFqx5xjQ7TFqd1kkVTf4pSQanLHY3z+7+mKrkbcNVxx2gF76hyx6E4pntSJHrOEE/VU/KMk2B6yzrVWYUHUiSRGYOV9U17YaaWlC9DZmnS1cvYcqq3YNujTwPWtci3It9S98hLrSTnCCqin6xhj8IuV6U4WADiXOUvNKuTRcd0/leQ4w3xpPJ1FR2gRtEhwQ0NsnY0vL9tuRAW71lf31122TTJI8lJQNrnaeIGbX7eE0Pq0jeTpmM2W/Tl8pl6s6zBjlEC/mCynQq1pBiz7UmxMYCPE162I8V5USeZOBLzDPZV2y7hmPWjMrWTT+i/IpFmXHjQtVrwlyU6fCOeYHgK/5GdyhnrRYYlx+ce6pCn4tmkVxduimC3m1G8cTkPl00fIpy7KSVcaeQrc1N+KQUqK4FpIjeqB904SVPsI5v3P7sdobaT1aqFqszhR+JK5tXaoesew8R2RncjFK69J7DHJWk= + on: + tags: true + repo: pushrocks/cflare diff --git a/README.md b/README.md index 0da0f8f..bade86b 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,25 @@ # cflare allows you to manage cloudflare from CoreOS + +> Note: this package is still in alpha, so some things do not yet work. +I (Phil from Lossless) expect this package to be ready 1. of June 2016. + +## Status + +## Usage + +```javascript +var cflare = require("cflare"); +var cflareInstance = new cflare(); + +cflareInstance.auth({ + email:"", + key:"" +}); + +cflareInstance.createRecord(); +cflareInstance.removeRecord(); +cflareInstance.copyRecord(); +cflareInstance.listRecords(); +cflareInstance.listDomains(); +``` \ No newline at end of file diff --git a/dist/cflare.classes.helpers.js b/dist/cflare.classes.helpers.js new file mode 100644 index 0000000..a627a2d --- /dev/null +++ b/dist/cflare.classes.helpers.js @@ -0,0 +1,3 @@ +"use strict"; + +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJjZmxhcmUuY2xhc3Nlcy5oZWxwZXJzLmpzIiwic291cmNlc0NvbnRlbnQiOltdLCJzb3VyY2VSb290IjoiL3NvdXJjZS8ifQ== diff --git a/dist/cflare.classes.js b/dist/cflare.classes.js new file mode 100644 index 0000000..1131431 --- /dev/null +++ b/dist/cflare.classes.js @@ -0,0 +1,10 @@ +"use strict"; +var cflare = (function () { + function cflare() { + } + ; + return cflare; +}()); +; + +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNmbGFyZS5jbGFzc2VzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFJQTtJQUdJO0lBRUEsQ0FBQzs7SUFFTCxhQUFDO0FBQUQsQ0FQQSxBQU9DLElBQUE7QUFBQSxDQUFDIiwiZmlsZSI6ImNmbGFyZS5jbGFzc2VzLmpzIiwic291cmNlc0NvbnRlbnQiOlsiLy8vIDxyZWZlcmVuY2UgcGF0aD1cIi4vdHlwaW5ncy9tYWluLmQudHNcIiAvPlxuaW1wb3J0IHBsdWdpbnMgPSByZXF1aXJlKFwiLi9jZmxhcmUucGx1Z2luc1wiKTtcbmltcG9ydCBoZWxwZXJzID0gcmVxdWlyZShcIi4vY2ZsYXJlLmNsYXNzZXMuaGVscGVyc1wiKTtcblxuY2xhc3MgY2ZsYXJlIHtcbiAgICBwcml2YXRlIGF1dGhFbWFpbDpzdHJpbmc7XG4gICAgcHJpdmF0ZSBhdXRoS2V5OnN0cmluZztcbiAgICBjb25zdHJ1Y3Rvcigpe1xuICAgICAgICBcbiAgICB9O1xuICAgIFxufTsiXSwic291cmNlUm9vdCI6Ii9zb3VyY2UvIn0= diff --git a/dist/cflare.plugins.js b/dist/cflare.plugins.js new file mode 100644 index 0000000..3beae87 --- /dev/null +++ b/dist/cflare.plugins.js @@ -0,0 +1,6 @@ +"use strict"; +/// +exports.beautylog = require("beautylog"); +exports.request = require("request"); + +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNmbGFyZS5wbHVnaW5zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSw0Q0FBNEM7QUFDakMsaUJBQVMsR0FBRyxPQUFPLENBQUMsV0FBVyxDQUFDLENBQUM7QUFDakMsZUFBTyxHQUFHLE9BQU8sQ0FBQyxTQUFTLENBQUMsQ0FBQyIsImZpbGUiOiJjZmxhcmUucGx1Z2lucy5qcyIsInNvdXJjZXNDb250ZW50IjpbIi8vLyA8cmVmZXJlbmNlIHBhdGg9XCIuL3R5cGluZ3MvbWFpbi5kLnRzXCIgLz5cbmV4cG9ydCBsZXQgYmVhdXR5bG9nID0gcmVxdWlyZShcImJlYXV0eWxvZ1wiKTtcbmV4cG9ydCBsZXQgcmVxdWVzdCA9IHJlcXVpcmUoXCJyZXF1ZXN0XCIpOyJdLCJzb3VyY2VSb290IjoiL3NvdXJjZS8ifQ== diff --git a/dist/index.js b/dist/index.js new file mode 100644 index 0000000..348fb0e --- /dev/null +++ b/dist/index.js @@ -0,0 +1,3 @@ +"use strict"; + +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJpbmRleC5qcyIsInNvdXJjZXNDb250ZW50IjpbXSwic291cmNlUm9vdCI6Ii9zb3VyY2UvIn0= diff --git a/package.json b/package.json index 569d77e..007a5f9 100644 --- a/package.json +++ b/package.json @@ -19,5 +19,12 @@ "bugs": { "url": "https://github.com/pushrocks/cflare/issues" }, - "homepage": "https://github.com/pushrocks/cflare#readme" + "homepage": "https://github.com/pushrocks/cflare#readme", + "dependencies": { + "beautylog": "^4.1.2", + "request": "^2.72.0" + }, + "devDependencies": { + "npmts": "^5.0.4" + } } diff --git a/ts/cflare.classes.helpers.ts b/ts/cflare.classes.helpers.ts new file mode 100644 index 0000000..b53edbe --- /dev/null +++ b/ts/cflare.classes.helpers.ts @@ -0,0 +1,2 @@ +/// +import plugins = require("./cflare.plugins"); \ No newline at end of file diff --git a/ts/cflare.classes.ts b/ts/cflare.classes.ts new file mode 100644 index 0000000..26b99ff --- /dev/null +++ b/ts/cflare.classes.ts @@ -0,0 +1,12 @@ +/// +import plugins = require("./cflare.plugins"); +import helpers = require("./cflare.classes.helpers"); + +class cflare { + private authEmail:string; + private authKey:string; + constructor(){ + + }; + +}; \ No newline at end of file diff --git a/ts/cflare.plugins.ts b/ts/cflare.plugins.ts new file mode 100644 index 0000000..289c8f7 --- /dev/null +++ b/ts/cflare.plugins.ts @@ -0,0 +1,3 @@ +/// +export let beautylog = require("beautylog"); +export let request = require("request"); \ No newline at end of file diff --git a/ts/index.ts b/ts/index.ts new file mode 100644 index 0000000..b53edbe --- /dev/null +++ b/ts/index.ts @@ -0,0 +1,2 @@ +/// +import plugins = require("./cflare.plugins"); \ No newline at end of file diff --git a/ts/typings.json b/ts/typings.json new file mode 100644 index 0000000..e66d896 --- /dev/null +++ b/ts/typings.json @@ -0,0 +1,8 @@ +{ + "version": false, + "dependencies": {}, + "ambientDependencies": { + "colors": "registry:dt/colors#0.6.0-1+20160425153322", + "node": "registry:dt/node#4.0.0+20160423143914" + } +}