added travis and improved README
This commit is contained in:
parent
b2704c0023
commit
13f8fb8e3e
7
.gitignore
vendored
Normal file
7
.gitignore
vendored
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
coverage/
|
||||||
|
docs/
|
||||||
|
ts/typings/
|
||||||
|
ts/**/*.js
|
||||||
|
ts/**/*.js.map
|
||||||
|
.idea/
|
||||||
|
node_modules/
|
12
.travis.yml
Normal file
12
.travis.yml
Normal file
@ -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
|
23
README.md
23
README.md
@ -1,2 +1,25 @@
|
|||||||
# cflare
|
# cflare
|
||||||
allows you to manage cloudflare from CoreOS
|
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();
|
||||||
|
```
|
3
dist/cflare.classes.helpers.js
vendored
Normal file
3
dist/cflare.classes.helpers.js
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
"use strict";
|
||||||
|
|
||||||
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJjZmxhcmUuY2xhc3Nlcy5oZWxwZXJzLmpzIiwic291cmNlc0NvbnRlbnQiOltdLCJzb3VyY2VSb290IjoiL3NvdXJjZS8ifQ==
|
10
dist/cflare.classes.js
vendored
Normal file
10
dist/cflare.classes.js
vendored
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
"use strict";
|
||||||
|
var cflare = (function () {
|
||||||
|
function cflare() {
|
||||||
|
}
|
||||||
|
;
|
||||||
|
return cflare;
|
||||||
|
}());
|
||||||
|
;
|
||||||
|
|
||||||
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNmbGFyZS5jbGFzc2VzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFJQTtJQUdJO0lBRUEsQ0FBQzs7SUFFTCxhQUFDO0FBQUQsQ0FQQSxBQU9DLElBQUE7QUFBQSxDQUFDIiwiZmlsZSI6ImNmbGFyZS5jbGFzc2VzLmpzIiwic291cmNlc0NvbnRlbnQiOlsiLy8vIDxyZWZlcmVuY2UgcGF0aD1cIi4vdHlwaW5ncy9tYWluLmQudHNcIiAvPlxuaW1wb3J0IHBsdWdpbnMgPSByZXF1aXJlKFwiLi9jZmxhcmUucGx1Z2luc1wiKTtcbmltcG9ydCBoZWxwZXJzID0gcmVxdWlyZShcIi4vY2ZsYXJlLmNsYXNzZXMuaGVscGVyc1wiKTtcblxuY2xhc3MgY2ZsYXJlIHtcbiAgICBwcml2YXRlIGF1dGhFbWFpbDpzdHJpbmc7XG4gICAgcHJpdmF0ZSBhdXRoS2V5OnN0cmluZztcbiAgICBjb25zdHJ1Y3Rvcigpe1xuICAgICAgICBcbiAgICB9O1xuICAgIFxufTsiXSwic291cmNlUm9vdCI6Ii9zb3VyY2UvIn0=
|
6
dist/cflare.plugins.js
vendored
Normal file
6
dist/cflare.plugins.js
vendored
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
"use strict";
|
||||||
|
/// <reference path="./typings/main.d.ts" />
|
||||||
|
exports.beautylog = require("beautylog");
|
||||||
|
exports.request = require("request");
|
||||||
|
|
||||||
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNmbGFyZS5wbHVnaW5zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSw0Q0FBNEM7QUFDakMsaUJBQVMsR0FBRyxPQUFPLENBQUMsV0FBVyxDQUFDLENBQUM7QUFDakMsZUFBTyxHQUFHLE9BQU8sQ0FBQyxTQUFTLENBQUMsQ0FBQyIsImZpbGUiOiJjZmxhcmUucGx1Z2lucy5qcyIsInNvdXJjZXNDb250ZW50IjpbIi8vLyA8cmVmZXJlbmNlIHBhdGg9XCIuL3R5cGluZ3MvbWFpbi5kLnRzXCIgLz5cbmV4cG9ydCBsZXQgYmVhdXR5bG9nID0gcmVxdWlyZShcImJlYXV0eWxvZ1wiKTtcbmV4cG9ydCBsZXQgcmVxdWVzdCA9IHJlcXVpcmUoXCJyZXF1ZXN0XCIpOyJdLCJzb3VyY2VSb290IjoiL3NvdXJjZS8ifQ==
|
3
dist/index.js
vendored
Normal file
3
dist/index.js
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
"use strict";
|
||||||
|
|
||||||
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJpbmRleC5qcyIsInNvdXJjZXNDb250ZW50IjpbXSwic291cmNlUm9vdCI6Ii9zb3VyY2UvIn0=
|
@ -19,5 +19,12 @@
|
|||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/pushrocks/cflare/issues"
|
"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"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
2
ts/cflare.classes.helpers.ts
Normal file
2
ts/cflare.classes.helpers.ts
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
/// <reference path="./typings/main.d.ts" />
|
||||||
|
import plugins = require("./cflare.plugins");
|
12
ts/cflare.classes.ts
Normal file
12
ts/cflare.classes.ts
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
/// <reference path="./typings/main.d.ts" />
|
||||||
|
import plugins = require("./cflare.plugins");
|
||||||
|
import helpers = require("./cflare.classes.helpers");
|
||||||
|
|
||||||
|
class cflare {
|
||||||
|
private authEmail:string;
|
||||||
|
private authKey:string;
|
||||||
|
constructor(){
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
3
ts/cflare.plugins.ts
Normal file
3
ts/cflare.plugins.ts
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
/// <reference path="./typings/main.d.ts" />
|
||||||
|
export let beautylog = require("beautylog");
|
||||||
|
export let request = require("request");
|
2
ts/index.ts
Normal file
2
ts/index.ts
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
/// <reference path="./typings/main.d.ts" />
|
||||||
|
import plugins = require("./cflare.plugins");
|
8
ts/typings.json
Normal file
8
ts/typings.json
Normal file
@ -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"
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user