Compare commits
9 Commits
Author | SHA1 | Date | |
---|---|---|---|
04be5f88eb | |||
3c626908f1 | |||
821b2f95b0 | |||
c0753c185f | |||
dad659e2ed | |||
d1f1ae271a | |||
7bd18cb927 | |||
56b5adac16 | |||
56180af583 |
38
.gitlab-ci.yml
Normal file
38
.gitlab-ci.yml
Normal file
@ -0,0 +1,38 @@
|
||||
image: hosttoday/ht-docker-node:npmts
|
||||
|
||||
stages:
|
||||
- test
|
||||
- release
|
||||
|
||||
testLEGACY:
|
||||
stage: test
|
||||
script:
|
||||
- npmci test legacy
|
||||
tags:
|
||||
- docker
|
||||
- lossless
|
||||
|
||||
testLTS:
|
||||
stage: test
|
||||
script:
|
||||
- npmci test lts
|
||||
tags:
|
||||
- docker
|
||||
- lossless
|
||||
|
||||
testSTABLE:
|
||||
stage: test
|
||||
script:
|
||||
- npmci test stable
|
||||
tags:
|
||||
- docker
|
||||
- lossless
|
||||
|
||||
release:
|
||||
stage: release
|
||||
script:
|
||||
- npmci publish npm
|
||||
only:
|
||||
- tags
|
||||
tags:
|
||||
- lossless
|
@ -6,7 +6,7 @@ Easily obain SSL certificates from LetsEncrypt. Supports DNS-01 challenge. TypeS
|
||||
```typescript
|
||||
import {Cert} from "cert";
|
||||
|
||||
myCert = new Cert({
|
||||
let myCert = new Cert({
|
||||
cfEmail = "some@cloudflare.email",
|
||||
cfKey = "someCloudflareApiKey",
|
||||
outputPath = "someOutputPath" // NOTE: if you already have certificates, make sure you put them in here, so cert only requires the missing ones
|
||||
|
0
ts/hook.ts → dist/cert.hook.d.ts
vendored
0
ts/hook.ts → dist/cert.hook.d.ts
vendored
3
dist/cert.hook.js
vendored
Normal file
3
dist/cert.hook.js
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
"use strict";
|
||||
|
||||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJjZXJ0Lmhvb2suanMiLCJzb3VyY2VzQ29udGVudCI6W119
|
0
dist/cert.paths.d.ts
vendored
Normal file
0
dist/cert.paths.d.ts
vendored
Normal file
3
dist/cert.paths.js
vendored
Normal file
3
dist/cert.paths.js
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJjZXJ0LnBhdGhzLmpzIiwic291cmNlc0NvbnRlbnQiOltdfQ==
|
0
dist/index.d.ts
vendored
Normal file
0
dist/index.d.ts
vendored
Normal file
3
dist/index.js
vendored
Normal file
3
dist/index.js
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJpbmRleC5qcyIsInNvdXJjZXNDb250ZW50IjpbXX0=
|
0
dist/install.d.ts
vendored
Normal file
0
dist/install.d.ts
vendored
Normal file
10
dist/install.js
vendored
Normal file
10
dist/install.js
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
"use strict";
|
||||
var beautylog = require("beautylog");
|
||||
var path = require("path");
|
||||
var smartfile = require("smartfile");
|
||||
beautylog.info("installing letsencrypt.sh locally...");
|
||||
smartfile.remote.toFs("https://raw.githubusercontent.com/lukas2511/letsencrypt.sh/master/letsencrypt.sh", path.join(__dirname, "assets/", "le.sh")).then(function () {
|
||||
beautylog.success("Done!");
|
||||
});
|
||||
|
||||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluc3RhbGwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLElBQVksU0FBUyxXQUFNLFdBQVcsQ0FBQyxDQUFBO0FB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
||||
"description": "automatic cert generation for coreos clusters",
|
||||
"version": "0.0.5",
|
||||
"description": "Easily obain SSL certificates from LetsEncrypt. Supports DNS-01 challenge. TypeScript ready.",
|
||||
"main": "dist/index.js",
|
||||
"scripts": {
|
||||
"test": "(npmts)"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/pushrocks/cert.git"
|
||||
"url": "git+https://gitlab.com/pushrocks/cert.git"
|
||||
},
|
||||
"keywords": [
|
||||
"coreos",
|
||||
@ -19,10 +19,17 @@
|
||||
"author": "Lossless GmbH",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/pushrocks/cert/issues"
|
||||
"url": "https://gitlab.com/pushrocks/cert/issues"
|
||||
},
|
||||
"homepage": "https://github.com/pushrocks/cert#readme",
|
||||
"homepage": "https://gitlab.com/pushrocks/cert#readme",
|
||||
"dependencies": {
|
||||
"letsencrypt": "^1.4.4"
|
||||
"beautylog": "^5.0.12",
|
||||
"cflare": "0.0.2",
|
||||
"letsencrypt": "^1.4.4",
|
||||
"smartcli": "^1.0.2",
|
||||
"smartfile": "^3.0.10"
|
||||
},
|
||||
"devDependencies": {
|
||||
"npmts-g": "^5.2.6"
|
||||
}
|
||||
}
|
||||
|
2
ts/cert.hook.ts
Normal file
2
ts/cert.hook.ts
Normal file
@ -0,0 +1,2 @@
|
||||
import * as smartcli from "smartcli";
|
||||
import * as cflare from "cflare";
|
0
ts/cert.paths.ts
Normal file
0
ts/cert.paths.ts
Normal file
@ -0,0 +1,10 @@
|
||||
import * as beautylog from "beautylog";
|
||||
import * as path from "path";
|
||||
import * as smartfile from "smartfile";
|
||||
beautylog.info("installing letsencrypt.sh locally...");
|
||||
smartfile.remote.toFs(
|
||||
"https://raw.githubusercontent.com/lukas2511/letsencrypt.sh/master/letsencrypt.sh",
|
||||
path.join(__dirname,"assets/","le.sh")
|
||||
).then(() => {
|
||||
beautylog.success("Done!");
|
||||
});
|
Reference in New Issue
Block a user