mirror of
https://github.com/certd/certd.git
synced 2026-04-14 12:30:54 +08:00
Compare commits
14 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a43c5b0824 | ||
|
|
ebdf9f4b5b | ||
|
|
511be1f3ae | ||
|
|
ceb0454277 | ||
|
|
c553b017af | ||
|
|
c553f63127 | ||
|
|
152cb9b23a | ||
|
|
5eff50e8fe | ||
|
|
cddf01ee68 | ||
|
|
d968c4bbb9 | ||
|
|
1a738403fc | ||
|
|
71428b0181 | ||
|
|
4b538bae97 | ||
|
|
a4bb4fd708 |
@@ -3,6 +3,14 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
## [1.0.3](https://github.com/certd/certd/compare/v1.0.2...v1.0.3) (2023-05-25)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package root
|
||||||
|
|
||||||
|
## [1.0.2](https://github.com/certd/certd/compare/v1.0.1...v1.0.2) (2023-05-24)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package root
|
||||||
|
|
||||||
## [1.0.1](https://github.com/certd/certd/compare/v1.0.0...v1.0.1) (2023-05-24)
|
## [1.0.1](https://github.com/certd/certd/compare/v1.0.0...v1.0.1) (2023-05-24)
|
||||||
|
|
||||||
**Note:** Version bump only for package root
|
**Note:** Version bump only for package root
|
||||||
|
|||||||
@@ -9,5 +9,5 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"npmClient": "pnpm",
|
"npmClient": "pnpm",
|
||||||
"version": "1.0.1"
|
"version": "1.0.3"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,10 +10,10 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "lerna bootstrap --hoist",
|
"start": "lerna bootstrap --hoist",
|
||||||
"i-all": "lerna link && lerna exec npm install ",
|
"i-all": "lerna link && lerna exec npm install ",
|
||||||
"publish": "npm run proxy && npm run prepublishOnly && lerna publish --conventional-commits && npm run afterpublishOnly",
|
"publish": "npm run proxy && npm run prepublishOnly1 && lerna publish --conventional-commits && npm run afterpublishOnly",
|
||||||
"afterpublishOnly": "",
|
"afterpublishOnly": "",
|
||||||
"proxy": "npm config set proxy=http://127.0.0.1:10809",
|
"proxy": "npm config set proxy=http://127.0.0.1:10809",
|
||||||
"prepublishOnly": "npm run before-build && lerna run build ",
|
"prepublishOnly1": "npm run before-build && lerna run build ",
|
||||||
"before-build": "cd ./packages/core/acme-client && time /t >build.md && git add ./build.md && git commit -m \"build: prepare to build\""
|
"before-build": "cd ./packages/core/acme-client && time /t >build.md && git add ./build.md && git commit -m \"build: prepare to build\""
|
||||||
},
|
},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|||||||
@@ -3,6 +3,14 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
## [1.0.3](https://github.com/publishlab/node-acme-client/compare/v1.0.2...v1.0.3) (2023-05-25)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @certd/acme-client
|
||||||
|
|
||||||
|
## [1.0.2](https://github.com/publishlab/node-acme-client/compare/v1.0.1...v1.0.2) (2023-05-24)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @certd/acme-client
|
||||||
|
|
||||||
## [1.0.1](https://github.com/publishlab/node-acme-client/compare/v1.0.0...v1.0.1) (2023-05-24)
|
## [1.0.1](https://github.com/publishlab/node-acme-client/compare/v1.0.0...v1.0.1) (2023-05-24)
|
||||||
|
|
||||||
**Note:** Version bump only for package @certd/acme-client
|
**Note:** Version bump only for package @certd/acme-client
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
18:01
|
10:45
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
"description": "Simple and unopinionated ACME client",
|
"description": "Simple and unopinionated ACME client",
|
||||||
"private": false,
|
"private": false,
|
||||||
"author": "nmorsman",
|
"author": "nmorsman",
|
||||||
"version": "1.0.1",
|
"version": "1.0.3",
|
||||||
"main": "src/index.js",
|
"main": "src/index.js",
|
||||||
"types": "types",
|
"types": "types",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|||||||
2
packages/core/pipeline/.npmignore
Normal file
2
packages/core/pipeline/.npmignore
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
node_modules
|
||||||
|
src
|
||||||
@@ -3,6 +3,14 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
## [1.0.3](https://github.com/certd/certd/compare/v1.0.2...v1.0.3) (2023-05-25)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @certd/pipeline
|
||||||
|
|
||||||
|
## [1.0.2](https://github.com/certd/certd/compare/v1.0.1...v1.0.2) (2023-05-24)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @certd/pipeline
|
||||||
|
|
||||||
## [1.0.1](https://github.com/certd/certd/compare/v1.0.0...v1.0.1) (2023-05-24)
|
## [1.0.1](https://github.com/certd/certd/compare/v1.0.0...v1.0.1) (2023-05-24)
|
||||||
|
|
||||||
**Note:** Version bump only for package @certd/pipeline
|
**Note:** Version bump only for package @certd/pipeline
|
||||||
|
|||||||
@@ -1,61 +1,58 @@
|
|||||||
{
|
{
|
||||||
"name": "@certd/pipeline",
|
"name": "@certd/pipeline",
|
||||||
"private": false,
|
"private": false,
|
||||||
"version": "1.0.1",
|
"version": "1.0.3",
|
||||||
"main": "./src/index.ts",
|
"main": "./src/index.ts",
|
||||||
"module": "./src/index.ts",
|
"module": "./dist/pipeline.mjs",
|
||||||
"types": "./src/index.ts",
|
"types": "./dist/d/index.d.ts",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"main": "./dist/pipeline.umd.js",
|
"main": "./dist/bundle.js",
|
||||||
"module": "./dist/pipeline.mjs",
|
"module": "./dist/pipeline.mjs",
|
||||||
"types": "./dist/d/index.d.ts"
|
"types": "./dist/d/index.d.ts"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
"build": "vue-tsc --noEmit && vite build",
|
"build": "rollup -c",
|
||||||
|
"build2": "vue-tsc --noEmit && vite build",
|
||||||
"preview": "vite preview"
|
"preview": "vite preview"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@certd/acme-client": "^1.0.1",
|
"axios": "^1.4.0",
|
||||||
"axios": "^0.21.1",
|
"node-forge": "^1.3.1",
|
||||||
"dayjs": "^1.11.6",
|
"qs": "^6.11.2"
|
||||||
"lodash": "^4.17.21",
|
|
||||||
"log4js": "^6.3.0",
|
|
||||||
"node-forge": "^0.10.0",
|
|
||||||
"qs": "^6.9.4",
|
|
||||||
"reflect-metadata": "^0.1.13"
|
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@alicloud/cs20151215": "^3.0.3",
|
"@certd/acme-client": "^1.0.3",
|
||||||
"@alicloud/openapi-client": "^0.4.0",
|
"@rollup/plugin-commonjs": "^23.0.4",
|
||||||
"@alicloud/pop-core": "^1.7.10",
|
"@rollup/plugin-json": "^6.0.0",
|
||||||
"@midwayjs/bootstrap": "^3.9.1",
|
"@rollup/plugin-node-resolve": "^15.0.1",
|
||||||
"@midwayjs/cache": "^3.9.0",
|
"@rollup/plugin-terser": "^0.4.3",
|
||||||
"@midwayjs/cli": "^1.3.21",
|
|
||||||
"@midwayjs/core": "^3.0.0",
|
|
||||||
"@midwayjs/decorator": "^3.0.0",
|
|
||||||
"@midwayjs/koa": "^3.9.0",
|
|
||||||
"@midwayjs/logger": "^2.17.0",
|
|
||||||
"@midwayjs/typeorm": "^3.9.0",
|
|
||||||
"@midwayjs/validate": "^3.9.0",
|
|
||||||
"@rollup/plugin-typescript": "^11.0.0",
|
"@rollup/plugin-typescript": "^11.0.0",
|
||||||
"@types/chai": "^4.3.3",
|
"@types/chai": "^4.3.5",
|
||||||
"@types/lodash": "^4.14.194",
|
"@types/lodash": "^4.14.194",
|
||||||
"@types/mocha": "^10.0.0",
|
"@types/mocha": "^10.0.1",
|
||||||
"@types/node-forge": "^1.3.0",
|
"@types/node-forge": "^1.3.2",
|
||||||
"@typescript-eslint/eslint-plugin": "^5.38.1",
|
"@typescript-eslint/eslint-plugin": "^5.59.7",
|
||||||
"@typescript-eslint/parser": "^5.38.1",
|
"@typescript-eslint/parser": "^5.59.7",
|
||||||
"chai": "^4.3.6",
|
"chai": "^4.3.7",
|
||||||
"eslint": "^8.24.0",
|
"dayjs": "^1.11.7",
|
||||||
"eslint-config-prettier": "^8.5.0",
|
"eslint": "^8.41.0",
|
||||||
"eslint-plugin-import": "^2.26.0",
|
"eslint-config-prettier": "^8.8.0",
|
||||||
|
"eslint-plugin-import": "^2.27.5",
|
||||||
"eslint-plugin-node": "^11.1.0",
|
"eslint-plugin-node": "^11.1.0",
|
||||||
"eslint-plugin-prettier": "^4.2.1",
|
"eslint-plugin-prettier": "^4.2.1",
|
||||||
"mocha": "^10.1.0",
|
"lodash": "^4.17.21",
|
||||||
|
"log4js": "^6.9.1",
|
||||||
|
"mocha": "^10.2.0",
|
||||||
|
"reflect-metadata": "^0.1.13",
|
||||||
|
"rollup": "^3.7.4",
|
||||||
|
"rollup-plugin-typescript2": "^0.34.1",
|
||||||
|
"rollup-plugin-visualizer": "^5.8.2",
|
||||||
"ts-node": "^10.9.1",
|
"ts-node": "^10.9.1",
|
||||||
"typescript": "^4.8.4",
|
"tslib": "^2.5.2",
|
||||||
"vite": "^3.1.0",
|
"typescript": "^5.0.4",
|
||||||
"vue-tsc": "^0.38.9"
|
"vite": "^4.3.8",
|
||||||
|
"vue-tsc": "^1.6.5"
|
||||||
},
|
},
|
||||||
"gitHead": "5950e1cae7cf30ebfc5128c15c7d1b0d101cbbb8"
|
"gitHead": "5950e1cae7cf30ebfc5128c15c7d1b0d101cbbb8"
|
||||||
}
|
}
|
||||||
|
|||||||
39
packages/core/pipeline/rollup.config.js
Normal file
39
packages/core/pipeline/rollup.config.js
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
const resolve = require("@rollup/plugin-node-resolve");
|
||||||
|
const commonjs = require("@rollup/plugin-commonjs");
|
||||||
|
const rollupTypescript = require("rollup-plugin-typescript2");
|
||||||
|
const json = require("@rollup/plugin-json");
|
||||||
|
const terser = require("@rollup/plugin-terser");
|
||||||
|
module.exports = {
|
||||||
|
input: "src/index.ts",
|
||||||
|
output: {
|
||||||
|
file: "dist/bundle.js",
|
||||||
|
format: "cjs",
|
||||||
|
},
|
||||||
|
plugins: [
|
||||||
|
// 解析第三方依赖
|
||||||
|
resolve(),
|
||||||
|
// 识别 commonjs 模式第三方依赖
|
||||||
|
commonjs(),
|
||||||
|
rollupTypescript(),
|
||||||
|
json(),
|
||||||
|
terser(),
|
||||||
|
],
|
||||||
|
external: [
|
||||||
|
"vue",
|
||||||
|
"lodash",
|
||||||
|
"dayjs",
|
||||||
|
"@certd/acme-client",
|
||||||
|
"@certd/pipeline",
|
||||||
|
"@certd/plugin-cert",
|
||||||
|
"@certd/plugin-aliyun",
|
||||||
|
"@certd/plugin-tencent",
|
||||||
|
"@certd/plugin-huawei",
|
||||||
|
"@certd/plugin-host",
|
||||||
|
"@certd/plugin-tencent",
|
||||||
|
"@certd/plugin-util",
|
||||||
|
"log4js",
|
||||||
|
"@midwayjs/core",
|
||||||
|
"@midwayjs/decorator",
|
||||||
|
"reflect-metadata",
|
||||||
|
],
|
||||||
|
};
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
|
import "util";
|
||||||
export * from "./core";
|
export * from "./core";
|
||||||
export * from "./d.ts";
|
export * from "./d.ts";
|
||||||
export * from "./access";
|
export * from "./access";
|
||||||
export * from "./registry";
|
export * from "./registry";
|
||||||
export * from "./plugin";
|
export * from "./plugin";
|
||||||
export * from "./utils";
|
export * from "./utils";
|
||||||
export * from "./midway";
|
|
||||||
export * from "./context";
|
export * from "./context";
|
||||||
export * from "./decorator";
|
export * from "./decorator";
|
||||||
|
|||||||
@@ -1,52 +0,0 @@
|
|||||||
import { Config, Configuration, Inject, Logger } from "@midwayjs/decorator";
|
|
||||||
// @ts-ignore
|
|
||||||
import { ILogger } from "@midwayjs/logger";
|
|
||||||
import { IMidwayContainer, MidwayDecoratorService } from "@midwayjs/core";
|
|
||||||
|
|
||||||
// ... (see below) ...
|
|
||||||
@Configuration({
|
|
||||||
namespace: "pipeline",
|
|
||||||
//importConfigs: [join(__dirname, './config')],
|
|
||||||
})
|
|
||||||
export class PipelineConfiguration {
|
|
||||||
@Config()
|
|
||||||
// @ts-ignore
|
|
||||||
config;
|
|
||||||
@Logger()
|
|
||||||
// @ts-ignore
|
|
||||||
logger: ILogger;
|
|
||||||
|
|
||||||
@Inject()
|
|
||||||
// @ts-ignore
|
|
||||||
decoratorService: MidwayDecoratorService;
|
|
||||||
|
|
||||||
async onReady(container: IMidwayContainer) {
|
|
||||||
this.logger.info("pipeline install");
|
|
||||||
|
|
||||||
//this.implPropertyDecorator(container);
|
|
||||||
this.logger.info("pipeline installed");
|
|
||||||
}
|
|
||||||
|
|
||||||
// implPropertyDecorator(container: IMidwayContainer) {
|
|
||||||
// this.logger.info("初始化 property decorator");
|
|
||||||
// // 实现装饰器
|
|
||||||
// this.decoratorService.registerPropertyHandler(CLASS_INPUTS_KEY, (propertyName, meta) => {
|
|
||||||
// return undefined;
|
|
||||||
// });
|
|
||||||
//
|
|
||||||
// const autowireWhiteList: any = {
|
|
||||||
// logger: true,
|
|
||||||
// };
|
|
||||||
// this.decoratorService.registerPropertyHandler(CLASS_AUTOWIRE_KEY, (propertyName, meta) => {
|
|
||||||
// // eslint-disable-next-line no-debugger
|
|
||||||
// debugger;
|
|
||||||
// const className = meta.name;
|
|
||||||
// if (autowireWhiteList[className]) {
|
|
||||||
// //在白名单里面,注入
|
|
||||||
// return container.get(className);
|
|
||||||
// }
|
|
||||||
// this.logger.warn(`autowire failed:${className} class is not in white list`);
|
|
||||||
// return undefined;
|
|
||||||
// });
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
// src/index.ts
|
|
||||||
export { PipelineConfiguration } from "./configuration";
|
|
||||||
// export * from './controller/user';
|
|
||||||
// export * from './controller/api';
|
|
||||||
// export * from './service/user';
|
|
||||||
@@ -3,7 +3,7 @@ import { pluginRegistry } from "./registry";
|
|||||||
import { PluginDefine, TaskInputDefine, TaskOutputDefine } from "./api";
|
import { PluginDefine, TaskInputDefine, TaskOutputDefine } from "./api";
|
||||||
import { Decorator } from "../decorator";
|
import { Decorator } from "../decorator";
|
||||||
import { AUTOWIRE_KEY } from "../decorator";
|
import { AUTOWIRE_KEY } from "../decorator";
|
||||||
|
import "reflect-metadata";
|
||||||
// 提供一个唯一 key
|
// 提供一个唯一 key
|
||||||
export const PLUGIN_CLASS_KEY = "pipeline:plugin";
|
export const PLUGIN_CLASS_KEY = "pipeline:plugin";
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
import { ILogger } from "@midwayjs/logger";
|
|
||||||
import { ITaskPlugin } from "../api";
|
import { ITaskPlugin } from "../api";
|
||||||
import { IsTaskPlugin, TaskInput } from "../decorator";
|
import { IsTaskPlugin, TaskInput } from "../decorator";
|
||||||
import { Autowire } from "../../decorator";
|
import { Autowire } from "../../decorator";
|
||||||
@@ -17,10 +16,6 @@ export class EchoPlugin implements ITaskPlugin {
|
|||||||
})
|
})
|
||||||
test?: string;
|
test?: string;
|
||||||
|
|
||||||
@Autowire()
|
|
||||||
// @ts-ignore
|
|
||||||
logger: ILogger;
|
|
||||||
|
|
||||||
onInstance(): Promise<void> {
|
onInstance(): Promise<void> {
|
||||||
throw new Error("Method not implemented.");
|
throw new Error("Method not implemented.");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Autowire, ILogger, IsTaskPlugin, ITaskPlugin, TaskInput, TaskOutput } from "../src";
|
import { Autowire, IsTaskPlugin, ITaskPlugin, TaskInput, TaskOutput } from "../src";
|
||||||
|
|
||||||
@IsTaskPlugin({
|
@IsTaskPlugin({
|
||||||
name: "EchoPlugin",
|
name: "EchoPlugin",
|
||||||
@@ -14,9 +14,6 @@ export class EchoPlugin implements ITaskPlugin {
|
|||||||
})
|
})
|
||||||
cert!: any;
|
cert!: any;
|
||||||
|
|
||||||
@Autowire()
|
|
||||||
logger!: ILogger;
|
|
||||||
|
|
||||||
@TaskOutput({
|
@TaskOutput({
|
||||||
title: "cert info",
|
title: "cert info",
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
|
"importHelpers": false,
|
||||||
"target": "ESNext",
|
"target": "ESNext",
|
||||||
"useDefineForClassFields": true,
|
"useDefineForClassFields": true,
|
||||||
"module": "commonjs",
|
"module": "ESNext",
|
||||||
"moduleResolution": "Node",
|
"moduleResolution": "Node",
|
||||||
"strict": true,
|
"strict": true,
|
||||||
"jsx": "preserve",
|
"jsx": "preserve",
|
||||||
@@ -13,8 +14,10 @@
|
|||||||
"lib": ["ESNext", "DOM"],
|
"lib": ["ESNext", "DOM"],
|
||||||
"skipLibCheck": true,
|
"skipLibCheck": true,
|
||||||
"experimentalDecorators": true,
|
"experimentalDecorators": true,
|
||||||
"emitDecoratorMetadata": true,
|
"paths": {
|
||||||
"outDir": "./dist/ts"
|
"tslib" : ["./node_modules/tslib/tslib.d.ts"]
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue","test/**/*.ts"],
|
|
||||||
|
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue","test/**/*.ts","rollup.config.ts"],
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,17 +1,20 @@
|
|||||||
import { defineConfig } from "vite";
|
import { defineConfig } from "vite";
|
||||||
|
import visualizer from "rollup-plugin-visualizer";
|
||||||
import typescript from "@rollup/plugin-typescript";
|
import typescript from "@rollup/plugin-typescript";
|
||||||
// https://vitejs.dev/config/
|
// https://vitejs.dev/config/
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [],
|
plugins: [],
|
||||||
build: {
|
build: {
|
||||||
|
target: "es2015",
|
||||||
lib: {
|
lib: {
|
||||||
entry: "src/index.ts",
|
entry: "src/index.ts",
|
||||||
name: "pipeline",
|
name: "CertdPipeline",
|
||||||
},
|
},
|
||||||
rollupOptions: {
|
rollupOptions: {
|
||||||
plugins: [
|
plugins: [
|
||||||
|
visualizer(),
|
||||||
typescript({
|
typescript({
|
||||||
target: "esnext",
|
target: "es2015",
|
||||||
rootDir: "src",
|
rootDir: "src",
|
||||||
declaration: true,
|
declaration: true,
|
||||||
declarationDir: "dist/d",
|
declarationDir: "dist/d",
|
||||||
@@ -19,15 +22,36 @@ export default defineConfig({
|
|||||||
allowSyntheticDefaultImports: true,
|
allowSyntheticDefaultImports: true,
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
external: ["vue", "lodash", "dayjs", "@fast-crud/fast-crud"],
|
external: [
|
||||||
|
"vue",
|
||||||
|
"lodash",
|
||||||
|
"dayjs",
|
||||||
|
"@certd/acme-client",
|
||||||
|
"@certd/plugin-cert",
|
||||||
|
"@certd/plugin-aliyun",
|
||||||
|
"@certd/plugin-tencent",
|
||||||
|
"@certd/plugin-huawei",
|
||||||
|
"@certd/plugin-host",
|
||||||
|
"@certd/plugin-tencent",
|
||||||
|
"@certd/plugin-util",
|
||||||
|
"log4js",
|
||||||
|
"@midwayjs/core",
|
||||||
|
"@midwayjs/decorator",
|
||||||
|
],
|
||||||
output: {
|
output: {
|
||||||
// Provide global variables to use in the UMD build
|
|
||||||
// for externalized deps
|
|
||||||
globals: {
|
globals: {
|
||||||
vue: "Vue",
|
vue: "Vue",
|
||||||
lodash: "_",
|
lodash: "_",
|
||||||
dayjs: "dayjs",
|
dayjs: "dayjs",
|
||||||
"@fast-crud/fast-crud": "FastCrud",
|
"@certd/plugin-cert": "CertdPluginCert",
|
||||||
|
"@certd/acme-client": "CertdAcmeClient",
|
||||||
|
"@certd/plugin-aliyun": "CertdPluginAliyun",
|
||||||
|
"@certd/plugin-host": "CertdPluginHost",
|
||||||
|
"@certd/plugin-huawei": "CertdPluginHuawei",
|
||||||
|
"@certd/plugin-util": "CertdPluginUtil",
|
||||||
|
log4js: "log4js",
|
||||||
|
"@midwayjs/core": "MidwayjsCore",
|
||||||
|
"@midwayjs/decorator": "MidwayjsDecorator",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -12,6 +12,7 @@
|
|||||||
"mocha": true
|
"mocha": true
|
||||||
},
|
},
|
||||||
"rules": {
|
"rules": {
|
||||||
|
"@typescript-eslint/no-var-requires": "off",
|
||||||
"@typescript-eslint/ban-ts-comment": "off",
|
"@typescript-eslint/ban-ts-comment": "off",
|
||||||
"@typescript-eslint/ban-ts-ignore": "off",
|
"@typescript-eslint/ban-ts-ignore": "off",
|
||||||
"@typescript-eslint/no-explicit-any": "off",
|
"@typescript-eslint/no-explicit-any": "off",
|
||||||
|
|||||||
2
packages/plugins/plugin-aliyun/.npmignore
Normal file
2
packages/plugins/plugin-aliyun/.npmignore
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
node_modules
|
||||||
|
src
|
||||||
@@ -3,6 +3,14 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
## [1.0.3](https://github.com/certd/certd/compare/v1.0.2...v1.0.3) (2023-05-25)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @certd/plugin-aliyun
|
||||||
|
|
||||||
|
## [1.0.2](https://github.com/certd/certd/compare/v1.0.1...v1.0.2) (2023-05-24)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @certd/plugin-aliyun
|
||||||
|
|
||||||
## [1.0.1](https://github.com/certd/certd/compare/v1.0.0...v1.0.1) (2023-05-24)
|
## [1.0.1](https://github.com/certd/certd/compare/v1.0.0...v1.0.1) (2023-05-24)
|
||||||
|
|
||||||
**Note:** Version bump only for package @certd/plugin-aliyun
|
**Note:** Version bump only for package @certd/plugin-aliyun
|
||||||
|
|||||||
@@ -1,38 +1,39 @@
|
|||||||
{
|
{
|
||||||
"name": "@certd/plugin-aliyun",
|
"name": "@certd/plugin-aliyun",
|
||||||
"private": false,
|
"private": false,
|
||||||
"version": "1.0.1",
|
"version": "1.0.3",
|
||||||
"main": "./src/index.ts",
|
"main": "./src/index.ts",
|
||||||
"module": "./src/index.ts",
|
"module": "./dist/plugin-aliyun.mjs",
|
||||||
"types": "./src/index.ts",
|
"types": "./dist/es/plugin-aliyun.d.ts",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"main": "./dist/plugin-aliyun.umd.js",
|
"main": "./dist/bundle.js",
|
||||||
"module": "./dist/plugin-aliyun.mjs",
|
"module": "./dist/plugin-aliyun.mjs",
|
||||||
"types": "./dist/es/plugin-aliyun.d.ts"
|
"types": "./dist/es/plugin-aliyun.d.ts"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
"build": "vue-tsc --noEmit && vite build",
|
"build1": "vue-tsc --noEmit && vite build",
|
||||||
|
"build": "rollup -c",
|
||||||
"preview": "vite preview"
|
"preview": "vite preview"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@alicloud/cs20151215": "^3.0.3",
|
"@alicloud/cs20151215": "^3.0.3",
|
||||||
"@alicloud/openapi-client": "^0.4.0",
|
"@alicloud/openapi-client": "^0.4.0",
|
||||||
"@alicloud/pop-core": "^1.7.10",
|
"@alicloud/pop-core": "^1.7.10",
|
||||||
"@certd/acme-client": "^1.0.1",
|
|
||||||
"@certd/pipeline": "^1.0.1",
|
|
||||||
"@certd/plugin-cert": "^1.0.1",
|
|
||||||
"@certd/plugin-util": "^1.0.1",
|
|
||||||
"dayjs": "^1.11.6",
|
|
||||||
"lodash": "^4.17.21",
|
|
||||||
"node-forge": "^0.10.0"
|
"node-forge": "^0.10.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@alicloud/cs20151215": "^3.0.3",
|
"@certd/acme-client": "^1.0.3",
|
||||||
"@alicloud/openapi-client": "^0.4.0",
|
"@certd/pipeline": "^1.0.3",
|
||||||
"@alicloud/pop-core": "^1.7.10",
|
"@certd/plugin-cert": "^1.0.3",
|
||||||
|
"@certd/plugin-util": "^1.0.3",
|
||||||
"@midwayjs/core": "^3.0.0",
|
"@midwayjs/core": "^3.0.0",
|
||||||
"@midwayjs/decorator": "^3.0.0",
|
"@midwayjs/decorator": "^3.0.0",
|
||||||
|
"@rollup/plugin-commonjs": "^23.0.4",
|
||||||
|
"@rollup/plugin-json": "^6.0.0",
|
||||||
|
"@rollup/plugin-node-resolve": "^15.0.1",
|
||||||
|
"@rollup/plugin-terser": "^0.4.3",
|
||||||
|
"@rollup/plugin-typescript": "^11.0.0",
|
||||||
"@types/chai": "^4.3.3",
|
"@types/chai": "^4.3.3",
|
||||||
"@types/lodash": "^4.14.186",
|
"@types/lodash": "^4.14.186",
|
||||||
"@types/mocha": "^10.0.0",
|
"@types/mocha": "^10.0.0",
|
||||||
@@ -40,14 +41,20 @@
|
|||||||
"@typescript-eslint/eslint-plugin": "^5.38.1",
|
"@typescript-eslint/eslint-plugin": "^5.38.1",
|
||||||
"@typescript-eslint/parser": "^5.38.1",
|
"@typescript-eslint/parser": "^5.38.1",
|
||||||
"chai": "^4.3.6",
|
"chai": "^4.3.6",
|
||||||
|
"dayjs": "^1.11.6",
|
||||||
"eslint": "^8.24.0",
|
"eslint": "^8.24.0",
|
||||||
"eslint-config-prettier": "^8.5.0",
|
"eslint-config-prettier": "^8.5.0",
|
||||||
"eslint-plugin-import": "^2.26.0",
|
"eslint-plugin-import": "^2.26.0",
|
||||||
"eslint-plugin-node": "^11.1.0",
|
"eslint-plugin-node": "^11.1.0",
|
||||||
"eslint-plugin-prettier": "^4.2.1",
|
"eslint-plugin-prettier": "^4.2.1",
|
||||||
|
"lodash": "^4.17.21",
|
||||||
"log4js": "^6.7.1",
|
"log4js": "^6.7.1",
|
||||||
"mocha": "^10.1.0",
|
"mocha": "^10.1.0",
|
||||||
|
"rollup": "^3.7.4",
|
||||||
|
"rollup-plugin-typescript2": "^0.34.1",
|
||||||
|
"rollup-plugin-visualizer": "^5.8.2",
|
||||||
"ts-node": "^10.9.1",
|
"ts-node": "^10.9.1",
|
||||||
|
"tslib": "^2.5.2",
|
||||||
"typescript": "^4.8.4",
|
"typescript": "^4.8.4",
|
||||||
"vite": "^3.1.0",
|
"vite": "^3.1.0",
|
||||||
"vue-tsc": "^0.38.9"
|
"vue-tsc": "^0.38.9"
|
||||||
|
|||||||
35
packages/plugins/plugin-aliyun/rollup.config.js
Normal file
35
packages/plugins/plugin-aliyun/rollup.config.js
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
const resolve = require("@rollup/plugin-node-resolve");
|
||||||
|
const commonjs = require("@rollup/plugin-commonjs");
|
||||||
|
const rollupTypescript = require("rollup-plugin-typescript2");
|
||||||
|
const json = require("@rollup/plugin-json");
|
||||||
|
const terser = require("@rollup/plugin-terser");
|
||||||
|
module.exports = {
|
||||||
|
input: "src/index.ts",
|
||||||
|
output: {
|
||||||
|
file: "dist/bundle.js",
|
||||||
|
format: "cjs",
|
||||||
|
},
|
||||||
|
plugins: [
|
||||||
|
// 解析第三方依赖
|
||||||
|
resolve(),
|
||||||
|
// 识别 commonjs 模式第三方依赖
|
||||||
|
commonjs(),
|
||||||
|
rollupTypescript(),
|
||||||
|
json(),
|
||||||
|
terser(),
|
||||||
|
],
|
||||||
|
external: [
|
||||||
|
"vue",
|
||||||
|
"lodash",
|
||||||
|
"dayjs",
|
||||||
|
"@certd/acme-client",
|
||||||
|
"@certd/pipeline",
|
||||||
|
"@certd/plugin-cert",
|
||||||
|
"@certd/plugin-aliyun",
|
||||||
|
"@certd/plugin-tencent",
|
||||||
|
"@certd/plugin-huawei",
|
||||||
|
"@certd/plugin-host",
|
||||||
|
"@certd/plugin-tencent",
|
||||||
|
"@certd/plugin-util",
|
||||||
|
],
|
||||||
|
};
|
||||||
@@ -1,3 +1,3 @@
|
|||||||
export * from "./access";
|
export * from "./access/index";
|
||||||
export * from "./dns-provider";
|
export * from "./dns-provider/index";
|
||||||
export * from "./plugin";
|
export * from "./plugin/index";
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import { AbstractTaskPlugin, Autowire, IAccessService, ILogger, IsTaskPlugin, Ru
|
|||||||
import { ROAClient } from "@alicloud/pop-core";
|
import { ROAClient } from "@alicloud/pop-core";
|
||||||
import { AliyunAccess } from "../../access";
|
import { AliyunAccess } from "../../access";
|
||||||
import { K8sClient } from "@certd/plugin-util";
|
import { K8sClient } from "@certd/plugin-util";
|
||||||
import { appendTimeSuffix } from "../../utils";
|
import { appendTimeSuffix } from "../../utils/index";
|
||||||
import { CertInfo } from "@certd/plugin-cert";
|
import { CertInfo } from "@certd/plugin-cert";
|
||||||
|
|
||||||
@IsTaskPlugin({
|
@IsTaskPlugin({
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
export * from "./deploy-to-cdn";
|
export * from "./deploy-to-cdn/index";
|
||||||
export * from "./deploy-to-ack-ingress";
|
export * from "./deploy-to-ack-ingress/index";
|
||||||
export * from "./upload-to-aliyun";
|
export * from "./upload-to-aliyun/index";
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
|
"importHelpers": false,
|
||||||
"target": "ESNext",
|
"target": "ESNext",
|
||||||
"useDefineForClassFields": true,
|
"useDefineForClassFields": true,
|
||||||
"module": "commonjs",
|
"module": "ESNext",
|
||||||
"moduleResolution": "Node",
|
"moduleResolution": "Node",
|
||||||
"strict": true,
|
"strict": true,
|
||||||
"jsx": "preserve",
|
"jsx": "preserve",
|
||||||
@@ -12,7 +13,11 @@
|
|||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
"lib": ["ESNext", "DOM"],
|
"lib": ["ESNext", "DOM"],
|
||||||
"skipLibCheck": true,
|
"skipLibCheck": true,
|
||||||
"experimentalDecorators": true
|
"experimentalDecorators": true,
|
||||||
|
"paths": {
|
||||||
|
"tslib" : ["./node_modules/tslib/tslib.d.ts"]
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue","test/**/*.ts"],
|
|
||||||
|
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue","test/**/*.ts","rollup.config.ts"],
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,7 @@
|
|||||||
import { defineConfig } from "vite";
|
import { defineConfig } from "vite";
|
||||||
|
import visualizer from "rollup-plugin-visualizer";
|
||||||
|
import typescript from "@rollup/plugin-typescript";
|
||||||
|
|
||||||
// https://vitejs.dev/config/
|
// https://vitejs.dev/config/
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [],
|
plugins: [],
|
||||||
@@ -8,15 +11,45 @@ export default defineConfig({
|
|||||||
name: "pipeline",
|
name: "pipeline",
|
||||||
},
|
},
|
||||||
rollupOptions: {
|
rollupOptions: {
|
||||||
external: ["vue", "lodash", "dayjs", "@fast-crud/fast-crud"],
|
plugins: [
|
||||||
|
// @ts-ignore
|
||||||
|
visualizer(),
|
||||||
|
// @ts-ignore
|
||||||
|
typescript({
|
||||||
|
target: "esnext",
|
||||||
|
rootDir: "src",
|
||||||
|
declaration: true,
|
||||||
|
declarationDir: "dist/d",
|
||||||
|
exclude: ["./node_modules/**", "./src/**/*.vue"],
|
||||||
|
allowSyntheticDefaultImports: true,
|
||||||
|
}),
|
||||||
|
],
|
||||||
|
external: [
|
||||||
|
"vue",
|
||||||
|
"lodash",
|
||||||
|
"dayjs",
|
||||||
|
"@certd/acme-client",
|
||||||
|
"@certd/pipeline",
|
||||||
|
"@certd/plugin-cert",
|
||||||
|
"@certd/plugin-aliyun",
|
||||||
|
"@certd/plugin-tencent",
|
||||||
|
"@certd/plugin-huawei",
|
||||||
|
"@certd/plugin-host",
|
||||||
|
"@certd/plugin-tencent",
|
||||||
|
"@certd/plugin-util",
|
||||||
|
],
|
||||||
output: {
|
output: {
|
||||||
// Provide global variables to use in the UMD build
|
|
||||||
// for externalized deps
|
|
||||||
globals: {
|
globals: {
|
||||||
vue: "Vue",
|
vue: "Vue",
|
||||||
"lodash": "_",
|
lodash: "_",
|
||||||
dayjs: "dayjs",
|
dayjs: "dayjs",
|
||||||
"@fast-crud/fast-crud": "FastCrud",
|
"@certd/plugin-cert": "CertdPluginCert",
|
||||||
|
"@certd/acme-client": "CertdAcmeClient",
|
||||||
|
"@certd/pipeline": "CertdPluginPipeline",
|
||||||
|
"@certd/plugin-aliyun": "CertdPluginAliyun",
|
||||||
|
"@certd/plugin-host": "CertdPluginHost",
|
||||||
|
"@certd/plugin-huawei": "CertdPluginHuawei",
|
||||||
|
"@certd/plugin-util": "CertdPluginUtil",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -12,6 +12,7 @@
|
|||||||
"mocha": true
|
"mocha": true
|
||||||
},
|
},
|
||||||
"rules": {
|
"rules": {
|
||||||
|
"@typescript-eslint/no-var-requires": "off",
|
||||||
"@typescript-eslint/ban-ts-comment": "off",
|
"@typescript-eslint/ban-ts-comment": "off",
|
||||||
"@typescript-eslint/ban-ts-ignore": "off",
|
"@typescript-eslint/ban-ts-ignore": "off",
|
||||||
"@typescript-eslint/no-explicit-any": "off",
|
"@typescript-eslint/no-explicit-any": "off",
|
||||||
|
|||||||
2
packages/plugins/plugin-all/.npmignore
Normal file
2
packages/plugins/plugin-all/.npmignore
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
node_modules
|
||||||
|
src
|
||||||
@@ -3,6 +3,14 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
## [1.0.3](https://github.com/certd/certd/compare/v1.0.2...v1.0.3) (2023-05-25)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @certd/plugin-all
|
||||||
|
|
||||||
|
## [1.0.2](https://github.com/certd/certd/compare/v1.0.1...v1.0.2) (2023-05-24)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @certd/plugin-all
|
||||||
|
|
||||||
## [1.0.1](https://github.com/certd/certd/compare/v1.0.0...v1.0.1) (2023-05-24)
|
## [1.0.1](https://github.com/certd/certd/compare/v1.0.0...v1.0.1) (2023-05-24)
|
||||||
|
|
||||||
**Note:** Version bump only for package @certd/plugin-all
|
**Note:** Version bump only for package @certd/plugin-all
|
||||||
|
|||||||
@@ -1,49 +1,49 @@
|
|||||||
{
|
{
|
||||||
"name": "@certd/plugin-all",
|
"name": "@certd/plugin-all",
|
||||||
"private": false,
|
"private": false,
|
||||||
"version": "1.0.1",
|
"version": "1.0.3",
|
||||||
"main": "./src/index.ts",
|
"main": "./src/index.ts",
|
||||||
"module": "./src/index.ts",
|
"module": "./dist/plugin-all.mjs",
|
||||||
"types": "./src/index.ts",
|
"types": "./dist/es/plugin-all.d.ts",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"main": "./dist/plugin-all.umd.js",
|
"main": "./dist/bundle.js",
|
||||||
"module": "./dist/plugin-all.mjs",
|
"module": "./dist/plugin-all.mjs",
|
||||||
"types": "./dist/es/plugin-all.d.ts"
|
"types": "./dist/es/plugin-all.d.ts"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
"build": "vue-tsc --noEmit && vite build",
|
"build2": " vite build",
|
||||||
|
"build": "rollup -c",
|
||||||
"preview": "vite preview"
|
"preview": "vite preview"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
|
||||||
"@certd/plugin-aliyun": "^1.0.1",
|
|
||||||
"@certd/plugin-cert": "^1.0.1",
|
|
||||||
"@certd/plugin-host": "^1.0.1",
|
|
||||||
"@certd/plugin-huawei": "^1.0.1",
|
|
||||||
"@certd/plugin-tencent": "^1.0.1"
|
|
||||||
},
|
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@alicloud/cs20151215": "^3.0.3",
|
"@certd/pipeline": "^1.0.3",
|
||||||
"@alicloud/openapi-client": "^0.4.0",
|
"@certd/plugin-aliyun": "^1.0.3",
|
||||||
"@alicloud/pop-core": "^1.7.10",
|
"@certd/plugin-cert": "^1.0.3",
|
||||||
"@certd/pipeline": "^1.0.1",
|
"@certd/plugin-host": "^1.0.3",
|
||||||
"@midwayjs/core": "^3.0.0",
|
"@certd/plugin-huawei": "^1.0.3",
|
||||||
"@midwayjs/decorator": "^3.0.0",
|
"@certd/plugin-tencent": "^1.0.3",
|
||||||
"@types/chai": "^4.3.3",
|
"@rollup/plugin-commonjs": "^23.0.4",
|
||||||
|
"@rollup/plugin-json": "^6.0.0",
|
||||||
|
"@rollup/plugin-node-resolve": "^15.0.1",
|
||||||
|
"@rollup/plugin-terser": "^0.4.3",
|
||||||
|
"@rollup/plugin-typescript": "^11.0.0",
|
||||||
|
"@types/chai": "^4.3.5",
|
||||||
|
"@types/jest": "^26.0.24",
|
||||||
"@types/lodash": "^4.14.186",
|
"@types/lodash": "^4.14.186",
|
||||||
"@types/mocha": "^10.0.0",
|
|
||||||
"@types/node-forge": "^1.3.0",
|
"@types/node-forge": "^1.3.0",
|
||||||
"@typescript-eslint/eslint-plugin": "^5.38.1",
|
"@typescript-eslint/eslint-plugin": "^5.38.1",
|
||||||
"@typescript-eslint/parser": "^5.38.1",
|
"@typescript-eslint/parser": "^5.38.1",
|
||||||
"chai": "^4.3.6",
|
|
||||||
"eslint": "^8.24.0",
|
"eslint": "^8.24.0",
|
||||||
"eslint-config-prettier": "^8.5.0",
|
"eslint-config-prettier": "^8.5.0",
|
||||||
"eslint-plugin-import": "^2.26.0",
|
"eslint-plugin-import": "^2.26.0",
|
||||||
"eslint-plugin-node": "^11.1.0",
|
"eslint-plugin-node": "^11.1.0",
|
||||||
"eslint-plugin-prettier": "^4.2.1",
|
"eslint-plugin-prettier": "^4.2.1",
|
||||||
"log4js": "^6.7.1",
|
"rollup": "^3.7.4",
|
||||||
"mocha": "^10.1.0",
|
"rollup-plugin-typescript2": "^0.34.1",
|
||||||
|
"rollup-plugin-visualizer": "^5.8.2",
|
||||||
"ts-node": "^10.9.1",
|
"ts-node": "^10.9.1",
|
||||||
|
"tslib": "^2.5.2",
|
||||||
"typescript": "^4.8.4",
|
"typescript": "^4.8.4",
|
||||||
"vite": "^3.1.0",
|
"vite": "^3.1.0",
|
||||||
"vue-tsc": "^0.38.9"
|
"vue-tsc": "^0.38.9"
|
||||||
|
|||||||
35
packages/plugins/plugin-all/rollup.config.js
Normal file
35
packages/plugins/plugin-all/rollup.config.js
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
const resolve = require("@rollup/plugin-node-resolve");
|
||||||
|
const commonjs = require("@rollup/plugin-commonjs");
|
||||||
|
const rollupTypescript = require("rollup-plugin-typescript2");
|
||||||
|
const json = require("@rollup/plugin-json");
|
||||||
|
const terser = require("@rollup/plugin-terser");
|
||||||
|
module.exports = {
|
||||||
|
input: "src/index.ts",
|
||||||
|
output: {
|
||||||
|
file: "dist/bundle.js",
|
||||||
|
format: "cjs",
|
||||||
|
},
|
||||||
|
plugins: [
|
||||||
|
// 解析第三方依赖
|
||||||
|
resolve(),
|
||||||
|
// 识别 commonjs 模式第三方依赖
|
||||||
|
commonjs(),
|
||||||
|
rollupTypescript(),
|
||||||
|
json(),
|
||||||
|
terser(),
|
||||||
|
],
|
||||||
|
external: [
|
||||||
|
"vue",
|
||||||
|
"lodash",
|
||||||
|
"dayjs",
|
||||||
|
"@certd/acme-client",
|
||||||
|
"@certd/pipeline",
|
||||||
|
"@certd/plugin-cert",
|
||||||
|
"@certd/plugin-aliyun",
|
||||||
|
"@certd/plugin-tencent",
|
||||||
|
"@certd/plugin-huawei",
|
||||||
|
"@certd/plugin-host",
|
||||||
|
"@certd/plugin-tencent",
|
||||||
|
"@certd/plugin-util",
|
||||||
|
],
|
||||||
|
};
|
||||||
@@ -7,6 +7,7 @@ import "../../src";
|
|||||||
import "../plugin/echo-plugin";
|
import "../plugin/echo-plugin";
|
||||||
describe("pipeline-hauwei-test", function () {
|
describe("pipeline-hauwei-test", function () {
|
||||||
it("#pipeline", async function () {
|
it("#pipeline", async function () {
|
||||||
|
//@ts-ignore
|
||||||
this.timeout(120000);
|
this.timeout(120000);
|
||||||
async function onChanged(history: RunHistory) {
|
async function onChanged(history: RunHistory) {
|
||||||
console.log("changed:");
|
console.log("changed:");
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ import "../plugin/echo-plugin";
|
|||||||
|
|
||||||
describe("pipeline", function () {
|
describe("pipeline", function () {
|
||||||
it("#pipeline", async function () {
|
it("#pipeline", async function () {
|
||||||
|
//@ts-ignore
|
||||||
this.timeout(120000);
|
this.timeout(120000);
|
||||||
async function onChanged(history: RunHistory) {
|
async function onChanged(history: RunHistory) {
|
||||||
console.log("changed:");
|
console.log("changed:");
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"target": "ESNext",
|
"target": "ESNext",
|
||||||
"useDefineForClassFields": true,
|
"useDefineForClassFields": true,
|
||||||
"module": "commonjs",
|
"module": "ESNext",
|
||||||
"moduleResolution": "Node",
|
"moduleResolution": "Node",
|
||||||
"strict": true,
|
"strict": true,
|
||||||
"jsx": "preserve",
|
"jsx": "preserve",
|
||||||
@@ -12,7 +12,10 @@
|
|||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
"lib": ["ESNext", "DOM"],
|
"lib": ["ESNext", "DOM"],
|
||||||
"skipLibCheck": true,
|
"skipLibCheck": true,
|
||||||
"experimentalDecorators": true
|
"experimentalDecorators": true,
|
||||||
|
"paths": {
|
||||||
|
"tslib" : ["./node_modules/tslib/tslib.d.ts"]
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue","test/**/*.ts"],
|
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue","test/**/*.ts"],
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,22 +1,55 @@
|
|||||||
import { defineConfig } from "vite";
|
import { defineConfig } from "vite";
|
||||||
|
import visualizer from "rollup-plugin-visualizer";
|
||||||
|
import typescript from "@rollup/plugin-typescript";
|
||||||
// https://vitejs.dev/config/
|
// https://vitejs.dev/config/
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [],
|
plugins: [],
|
||||||
build: {
|
build: {
|
||||||
lib: {
|
lib: {
|
||||||
entry: "src/index.ts",
|
entry: "src/index.ts",
|
||||||
name: "pipeline",
|
name: "CertdPluginAll",
|
||||||
},
|
},
|
||||||
rollupOptions: {
|
rollupOptions: {
|
||||||
external: ["vue", "lodash", "dayjs", "@fast-crud/fast-crud"],
|
plugins: [
|
||||||
|
// @ts-ignore
|
||||||
|
visualizer(),
|
||||||
|
// @ts-ignore
|
||||||
|
typescript({
|
||||||
|
target: "esnext",
|
||||||
|
rootDir: "src",
|
||||||
|
declaration: true,
|
||||||
|
declarationDir: "dist/d",
|
||||||
|
exclude: ["./node_modules/**", "./src/**/*.vue"],
|
||||||
|
allowSyntheticDefaultImports: true,
|
||||||
|
}),
|
||||||
|
],
|
||||||
|
external: [
|
||||||
|
"vue",
|
||||||
|
"lodash",
|
||||||
|
"dayjs",
|
||||||
|
"@certd/acme-client",
|
||||||
|
"@certd/pipeline",
|
||||||
|
"@certd/plugin-cert",
|
||||||
|
"@certd/plugin-aliyun",
|
||||||
|
"@certd/plugin-tencent",
|
||||||
|
"@certd/plugin-huawei",
|
||||||
|
"@certd/plugin-host",
|
||||||
|
"@certd/plugin-tencent",
|
||||||
|
"@certd/plugin-util",
|
||||||
|
],
|
||||||
output: {
|
output: {
|
||||||
// Provide global variables to use in the UMD build
|
|
||||||
// for externalized deps
|
|
||||||
globals: {
|
globals: {
|
||||||
vue: "Vue",
|
vue: "Vue",
|
||||||
"lodash": "_",
|
lodash: "_",
|
||||||
dayjs: "dayjs",
|
dayjs: "dayjs",
|
||||||
"@fast-crud/fast-crud": "FastCrud",
|
"@certd/plugin-cert": "CertdPluginCert",
|
||||||
|
"@certd/acme-client": "CertdAcmeClient",
|
||||||
|
"@certd/pipeline": "CertdPluginPipeline",
|
||||||
|
"@certd/plugin-aliyun": "CertdPluginAliyun",
|
||||||
|
"@certd/plugin-host": "CertdPluginHost",
|
||||||
|
"@certd/plugin-huawei": "CertdPluginHuawei",
|
||||||
|
"@certd/plugin-util": "CertdPluginUtil",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
2
packages/plugins/plugin-cert/.npmignore
Normal file
2
packages/plugins/plugin-cert/.npmignore
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
node_modules
|
||||||
|
src
|
||||||
@@ -3,6 +3,14 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
## [1.0.3](https://github.com/certd/certd/compare/v1.0.2...v1.0.3) (2023-05-25)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @certd/plugin-cert
|
||||||
|
|
||||||
|
## [1.0.2](https://github.com/certd/certd/compare/v1.0.1...v1.0.2) (2023-05-24)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @certd/plugin-cert
|
||||||
|
|
||||||
## [1.0.1](https://github.com/certd/certd/compare/v1.0.0...v1.0.1) (2023-05-24)
|
## [1.0.1](https://github.com/certd/certd/compare/v1.0.0...v1.0.1) (2023-05-24)
|
||||||
|
|
||||||
**Note:** Version bump only for package @certd/plugin-cert
|
**Note:** Version bump only for package @certd/plugin-cert
|
||||||
|
|||||||
@@ -1,23 +1,24 @@
|
|||||||
{
|
{
|
||||||
"name": "@certd/plugin-cert",
|
"name": "@certd/plugin-cert",
|
||||||
"private": false,
|
"private": false,
|
||||||
"version": "1.0.1",
|
"version": "1.0.3",
|
||||||
"main": "./src/index.ts",
|
"main": "./src/index.ts",
|
||||||
"module": "./src/index.ts",
|
"module": "./dist/plugin-cert.mjs",
|
||||||
"types": "./src/index.ts",
|
"types": "./dist/es/plugin-cert.d.ts",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"main": "./dist/plugin-cert.umd.js",
|
"main": "./dist/bundle.js",
|
||||||
"module": "./dist/plugin-cert.mjs",
|
"module": "./dist/plugin-cert.mjs",
|
||||||
"types": "./dist/es/plugin-cert.d.ts"
|
"types": "./dist/es/plugin-cert.d.ts"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
"build": "vue-tsc --noEmit && vite build",
|
"build": "rollup -c",
|
||||||
|
"build2": "vue-tsc --noEmit && vite build",
|
||||||
"preview": "vite preview"
|
"preview": "vite preview"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@certd/acme-client": "^1.0.1",
|
"@certd/acme-client": "^1.0.3",
|
||||||
"@certd/pipeline": "^1.0.1",
|
"@certd/pipeline": "^1.0.3",
|
||||||
"node-forge": "^0.10.0"
|
"node-forge": "^0.10.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
@@ -26,6 +27,11 @@
|
|||||||
"@alicloud/pop-core": "^1.7.10",
|
"@alicloud/pop-core": "^1.7.10",
|
||||||
"@midwayjs/core": "^3.0.0",
|
"@midwayjs/core": "^3.0.0",
|
||||||
"@midwayjs/decorator": "^3.0.0",
|
"@midwayjs/decorator": "^3.0.0",
|
||||||
|
"@rollup/plugin-commonjs": "^23.0.4",
|
||||||
|
"@rollup/plugin-json": "^6.0.0",
|
||||||
|
"@rollup/plugin-node-resolve": "^15.0.1",
|
||||||
|
"@rollup/plugin-terser": "^0.4.3",
|
||||||
|
"@rollup/plugin-typescript": "^11.0.0",
|
||||||
"@types/chai": "^4.3.3",
|
"@types/chai": "^4.3.3",
|
||||||
"@types/lodash": "^4.14.186",
|
"@types/lodash": "^4.14.186",
|
||||||
"@types/mocha": "^10.0.0",
|
"@types/mocha": "^10.0.0",
|
||||||
@@ -42,7 +48,10 @@
|
|||||||
"lodash": "^4.17.21",
|
"lodash": "^4.17.21",
|
||||||
"log4js": "^6.7.1",
|
"log4js": "^6.7.1",
|
||||||
"mocha": "^10.1.0",
|
"mocha": "^10.1.0",
|
||||||
|
"rollup": "^3.7.4",
|
||||||
|
"rollup-plugin-visualizer": "^5.8.2",
|
||||||
"ts-node": "^10.9.1",
|
"ts-node": "^10.9.1",
|
||||||
|
"tslib": "^2.5.2",
|
||||||
"typescript": "^4.8.4",
|
"typescript": "^4.8.4",
|
||||||
"vite": "^3.1.0",
|
"vite": "^3.1.0",
|
||||||
"vue-tsc": "^0.38.9"
|
"vue-tsc": "^0.38.9"
|
||||||
|
|||||||
35
packages/plugins/plugin-cert/rollup.config.js
Normal file
35
packages/plugins/plugin-cert/rollup.config.js
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
const resolve = require("@rollup/plugin-node-resolve");
|
||||||
|
const commonjs = require("@rollup/plugin-commonjs");
|
||||||
|
const rollupTypescript = require("rollup-plugin-typescript2");
|
||||||
|
const json = require("@rollup/plugin-json");
|
||||||
|
const terser = require("@rollup/plugin-terser");
|
||||||
|
module.exports = {
|
||||||
|
input: "src/index.ts",
|
||||||
|
output: {
|
||||||
|
file: "dist/bundle.js",
|
||||||
|
format: "cjs",
|
||||||
|
},
|
||||||
|
plugins: [
|
||||||
|
// 解析第三方依赖
|
||||||
|
resolve(),
|
||||||
|
// 识别 commonjs 模式第三方依赖
|
||||||
|
commonjs(),
|
||||||
|
rollupTypescript(),
|
||||||
|
json(),
|
||||||
|
terser(),
|
||||||
|
],
|
||||||
|
external: [
|
||||||
|
"vue",
|
||||||
|
"lodash",
|
||||||
|
"dayjs",
|
||||||
|
"@certd/acme-client",
|
||||||
|
"@certd/pipeline",
|
||||||
|
"@certd/plugin-cert",
|
||||||
|
"@certd/plugin-aliyun",
|
||||||
|
"@certd/plugin-tencent",
|
||||||
|
"@certd/plugin-huawei",
|
||||||
|
"@certd/plugin-host",
|
||||||
|
"@certd/plugin-tencent",
|
||||||
|
"@certd/plugin-util",
|
||||||
|
],
|
||||||
|
};
|
||||||
@@ -1,2 +1 @@
|
|||||||
export * from "./cert-plugin";
|
export * from "./cert-plugin";
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,8 @@
|
|||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"noImplicitAny": true,
|
|
||||||
"target": "ESNext",
|
"target": "ESNext",
|
||||||
"useDefineForClassFields": true,
|
"useDefineForClassFields": true,
|
||||||
"module": "commonjs",
|
"module": "ESNext",
|
||||||
"moduleResolution": "Node",
|
"moduleResolution": "Node",
|
||||||
"strict": true,
|
"strict": true,
|
||||||
"jsx": "preserve",
|
"jsx": "preserve",
|
||||||
|
|||||||
@@ -1,22 +1,54 @@
|
|||||||
import { defineConfig } from "vite";
|
import { defineConfig } from "vite";
|
||||||
|
import visualizer from "rollup-plugin-visualizer";
|
||||||
|
import typescript from "@rollup/plugin-typescript";
|
||||||
// https://vitejs.dev/config/
|
// https://vitejs.dev/config/
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [],
|
plugins: [],
|
||||||
build: {
|
build: {
|
||||||
lib: {
|
lib: {
|
||||||
entry: "src/index.ts",
|
entry: "src/index.ts",
|
||||||
name: "pipeline",
|
name: "CertdPluginCert",
|
||||||
},
|
},
|
||||||
rollupOptions: {
|
rollupOptions: {
|
||||||
external: ["vue", "lodash", "dayjs", "@fast-crud/fast-crud"],
|
plugins: [
|
||||||
|
// @ts-ignore
|
||||||
|
visualizer(),
|
||||||
|
// @ts-ignore
|
||||||
|
typescript({
|
||||||
|
target: "esnext",
|
||||||
|
rootDir: "src",
|
||||||
|
declaration: true,
|
||||||
|
declarationDir: "dist/d",
|
||||||
|
exclude: ["./node_modules/**", "./src/**/*.vue"],
|
||||||
|
allowSyntheticDefaultImports: true,
|
||||||
|
}),
|
||||||
|
],
|
||||||
|
external: [
|
||||||
|
"vue",
|
||||||
|
"lodash",
|
||||||
|
"dayjs",
|
||||||
|
"@certd/acme-client",
|
||||||
|
"@certd/pipeline",
|
||||||
|
"@certd/plugin-cert",
|
||||||
|
"@certd/plugin-aliyun",
|
||||||
|
"@certd/plugin-tencent",
|
||||||
|
"@certd/plugin-huawei",
|
||||||
|
"@certd/plugin-host",
|
||||||
|
"@certd/plugin-tencent",
|
||||||
|
"@certd/plugin-util",
|
||||||
|
],
|
||||||
output: {
|
output: {
|
||||||
// Provide global variables to use in the UMD build
|
|
||||||
// for externalized deps
|
|
||||||
globals: {
|
globals: {
|
||||||
vue: "Vue",
|
vue: "Vue",
|
||||||
"lodash": "_",
|
lodash: "_",
|
||||||
dayjs: "dayjs",
|
dayjs: "dayjs",
|
||||||
"@fast-crud/fast-crud": "FastCrud",
|
"@certd/plugin-cert": "CertdPluginCert",
|
||||||
|
"@certd/acme-client": "CertdAcmeClient",
|
||||||
|
"@certd/pipeline": "CertdPluginPipeline",
|
||||||
|
"@certd/plugin-aliyun": "CertdPluginAliyun",
|
||||||
|
"@certd/plugin-host": "CertdPluginHost",
|
||||||
|
"@certd/plugin-huawei": "CertdPluginHuawei",
|
||||||
|
"@certd/plugin-util": "CertdPluginUtil",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
2
packages/plugins/plugin-host/.npmignore
Normal file
2
packages/plugins/plugin-host/.npmignore
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
node_modules
|
||||||
|
src
|
||||||
@@ -3,6 +3,14 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
## [1.0.3](https://github.com/certd/certd/compare/v1.0.2...v1.0.3) (2023-05-25)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @certd/plugin-host
|
||||||
|
|
||||||
|
## [1.0.2](https://github.com/certd/certd/compare/v1.0.1...v1.0.2) (2023-05-24)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @certd/plugin-host
|
||||||
|
|
||||||
## [1.0.1](https://github.com/certd/certd/compare/v1.0.0...v1.0.1) (2023-05-24)
|
## [1.0.1](https://github.com/certd/certd/compare/v1.0.0...v1.0.1) (2023-05-24)
|
||||||
|
|
||||||
**Note:** Version bump only for package @certd/plugin-host
|
**Note:** Version bump only for package @certd/plugin-host
|
||||||
|
|||||||
@@ -1,23 +1,24 @@
|
|||||||
{
|
{
|
||||||
"name": "@certd/plugin-host",
|
"name": "@certd/plugin-host",
|
||||||
"private": false,
|
"private": false,
|
||||||
"version": "1.0.1",
|
"version": "1.0.3",
|
||||||
"main": "./src/index.ts",
|
"main": "./src/index.ts",
|
||||||
"module": "./src/index.ts",
|
"module": "./dist/plugin-host.mjs",
|
||||||
"types": "./src/index.ts",
|
"types": "./dist/es/plugin-host.d.ts",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"main": "./dist/plugin-host.umd.js",
|
"main": "./dist/bundle.js",
|
||||||
"module": "./dist/plugin-host.mjs",
|
"module": "./dist/plugin-host.mjs",
|
||||||
"types": "./dist/es/plugin-host.d.ts"
|
"types": "./dist/es/plugin-host.d.ts"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
"build": "vue-tsc --noEmit && vite build",
|
"build": "rollup -c",
|
||||||
|
"build2": "vue-tsc --noEmit && vite build",
|
||||||
"preview": "vite preview"
|
"preview": "vite preview"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@certd/pipeline": "^1.0.1",
|
"@certd/pipeline": "^1.0.3",
|
||||||
"@certd/plugin-cert": "^1.0.1",
|
"@certd/plugin-cert": "^1.0.3",
|
||||||
"ssh2": "^0.8.9"
|
"ssh2": "^0.8.9"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
@@ -26,6 +27,11 @@
|
|||||||
"@alicloud/pop-core": "^1.7.10",
|
"@alicloud/pop-core": "^1.7.10",
|
||||||
"@midwayjs/core": "^3.0.0",
|
"@midwayjs/core": "^3.0.0",
|
||||||
"@midwayjs/decorator": "^3.0.0",
|
"@midwayjs/decorator": "^3.0.0",
|
||||||
|
"@rollup/plugin-commonjs": "^23.0.4",
|
||||||
|
"@rollup/plugin-json": "^6.0.0",
|
||||||
|
"@rollup/plugin-node-resolve": "^15.0.1",
|
||||||
|
"@rollup/plugin-terser": "^0.4.3",
|
||||||
|
"@rollup/plugin-typescript": "^11.0.0",
|
||||||
"@types/chai": "^4.3.3",
|
"@types/chai": "^4.3.3",
|
||||||
"@types/lodash": "^4.14.186",
|
"@types/lodash": "^4.14.186",
|
||||||
"@types/mocha": "^10.0.0",
|
"@types/mocha": "^10.0.0",
|
||||||
@@ -43,7 +49,10 @@
|
|||||||
"lodash": "^4.17.20",
|
"lodash": "^4.17.20",
|
||||||
"log4js": "^6.3.0",
|
"log4js": "^6.3.0",
|
||||||
"mocha": "^10.1.0",
|
"mocha": "^10.1.0",
|
||||||
|
"rollup": "^3.7.4",
|
||||||
|
"rollup-plugin-visualizer": "^5.8.2",
|
||||||
"ts-node": "^10.9.1",
|
"ts-node": "^10.9.1",
|
||||||
|
"tslib": "^2.5.2",
|
||||||
"typescript": "^4.8.4",
|
"typescript": "^4.8.4",
|
||||||
"vite": "^3.1.0",
|
"vite": "^3.1.0",
|
||||||
"vue-tsc": "^0.38.9"
|
"vue-tsc": "^0.38.9"
|
||||||
|
|||||||
35
packages/plugins/plugin-host/rollup.config.js
Normal file
35
packages/plugins/plugin-host/rollup.config.js
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
const resolve = require("@rollup/plugin-node-resolve");
|
||||||
|
const commonjs = require("@rollup/plugin-commonjs");
|
||||||
|
const rollupTypescript = require("rollup-plugin-typescript2");
|
||||||
|
const json = require("@rollup/plugin-json");
|
||||||
|
const terser = require("@rollup/plugin-terser");
|
||||||
|
module.exports = {
|
||||||
|
input: "src/index.ts",
|
||||||
|
output: {
|
||||||
|
file: "dist/bundle.js",
|
||||||
|
format: "cjs",
|
||||||
|
},
|
||||||
|
plugins: [
|
||||||
|
// 解析第三方依赖
|
||||||
|
resolve(),
|
||||||
|
// 识别 commonjs 模式第三方依赖
|
||||||
|
commonjs(),
|
||||||
|
rollupTypescript(),
|
||||||
|
json(),
|
||||||
|
terser(),
|
||||||
|
],
|
||||||
|
external: [
|
||||||
|
"vue",
|
||||||
|
"lodash",
|
||||||
|
"dayjs",
|
||||||
|
"@certd/acme-client",
|
||||||
|
"@certd/pipeline",
|
||||||
|
"@certd/plugin-cert",
|
||||||
|
"@certd/plugin-aliyun",
|
||||||
|
"@certd/plugin-tencent",
|
||||||
|
"@certd/plugin-huawei",
|
||||||
|
"@certd/plugin-host",
|
||||||
|
"@certd/plugin-tencent",
|
||||||
|
"@certd/plugin-util",
|
||||||
|
],
|
||||||
|
};
|
||||||
@@ -1,9 +1,8 @@
|
|||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"noImplicitAny": true,
|
|
||||||
"target": "ESNext",
|
"target": "ESNext",
|
||||||
"useDefineForClassFields": true,
|
"useDefineForClassFields": true,
|
||||||
"module": "commonjs",
|
"module": "ESNext",
|
||||||
"moduleResolution": "Node",
|
"moduleResolution": "Node",
|
||||||
"strict": true,
|
"strict": true,
|
||||||
"jsx": "preserve",
|
"jsx": "preserve",
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
import { defineConfig } from "vite";
|
import { defineConfig } from "vite";
|
||||||
|
import visualizer from "rollup-plugin-visualizer";
|
||||||
|
import typescript from "@rollup/plugin-typescript";
|
||||||
// https://vitejs.dev/config/
|
// https://vitejs.dev/config/
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [],
|
plugins: [],
|
||||||
@@ -8,17 +10,45 @@ export default defineConfig({
|
|||||||
name: "pipeline",
|
name: "pipeline",
|
||||||
},
|
},
|
||||||
rollupOptions: {
|
rollupOptions: {
|
||||||
external: ["vue", "lodash", "dayjs", "@fast-crud/fast-crud", "log4js", "lodash", "@certd/pipeline"],
|
plugins: [
|
||||||
|
// @ts-ignore
|
||||||
|
visualizer(),
|
||||||
|
// @ts-ignore
|
||||||
|
typescript({
|
||||||
|
target: "esnext",
|
||||||
|
rootDir: "src",
|
||||||
|
declaration: true,
|
||||||
|
declarationDir: "dist/d",
|
||||||
|
exclude: ["./node_modules/**", "./src/**/*.vue"],
|
||||||
|
allowSyntheticDefaultImports: true,
|
||||||
|
}),
|
||||||
|
],
|
||||||
|
external: [
|
||||||
|
"vue",
|
||||||
|
"lodash",
|
||||||
|
"dayjs",
|
||||||
|
"@certd/acme-client",
|
||||||
|
"@certd/pipeline",
|
||||||
|
"@certd/plugin-cert",
|
||||||
|
"@certd/plugin-aliyun",
|
||||||
|
"@certd/plugin-tencent",
|
||||||
|
"@certd/plugin-huawei",
|
||||||
|
"@certd/plugin-host",
|
||||||
|
"@certd/plugin-tencent",
|
||||||
|
"@certd/plugin-util",
|
||||||
|
],
|
||||||
output: {
|
output: {
|
||||||
// Provide global variables to use in the UMD build
|
|
||||||
// for externalized deps
|
|
||||||
globals: {
|
globals: {
|
||||||
vue: "Vue",
|
vue: "Vue",
|
||||||
lodash: "_",
|
lodash: "_",
|
||||||
dayjs: "dayjs",
|
dayjs: "dayjs",
|
||||||
"@fast-crud/fast-crud": "FastCrud",
|
"@certd/plugin-cert": "CertdPluginCert",
|
||||||
log4js: "log4js",
|
"@certd/acme-client": "CertdAcmeClient",
|
||||||
"@certd/pipeline": "pipeline",
|
"@certd/pipeline": "CertdPluginPipeline",
|
||||||
|
"@certd/plugin-aliyun": "CertdPluginAliyun",
|
||||||
|
"@certd/plugin-host": "CertdPluginHost",
|
||||||
|
"@certd/plugin-huawei": "CertdPluginHuawei",
|
||||||
|
"@certd/plugin-util": "CertdPluginUtil",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
2
packages/plugins/plugin-huawei/.npmignore
Normal file
2
packages/plugins/plugin-huawei/.npmignore
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
node_modules
|
||||||
|
src
|
||||||
@@ -3,6 +3,14 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
## [1.0.3](https://github.com/certd/certd/compare/v1.0.2...v1.0.3) (2023-05-25)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @certd/plugin-huawei
|
||||||
|
|
||||||
|
## [1.0.2](https://github.com/certd/certd/compare/v1.0.1...v1.0.2) (2023-05-24)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @certd/plugin-huawei
|
||||||
|
|
||||||
## [1.0.1](https://github.com/certd/certd/compare/v1.0.0...v1.0.1) (2023-05-24)
|
## [1.0.1](https://github.com/certd/certd/compare/v1.0.0...v1.0.1) (2023-05-24)
|
||||||
|
|
||||||
**Note:** Version bump only for package @certd/plugin-huawei
|
**Note:** Version bump only for package @certd/plugin-huawei
|
||||||
|
|||||||
@@ -1,25 +1,26 @@
|
|||||||
{
|
{
|
||||||
"name": "@certd/plugin-huawei",
|
"name": "@certd/plugin-huawei",
|
||||||
"private": false,
|
"private": false,
|
||||||
"version": "1.0.1",
|
"version": "1.0.3",
|
||||||
"main": "./src/index.ts",
|
"main": "./src/index.ts",
|
||||||
"module": "./src/index.ts",
|
"module": "./dist/plugin-huawei.mjs",
|
||||||
"types": "./src/index.ts",
|
"types": "./dist/es/plugin-huawei.d.ts",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"main": "./dist/plugin-huawei.umd.js",
|
"main": "./dist/bundle.js",
|
||||||
"module": "./dist/plugin-huawei.mjs",
|
"module": "./dist/plugin-huawei.mjs",
|
||||||
"types": "./dist/es/plugin-huawei.d.ts"
|
"types": "./dist/es/plugin-huawei.d.ts"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
"build": "vue-tsc --noEmit && vite build",
|
"build": "rollup -c",
|
||||||
|
"build2": "vue-tsc --noEmit && vite build",
|
||||||
"preview": "vite preview"
|
"preview": "vite preview"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@certd/acme-client": "^1.0.1",
|
"@certd/acme-client": "^1.0.3",
|
||||||
"@certd/pipeline": "^1.0.1",
|
"@certd/pipeline": "^1.0.3",
|
||||||
"@certd/plugin-cert": "^1.0.1",
|
"@certd/plugin-cert": "^1.0.3",
|
||||||
"@certd/plugin-util": "^1.0.1",
|
"@certd/plugin-util": "^1.0.3",
|
||||||
"axios": "^0.27.2",
|
"axios": "^0.27.2",
|
||||||
"dayjs": "^1.11.6",
|
"dayjs": "^1.11.6",
|
||||||
"lodash": "^4.17.21",
|
"lodash": "^4.17.21",
|
||||||
@@ -31,6 +32,11 @@
|
|||||||
"@alicloud/pop-core": "^1.7.10",
|
"@alicloud/pop-core": "^1.7.10",
|
||||||
"@midwayjs/core": "^3.0.0",
|
"@midwayjs/core": "^3.0.0",
|
||||||
"@midwayjs/decorator": "^3.0.0",
|
"@midwayjs/decorator": "^3.0.0",
|
||||||
|
"@rollup/plugin-commonjs": "^23.0.4",
|
||||||
|
"@rollup/plugin-json": "^6.0.0",
|
||||||
|
"@rollup/plugin-node-resolve": "^15.0.1",
|
||||||
|
"@rollup/plugin-terser": "^0.4.3",
|
||||||
|
"@rollup/plugin-typescript": "^11.0.0",
|
||||||
"@types/chai": "^4.3.3",
|
"@types/chai": "^4.3.3",
|
||||||
"@types/lodash": "^4.14.186",
|
"@types/lodash": "^4.14.186",
|
||||||
"@types/mocha": "^10.0.0",
|
"@types/mocha": "^10.0.0",
|
||||||
@@ -45,7 +51,10 @@
|
|||||||
"eslint-plugin-prettier": "^4.2.1",
|
"eslint-plugin-prettier": "^4.2.1",
|
||||||
"log4js": "^6.7.1",
|
"log4js": "^6.7.1",
|
||||||
"mocha": "^10.1.0",
|
"mocha": "^10.1.0",
|
||||||
|
"rollup": "^3.7.4",
|
||||||
|
"rollup-plugin-visualizer": "^5.8.2",
|
||||||
"ts-node": "^10.9.1",
|
"ts-node": "^10.9.1",
|
||||||
|
"tslib": "^2.5.2",
|
||||||
"typescript": "^4.8.4",
|
"typescript": "^4.8.4",
|
||||||
"vite": "^3.1.0",
|
"vite": "^3.1.0",
|
||||||
"vue-tsc": "^0.38.9"
|
"vue-tsc": "^0.38.9"
|
||||||
|
|||||||
35
packages/plugins/plugin-huawei/rollup.config.js
Normal file
35
packages/plugins/plugin-huawei/rollup.config.js
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
const resolve = require("@rollup/plugin-node-resolve");
|
||||||
|
const commonjs = require("@rollup/plugin-commonjs");
|
||||||
|
const rollupTypescript = require("rollup-plugin-typescript2");
|
||||||
|
const json = require("@rollup/plugin-json");
|
||||||
|
const terser = require("@rollup/plugin-terser");
|
||||||
|
module.exports = {
|
||||||
|
input: "src/index.ts",
|
||||||
|
output: {
|
||||||
|
file: "dist/bundle.js",
|
||||||
|
format: "cjs",
|
||||||
|
},
|
||||||
|
plugins: [
|
||||||
|
// 解析第三方依赖
|
||||||
|
resolve(),
|
||||||
|
// 识别 commonjs 模式第三方依赖
|
||||||
|
commonjs(),
|
||||||
|
rollupTypescript(),
|
||||||
|
json(),
|
||||||
|
terser(),
|
||||||
|
],
|
||||||
|
external: [
|
||||||
|
"vue",
|
||||||
|
"lodash",
|
||||||
|
"dayjs",
|
||||||
|
"@certd/acme-client",
|
||||||
|
"@certd/pipeline",
|
||||||
|
"@certd/plugin-cert",
|
||||||
|
"@certd/plugin-aliyun",
|
||||||
|
"@certd/plugin-tencent",
|
||||||
|
"@certd/plugin-huawei",
|
||||||
|
"@certd/plugin-host",
|
||||||
|
"@certd/plugin-tencent",
|
||||||
|
"@certd/plugin-util",
|
||||||
|
],
|
||||||
|
};
|
||||||
@@ -1,9 +1,8 @@
|
|||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"noImplicitAny": true,
|
|
||||||
"target": "ESNext",
|
"target": "ESNext",
|
||||||
"useDefineForClassFields": true,
|
"useDefineForClassFields": true,
|
||||||
"module": "commonjs",
|
"module": "ESNext",
|
||||||
"moduleResolution": "Node",
|
"moduleResolution": "Node",
|
||||||
"strict": true,
|
"strict": true,
|
||||||
"jsx": "preserve",
|
"jsx": "preserve",
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
import { defineConfig } from "vite";
|
import { defineConfig } from "vite";
|
||||||
|
import visualizer from "rollup-plugin-visualizer";
|
||||||
|
import typescript from "@rollup/plugin-typescript";
|
||||||
// https://vitejs.dev/config/
|
// https://vitejs.dev/config/
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [],
|
plugins: [],
|
||||||
@@ -8,15 +10,45 @@ export default defineConfig({
|
|||||||
name: "pipeline",
|
name: "pipeline",
|
||||||
},
|
},
|
||||||
rollupOptions: {
|
rollupOptions: {
|
||||||
external: ["vue", "lodash", "dayjs", "@fast-crud/fast-crud"],
|
plugins: [
|
||||||
|
// @ts-ignore
|
||||||
|
visualizer(),
|
||||||
|
// @ts-ignore
|
||||||
|
typescript({
|
||||||
|
target: "esnext",
|
||||||
|
rootDir: "src",
|
||||||
|
declaration: true,
|
||||||
|
declarationDir: "dist/d",
|
||||||
|
exclude: ["./node_modules/**", "./src/**/*.vue"],
|
||||||
|
allowSyntheticDefaultImports: true,
|
||||||
|
}),
|
||||||
|
],
|
||||||
|
external: [
|
||||||
|
"vue",
|
||||||
|
"lodash",
|
||||||
|
"dayjs",
|
||||||
|
"@certd/acme-client",
|
||||||
|
"@certd/pipeline",
|
||||||
|
"@certd/plugin-cert",
|
||||||
|
"@certd/plugin-aliyun",
|
||||||
|
"@certd/plugin-tencent",
|
||||||
|
"@certd/plugin-huawei",
|
||||||
|
"@certd/plugin-host",
|
||||||
|
"@certd/plugin-tencent",
|
||||||
|
"@certd/plugin-util",
|
||||||
|
],
|
||||||
output: {
|
output: {
|
||||||
// Provide global variables to use in the UMD build
|
|
||||||
// for externalized deps
|
|
||||||
globals: {
|
globals: {
|
||||||
vue: "Vue",
|
vue: "Vue",
|
||||||
"lodash": "_",
|
lodash: "_",
|
||||||
dayjs: "dayjs",
|
dayjs: "dayjs",
|
||||||
"@fast-crud/fast-crud": "FastCrud",
|
"@certd/plugin-cert": "CertdPluginCert",
|
||||||
|
"@certd/acme-client": "CertdAcmeClient",
|
||||||
|
"@certd/pipeline": "CertdPluginPipeline",
|
||||||
|
"@certd/plugin-aliyun": "CertdPluginAliyun",
|
||||||
|
"@certd/plugin-host": "CertdPluginHost",
|
||||||
|
"@certd/plugin-huawei": "CertdPluginHuawei",
|
||||||
|
"@certd/plugin-util": "CertdPluginUtil",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
2
packages/plugins/plugin-tencent/.npmignore
Normal file
2
packages/plugins/plugin-tencent/.npmignore
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
node_modules
|
||||||
|
src
|
||||||
@@ -3,6 +3,14 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
## [1.0.3](https://github.com/certd/certd/compare/v1.0.2...v1.0.3) (2023-05-25)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @certd/plugin-tencent
|
||||||
|
|
||||||
|
## [1.0.2](https://github.com/certd/certd/compare/v1.0.1...v1.0.2) (2023-05-24)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @certd/plugin-tencent
|
||||||
|
|
||||||
## [1.0.1](https://github.com/certd/certd/compare/v1.0.0...v1.0.1) (2023-05-24)
|
## [1.0.1](https://github.com/certd/certd/compare/v1.0.0...v1.0.1) (2023-05-24)
|
||||||
|
|
||||||
**Note:** Version bump only for package @certd/plugin-tencent
|
**Note:** Version bump only for package @certd/plugin-tencent
|
||||||
|
|||||||
@@ -1,24 +1,25 @@
|
|||||||
{
|
{
|
||||||
"name": "@certd/plugin-tencent",
|
"name": "@certd/plugin-tencent",
|
||||||
"private": false,
|
"private": false,
|
||||||
"version": "1.0.1",
|
"version": "1.0.3",
|
||||||
"main": "./src/index.ts",
|
"main": "./src/index.ts",
|
||||||
"module": "./src/index.ts",
|
"module": "./dist/plugin-tencent.mjs",
|
||||||
"types": "./src/index.ts",
|
"types": "./dist/es/plugin-tencent.d.ts",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"main": "./dist/plugin-tencent.umd.js",
|
"main": "./dist/bundle.js",
|
||||||
"module": "./dist/plugin-tencent.mjs",
|
"module": "./dist/plugin-tencent.mjs",
|
||||||
"types": "./dist/es/plugin-tencent.d.ts"
|
"types": "./dist/es/plugin-tencent.d.ts"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
"build": "vue-tsc --noEmit && vite build",
|
"build": "rollup -c",
|
||||||
|
"build2": "vue-tsc --noEmit && vite build",
|
||||||
"preview": "vite preview"
|
"preview": "vite preview"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@certd/pipeline": "^1.0.1",
|
"@certd/pipeline": "^1.0.3",
|
||||||
"@certd/plugin-cert": "^1.0.1",
|
"@certd/plugin-cert": "^1.0.3",
|
||||||
"@certd/plugin-util": "^1.0.1",
|
"@certd/plugin-util": "^1.0.3",
|
||||||
"tencentcloud-sdk-nodejs": "^4.0.44"
|
"tencentcloud-sdk-nodejs": "^4.0.44"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
@@ -27,6 +28,11 @@
|
|||||||
"@alicloud/pop-core": "^1.7.10",
|
"@alicloud/pop-core": "^1.7.10",
|
||||||
"@midwayjs/core": "^3.0.0",
|
"@midwayjs/core": "^3.0.0",
|
||||||
"@midwayjs/decorator": "^3.0.0",
|
"@midwayjs/decorator": "^3.0.0",
|
||||||
|
"@rollup/plugin-commonjs": "^23.0.4",
|
||||||
|
"@rollup/plugin-json": "^6.0.0",
|
||||||
|
"@rollup/plugin-node-resolve": "^15.0.1",
|
||||||
|
"@rollup/plugin-terser": "^0.4.3",
|
||||||
|
"@rollup/plugin-typescript": "^11.0.0",
|
||||||
"@types/chai": "^4.3.3",
|
"@types/chai": "^4.3.3",
|
||||||
"@types/lodash": "^4.14.186",
|
"@types/lodash": "^4.14.186",
|
||||||
"@types/mocha": "^10.0.0",
|
"@types/mocha": "^10.0.0",
|
||||||
@@ -44,7 +50,10 @@
|
|||||||
"lodash": "^4.17.20",
|
"lodash": "^4.17.20",
|
||||||
"log4js": "^6.7.1",
|
"log4js": "^6.7.1",
|
||||||
"mocha": "^10.1.0",
|
"mocha": "^10.1.0",
|
||||||
|
"rollup": "^3.7.4",
|
||||||
|
"rollup-plugin-visualizer": "^5.8.2",
|
||||||
"ts-node": "^10.9.1",
|
"ts-node": "^10.9.1",
|
||||||
|
"tslib": "^2.5.2",
|
||||||
"typescript": "^4.8.4",
|
"typescript": "^4.8.4",
|
||||||
"vite": "^3.1.0",
|
"vite": "^3.1.0",
|
||||||
"vue-tsc": "^0.38.9"
|
"vue-tsc": "^0.38.9"
|
||||||
|
|||||||
35
packages/plugins/plugin-tencent/rollup.config.js
Normal file
35
packages/plugins/plugin-tencent/rollup.config.js
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
const resolve = require("@rollup/plugin-node-resolve");
|
||||||
|
const commonjs = require("@rollup/plugin-commonjs");
|
||||||
|
const rollupTypescript = require("rollup-plugin-typescript2");
|
||||||
|
const json = require("@rollup/plugin-json");
|
||||||
|
const terser = require("@rollup/plugin-terser");
|
||||||
|
module.exports = {
|
||||||
|
input: "src/index.ts",
|
||||||
|
output: {
|
||||||
|
file: "dist/bundle.js",
|
||||||
|
format: "cjs",
|
||||||
|
},
|
||||||
|
plugins: [
|
||||||
|
// 解析第三方依赖
|
||||||
|
resolve(),
|
||||||
|
// 识别 commonjs 模式第三方依赖
|
||||||
|
commonjs(),
|
||||||
|
rollupTypescript(),
|
||||||
|
json(),
|
||||||
|
terser(),
|
||||||
|
],
|
||||||
|
external: [
|
||||||
|
"vue",
|
||||||
|
"lodash",
|
||||||
|
"dayjs",
|
||||||
|
"@certd/acme-client",
|
||||||
|
"@certd/pipeline",
|
||||||
|
"@certd/plugin-cert",
|
||||||
|
"@certd/plugin-aliyun",
|
||||||
|
"@certd/plugin-tencent",
|
||||||
|
"@certd/plugin-huawei",
|
||||||
|
"@certd/plugin-host",
|
||||||
|
"@certd/plugin-tencent",
|
||||||
|
"@certd/plugin-util",
|
||||||
|
],
|
||||||
|
};
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"target": "ESNext",
|
"target": "ESNext",
|
||||||
"useDefineForClassFields": true,
|
"useDefineForClassFields": true,
|
||||||
"module": "commonjs",
|
"module": "ESNext",
|
||||||
"moduleResolution": "Node",
|
"moduleResolution": "Node",
|
||||||
"strict": true,
|
"strict": true,
|
||||||
"jsx": "preserve",
|
"jsx": "preserve",
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
import { defineConfig } from "vite";
|
import { defineConfig } from "vite";
|
||||||
|
import visualizer from "rollup-plugin-visualizer";
|
||||||
|
import typescript from "@rollup/plugin-typescript";
|
||||||
// https://vitejs.dev/config/
|
// https://vitejs.dev/config/
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [],
|
plugins: [],
|
||||||
@@ -8,18 +10,45 @@ export default defineConfig({
|
|||||||
name: "pipeline",
|
name: "pipeline",
|
||||||
},
|
},
|
||||||
rollupOptions: {
|
rollupOptions: {
|
||||||
external: ["vue", "lodash", "dayjs", "@fast-crud/fast-crud", "log4js", "lodash", "@certd/pipeline", "axios"],
|
plugins: [
|
||||||
|
// @ts-ignore
|
||||||
|
visualizer(),
|
||||||
|
// @ts-ignore
|
||||||
|
typescript({
|
||||||
|
target: "esnext",
|
||||||
|
rootDir: "src",
|
||||||
|
declaration: true,
|
||||||
|
declarationDir: "dist/d",
|
||||||
|
exclude: ["./node_modules/**", "./src/**/*.vue"],
|
||||||
|
allowSyntheticDefaultImports: true,
|
||||||
|
}),
|
||||||
|
],
|
||||||
|
external: [
|
||||||
|
"vue",
|
||||||
|
"lodash",
|
||||||
|
"dayjs",
|
||||||
|
"@certd/acme-client",
|
||||||
|
"@certd/pipeline",
|
||||||
|
"@certd/plugin-cert",
|
||||||
|
"@certd/plugin-aliyun",
|
||||||
|
"@certd/plugin-tencent",
|
||||||
|
"@certd/plugin-huawei",
|
||||||
|
"@certd/plugin-host",
|
||||||
|
"@certd/plugin-tencent",
|
||||||
|
"@certd/plugin-util",
|
||||||
|
],
|
||||||
output: {
|
output: {
|
||||||
// Provide global variables to use in the UMD build
|
|
||||||
// for externalized deps
|
|
||||||
globals: {
|
globals: {
|
||||||
vue: "Vue",
|
vue: "Vue",
|
||||||
lodash: "_",
|
lodash: "_",
|
||||||
dayjs: "dayjs",
|
dayjs: "dayjs",
|
||||||
"@fast-crud/fast-crud": "FastCrud",
|
"@certd/plugin-cert": "CertdPluginCert",
|
||||||
log4js: "log4js",
|
"@certd/acme-client": "CertdAcmeClient",
|
||||||
"@certd/pipeline": "pipeline",
|
"@certd/pipeline": "CertdPluginPipeline",
|
||||||
axios: "axios",
|
"@certd/plugin-aliyun": "CertdPluginAliyun",
|
||||||
|
"@certd/plugin-host": "CertdPluginHost",
|
||||||
|
"@certd/plugin-huawei": "CertdPluginHuawei",
|
||||||
|
"@certd/plugin-util": "CertdPluginUtil",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,5 +0,0 @@
|
|||||||
{
|
|
||||||
"extension": ["ts"],
|
|
||||||
"spec": "test/**/*.test.ts",
|
|
||||||
"require": "ts-node/register"
|
|
||||||
}
|
|
||||||
2
packages/plugins/plugin-util/.npmignore
Normal file
2
packages/plugins/plugin-util/.npmignore
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
node_modules
|
||||||
|
src
|
||||||
@@ -3,6 +3,14 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
## [1.0.3](https://github.com/certd/certd/compare/v1.0.2...v1.0.3) (2023-05-25)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @certd/plugin-util
|
||||||
|
|
||||||
|
## [1.0.2](https://github.com/certd/certd/compare/v1.0.1...v1.0.2) (2023-05-24)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @certd/plugin-util
|
||||||
|
|
||||||
## [1.0.1](https://github.com/certd/certd/compare/v1.0.0...v1.0.1) (2023-05-24)
|
## [1.0.1](https://github.com/certd/certd/compare/v1.0.0...v1.0.1) (2023-05-24)
|
||||||
|
|
||||||
**Note:** Version bump only for package @certd/plugin-util
|
**Note:** Version bump only for package @certd/plugin-util
|
||||||
|
|||||||
@@ -1,45 +1,44 @@
|
|||||||
{
|
{
|
||||||
"name": "@certd/plugin-util",
|
"name": "@certd/plugin-util",
|
||||||
"private": false,
|
"private": false,
|
||||||
"version": "1.0.1",
|
"version": "1.0.3",
|
||||||
"main": "./src/index.ts",
|
"main": "./src/index.ts",
|
||||||
"module": "./src/index.ts",
|
"module": "./dist/plugin-util.mjs",
|
||||||
"types": "./src/index.ts",
|
"types": "./dist/es/plugin-util.d.ts",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"main": "./dist/plugin-util.umd.js",
|
"main": "./dist/bundle.js",
|
||||||
"module": "./dist/plugin-util.mjs",
|
"module": "./dist/plugin-util.mjs",
|
||||||
"types": "./dist/es/plugin-util.d.ts"
|
"types": "./dist/es/plugin-util.d.ts"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
"build": "vue-tsc --noEmit && vite build",
|
"build": "rollup -c",
|
||||||
|
"build2": "vue-tsc --noEmit && vite build",
|
||||||
"preview": "vite preview"
|
"preview": "vite preview"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@certd/pipeline": "^1.0.1",
|
|
||||||
"kubernetes-client": "^9.0.0"
|
"kubernetes-client": "^9.0.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@alicloud/cs20151215": "^3.0.3",
|
"@certd/pipeline": "^1.0.3",
|
||||||
"@alicloud/openapi-client": "^0.4.0",
|
"@rollup/plugin-commonjs": "^23.0.4",
|
||||||
"@alicloud/pop-core": "^1.7.10",
|
"@rollup/plugin-json": "^6.0.0",
|
||||||
"@midwayjs/core": "^3.0.0",
|
"@rollup/plugin-node-resolve": "^15.0.1",
|
||||||
"@midwayjs/decorator": "^3.0.0",
|
"@rollup/plugin-terser": "^0.4.3",
|
||||||
|
"@rollup/plugin-typescript": "^11.0.0",
|
||||||
"@types/chai": "^4.3.3",
|
"@types/chai": "^4.3.3",
|
||||||
"@types/lodash": "^4.14.186",
|
"@types/lodash": "^4.14.186",
|
||||||
"@types/mocha": "^10.0.0",
|
|
||||||
"@types/node-forge": "^1.3.0",
|
|
||||||
"@typescript-eslint/eslint-plugin": "^5.38.1",
|
"@typescript-eslint/eslint-plugin": "^5.38.1",
|
||||||
"@typescript-eslint/parser": "^5.38.1",
|
"@typescript-eslint/parser": "^5.38.1",
|
||||||
"chai": "^4.3.6",
|
|
||||||
"eslint": "^8.24.0",
|
"eslint": "^8.24.0",
|
||||||
"eslint-config-prettier": "^8.5.0",
|
"eslint-config-prettier": "^8.5.0",
|
||||||
"eslint-plugin-import": "^2.26.0",
|
"eslint-plugin-import": "^2.26.0",
|
||||||
"eslint-plugin-node": "^11.1.0",
|
"eslint-plugin-node": "^11.1.0",
|
||||||
"eslint-plugin-prettier": "^4.2.1",
|
"eslint-plugin-prettier": "^4.2.1",
|
||||||
"log4js": "^6.7.1",
|
"rollup": "^3.7.4",
|
||||||
"mocha": "^10.1.0",
|
"rollup-plugin-visualizer": "^5.8.2",
|
||||||
"ts-node": "^10.9.1",
|
"ts-node": "^10.9.1",
|
||||||
|
"tslib": "^2.5.2",
|
||||||
"typescript": "^4.8.4",
|
"typescript": "^4.8.4",
|
||||||
"vite": "^3.1.0",
|
"vite": "^3.1.0",
|
||||||
"vue-tsc": "^0.38.9"
|
"vue-tsc": "^0.38.9"
|
||||||
|
|||||||
40
packages/plugins/plugin-util/rollup.config.js
Normal file
40
packages/plugins/plugin-util/rollup.config.js
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
const resolve = require("@rollup/plugin-node-resolve");
|
||||||
|
const commonjs = require("@rollup/plugin-commonjs");
|
||||||
|
const rollupTypescript = require("rollup-plugin-typescript2");
|
||||||
|
const json = require("@rollup/plugin-json");
|
||||||
|
const terser = require("@rollup/plugin-terser");
|
||||||
|
module.exports = {
|
||||||
|
input: "src/index.ts",
|
||||||
|
output: {
|
||||||
|
file: "dist/bundle.js",
|
||||||
|
format: "cjs",
|
||||||
|
},
|
||||||
|
plugins: [
|
||||||
|
// 解析第三方依赖
|
||||||
|
resolve(),
|
||||||
|
// 识别 commonjs 模式第三方依赖
|
||||||
|
commonjs({
|
||||||
|
// dynamicRequireTargets: true,
|
||||||
|
ignoreDynamicRequires: true,
|
||||||
|
}),
|
||||||
|
rollupTypescript(),
|
||||||
|
json(),
|
||||||
|
terser(),
|
||||||
|
],
|
||||||
|
external: [
|
||||||
|
"vue",
|
||||||
|
"lodash",
|
||||||
|
"dayjs",
|
||||||
|
"@certd/acme-client",
|
||||||
|
"@certd/pipeline",
|
||||||
|
"@certd/plugin-cert",
|
||||||
|
"@certd/plugin-aliyun",
|
||||||
|
"@certd/plugin-tencent",
|
||||||
|
"@certd/plugin-huawei",
|
||||||
|
"@certd/plugin-host",
|
||||||
|
"@certd/plugin-tencent",
|
||||||
|
"@certd/plugin-util",
|
||||||
|
"@certd/plugin-util",
|
||||||
|
"kubernetes-client",
|
||||||
|
],
|
||||||
|
};
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"target": "ESNext",
|
"target": "ESNext",
|
||||||
"useDefineForClassFields": true,
|
"useDefineForClassFields": true,
|
||||||
"module": "commonjs",
|
"module": "ESNext",
|
||||||
"moduleResolution": "Node",
|
"moduleResolution": "Node",
|
||||||
"strict": true,
|
"strict": true,
|
||||||
"jsx": "preserve",
|
"jsx": "preserve",
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
import { defineConfig } from "vite";
|
import { defineConfig } from "vite";
|
||||||
|
import visualizer from "rollup-plugin-visualizer";
|
||||||
|
import typescript from "@rollup/plugin-typescript";
|
||||||
// https://vitejs.dev/config/
|
// https://vitejs.dev/config/
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [],
|
plugins: [],
|
||||||
build: {
|
build: {
|
||||||
@@ -8,15 +11,51 @@ export default defineConfig({
|
|||||||
name: "pipeline",
|
name: "pipeline",
|
||||||
},
|
},
|
||||||
rollupOptions: {
|
rollupOptions: {
|
||||||
external: ["vue", "lodash", "dayjs", "@fast-crud/fast-crud"],
|
plugins: [
|
||||||
|
// @ts-ignore
|
||||||
|
visualizer(),
|
||||||
|
// @ts-ignore
|
||||||
|
typescript({
|
||||||
|
target: "esnext",
|
||||||
|
rootDir: "src",
|
||||||
|
declaration: true,
|
||||||
|
declarationDir: "dist/d",
|
||||||
|
exclude: ["./node_modules/**", "./src/**/*.vue"],
|
||||||
|
allowSyntheticDefaultImports: true,
|
||||||
|
}),
|
||||||
|
],
|
||||||
|
external: [
|
||||||
|
"vue",
|
||||||
|
"lodash",
|
||||||
|
"dayjs",
|
||||||
|
"@certd/acme-client",
|
||||||
|
"@certd/pipeline",
|
||||||
|
"@certd/plugin-cert",
|
||||||
|
"@certd/plugin-aliyun",
|
||||||
|
"@certd/plugin-tencent",
|
||||||
|
"@certd/plugin-huawei",
|
||||||
|
"@certd/plugin-host",
|
||||||
|
"@certd/plugin-tencent",
|
||||||
|
"log4js",
|
||||||
|
"@midwayjs/core",
|
||||||
|
"@midwayjs/decorator",
|
||||||
|
"kubernetes-client",
|
||||||
|
],
|
||||||
output: {
|
output: {
|
||||||
// Provide global variables to use in the UMD build
|
|
||||||
// for externalized deps
|
|
||||||
globals: {
|
globals: {
|
||||||
vue: "Vue",
|
vue: "Vue",
|
||||||
lodash: "_",
|
lodash: "_",
|
||||||
dayjs: "dayjs",
|
dayjs: "dayjs",
|
||||||
"@fast-crud/fast-crud": "FastCrud",
|
"@certd/plugin-cert": "CertdPluginCert",
|
||||||
|
"@certd/acme-client": "CertdAcmeClient",
|
||||||
|
"@certd/pipeline": "CertdPluginPipeline",
|
||||||
|
"@certd/plugin-aliyun": "CertdPluginAliyun",
|
||||||
|
"@certd/plugin-host": "CertdPluginHost",
|
||||||
|
"@certd/plugin-huawei": "CertdPluginHuawei",
|
||||||
|
log4js: "log4js",
|
||||||
|
"@midwayjs/core": "MidwayjsCore",
|
||||||
|
"@midwayjs/decorator": "MidwayjsDecorator",
|
||||||
|
"kubernetes-client": "kubernetesClient",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -3,6 +3,14 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
## [1.0.3](https://github.com/certd/certd/compare/v1.0.2...v1.0.3) (2023-05-25)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @certd/ui-client
|
||||||
|
|
||||||
|
## [1.0.2](https://github.com/certd/certd/compare/v1.0.1...v1.0.2) (2023-05-24)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @certd/ui-client
|
||||||
|
|
||||||
## [1.0.1](https://github.com/certd/certd/compare/v1.0.0...v1.0.1) (2023-05-24)
|
## [1.0.1](https://github.com/certd/certd/compare/v1.0.0...v1.0.1) (2023-05-24)
|
||||||
|
|
||||||
**Note:** Version bump only for package @certd/ui-client
|
**Note:** Version bump only for package @certd/ui-client
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@certd/ui-client",
|
"name": "@certd/ui-client",
|
||||||
"version": "1.0.1",
|
"version": "1.0.3",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
@@ -22,8 +22,8 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ant-design/colors": "^6.0.0",
|
"@ant-design/colors": "^6.0.0",
|
||||||
"@ant-design/icons-vue": "^6.0.1",
|
"@ant-design/icons-vue": "^6.0.1",
|
||||||
"@certd/acme-client": "^1.0.1",
|
"@certd/acme-client": "^1.0.3",
|
||||||
"@certd/pipeline": "^1.0.1",
|
"@certd/pipeline": "^1.0.3",
|
||||||
"@fast-crud/fast-crud": "^1.13.8",
|
"@fast-crud/fast-crud": "^1.13.8",
|
||||||
"@fast-crud/fast-extends": "^1.13.8",
|
"@fast-crud/fast-extends": "^1.13.8",
|
||||||
"@fast-crud/ui-antdv": "^1.13.8",
|
"@fast-crud/ui-antdv": "^1.13.8",
|
||||||
|
|||||||
1
packages/ui/certd-server/.gitignore
vendored
1
packages/ui/certd-server/.gitignore
vendored
@@ -16,3 +16,4 @@ run/
|
|||||||
/data/db.sqlite
|
/data/db.sqlite
|
||||||
/pnpm-lock.yaml
|
/pnpm-lock.yaml
|
||||||
.serverless
|
.serverless
|
||||||
|
data
|
||||||
|
|||||||
@@ -3,6 +3,14 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
## [1.0.3](https://github.com/fast-crud/fast-server-js/compare/v1.0.2...v1.0.3) (2023-05-25)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @certd/ui-server
|
||||||
|
|
||||||
|
## [1.0.2](https://github.com/fast-crud/fast-server-js/compare/v1.0.1...v1.0.2) (2023-05-24)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @certd/ui-server
|
||||||
|
|
||||||
## [1.0.1](https://github.com/fast-crud/fast-server-js/compare/v1.0.0...v1.0.1) (2023-05-24)
|
## [1.0.1](https://github.com/fast-crud/fast-server-js/compare/v1.0.0...v1.0.1) (2023-05-24)
|
||||||
|
|
||||||
**Note:** Version bump only for package @certd/ui-server
|
**Note:** Version bump only for package @certd/ui-server
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
CREATE TABLE "pi_history" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer NOT NULL, "pipeline_id" integer NOT NULL, "pipeline" varchar(40960), "status" varchar(20), "end_time" datetime, "create_time" datetime NOT NULL DEFAULT (CURRENT_TIMESTAMP), "update_time" datetime NOT NULL DEFAULT (CURRENT_TIMESTAMP))
|
CREATE TABLE "pi_history" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer NOT NULL, "pipeline_id" integer NOT NULL, "pipeline" varchar(40960), "status" varchar(20), "end_time" datetime, "create_time" datetime NOT NULL DEFAULT (CURRENT_TIMESTAMP), "update_time" datetime NOT NULL DEFAULT (CURRENT_TIMESTAMP));
|
||||||
|
|
||||||
CREATE TABLE "pi_history_log" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer NOT NULL, "pipeline_id" integer NOT NULL, "history_id" integer NOT NULL, "node_id" varchar(100), "logs" varchar(40960), "create_time" datetime NOT NULL DEFAULT (CURRENT_TIMESTAMP), "update_time" datetime NOT NULL DEFAULT (CURRENT_TIMESTAMP))
|
CREATE TABLE "pi_history_log" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer NOT NULL, "pipeline_id" integer NOT NULL, "history_id" integer NOT NULL, "node_id" varchar(100), "logs" varchar(40960), "create_time" datetime NOT NULL DEFAULT (CURRENT_TIMESTAMP), "update_time" datetime NOT NULL DEFAULT (CURRENT_TIMESTAMP));
|
||||||
|
|
||||||
CREATE TABLE "pi_pipeline" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer NOT NULL, "title" integer NOT NULL, "content" varchar(40960) NOT NULL, "keep_history_count" integer, "remark" varchar(100), "status" varchar(100), "disabled" boolean DEFAULT (0), "last_history_time" integer, "create_time" datetime NOT NULL DEFAULT (CURRENT_TIMESTAMP), "update_time" datetime NOT NULL DEFAULT (CURRENT_TIMESTAMP))
|
CREATE TABLE "pi_pipeline" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer NOT NULL, "title" integer NOT NULL, "content" varchar(40960) NOT NULL, "keep_history_count" integer, "remark" varchar(100), "status" varchar(100), "disabled" boolean DEFAULT (0), "last_history_time" integer, "create_time" datetime NOT NULL DEFAULT (CURRENT_TIMESTAMP), "update_time" datetime NOT NULL DEFAULT (CURRENT_TIMESTAMP));
|
||||||
|
|
||||||
CREATE TABLE "pi_storage" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer NOT NULL, "scope" varchar NOT NULL, "namespace" varchar NOT NULL, "version" varchar(100),"key" varchar(100), "value" varchar(40960), "create_time" datetime NOT NULL DEFAULT (CURRENT_TIMESTAMP), "update_time" datetime NOT NULL DEFAULT (CURRENT_TIMESTAMP))
|
CREATE TABLE "pi_storage" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer NOT NULL, "scope" varchar NOT NULL, "namespace" varchar NOT NULL, "version" varchar(100),"key" varchar(100), "value" varchar(40960), "create_time" datetime NOT NULL DEFAULT (CURRENT_TIMESTAMP), "update_time" datetime NOT NULL DEFAULT (CURRENT_TIMESTAMP));
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@certd/ui-server",
|
"name": "@certd/ui-server",
|
||||||
"version": "1.0.1",
|
"version": "1.0.3",
|
||||||
"description": "fast-server base midway",
|
"description": "fast-server base midway",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@@ -21,10 +21,15 @@
|
|||||||
"mig": "typeorm migration:create -n name"
|
"mig": "typeorm migration:create -n name"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@alicloud/pop-core": "^1.7.12",
|
"@certd/acme-client": "^1.0.3",
|
||||||
"@certd/pipeline": "^1.0.1",
|
"@certd/pipeline": "^1.0.3",
|
||||||
"@certd/plugin-all": "^1.0.1",
|
"@certd/plugin-aliyun": "^1.0.3",
|
||||||
"@certd/plugin-cert": "^1.0.1",
|
"@certd/plugin-all": "^1.0.3",
|
||||||
|
"@certd/plugin-cert": "^1.0.3",
|
||||||
|
"@certd/plugin-host": "^1.0.3",
|
||||||
|
"@certd/plugin-huawei": "^1.0.3",
|
||||||
|
"@certd/plugin-tencent": "^1.0.3",
|
||||||
|
"@certd/plugin-util": "^1.0.3",
|
||||||
"@koa/cors": "^3.4.3",
|
"@koa/cors": "^3.4.3",
|
||||||
"@midwayjs/bootstrap": "^3.9.1",
|
"@midwayjs/bootstrap": "^3.9.1",
|
||||||
"@midwayjs/cache": "^3.9.0",
|
"@midwayjs/cache": "^3.9.0",
|
||||||
@@ -40,11 +45,13 @@
|
|||||||
"dayjs": "^1.11.7",
|
"dayjs": "^1.11.7",
|
||||||
"glob": "^7.2.3",
|
"glob": "^7.2.3",
|
||||||
"jsonwebtoken": "^8.5.1",
|
"jsonwebtoken": "^8.5.1",
|
||||||
|
"kubernetes-client": "^9.0.0",
|
||||||
"lodash": "^4.17.21",
|
"lodash": "^4.17.21",
|
||||||
"log4js": "^6.7.1",
|
"log4js": "^6.7.1",
|
||||||
"md5": "^2.3.0",
|
"md5": "^2.3.0",
|
||||||
"midway-flyway-js": "^3.0.0",
|
"midway-flyway-js": "^3.0.0",
|
||||||
"node-cron": "^3.0.2",
|
"node-cron": "^3.0.2",
|
||||||
|
"reflect-metadata": "^0.1.13",
|
||||||
"sqlite3": "^5.1.4",
|
"sqlite3": "^5.1.4",
|
||||||
"svg-captcha": "^1.4.0",
|
"svg-captcha": "^1.4.0",
|
||||||
"typeorm": "^0.3.11"
|
"typeorm": "^0.3.11"
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ import { FlywayHistory } from 'midway-flyway-js/dist/entity';
|
|||||||
|
|
||||||
import { MidwayConfig } from '@midwayjs/core';
|
import { MidwayConfig } from '@midwayjs/core';
|
||||||
import { UserEntity } from '../modules/authority/entity/user';
|
import { UserEntity } from '../modules/authority/entity/user';
|
||||||
|
import { PipelineEntity } from '../modules/pipeline/entity/pipeline';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
// use for cookie sign key, should change to your own and keep security
|
// use for cookie sign key, should change to your own and keep security
|
||||||
@@ -33,7 +34,14 @@ export default {
|
|||||||
logging: true,
|
logging: true,
|
||||||
|
|
||||||
// 配置实体模型 或者 entities: '/entity',
|
// 配置实体模型 或者 entities: '/entity',
|
||||||
entities: ['**/modules/*/entity/*.ts', FlywayHistory, UserEntity],
|
entities: [
|
||||||
|
'**/modules/*/entity/*.ts',
|
||||||
|
'**/entity/*.js',
|
||||||
|
'**/entity/*.d.ts',
|
||||||
|
PipelineEntity,
|
||||||
|
FlywayHistory,
|
||||||
|
UserEntity,
|
||||||
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -14,11 +14,10 @@ import { GlobalExceptionMiddleware } from './middleware/global-exception';
|
|||||||
import { PreviewMiddleware } from './middleware/preview';
|
import { PreviewMiddleware } from './middleware/preview';
|
||||||
import { AuthorityMiddleware } from './middleware/authority';
|
import { AuthorityMiddleware } from './middleware/authority';
|
||||||
|
|
||||||
import * as pipeline from './plugins/pipeline';
|
|
||||||
import * as cron from './plugins/cron';
|
import * as cron from './plugins/cron';
|
||||||
|
|
||||||
@Configuration({
|
@Configuration({
|
||||||
imports: [koa, orm, cache, flyway, validateComp, pipeline, cron],
|
imports: [koa, orm, cache, flyway, validateComp, cron],
|
||||||
importConfigs: [
|
importConfigs: [
|
||||||
{
|
{
|
||||||
default: defaultConfig,
|
default: defaultConfig,
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
// src/index.ts
|
// src/index.ts
|
||||||
import '@certd/plugin-all';
|
import '@certd/plugin-all';
|
||||||
export { PipelineConfiguration as Configuration } from '@certd/pipeline';
|
// export { PipelineConfiguration as Configuration } from '@certd/pipeline';
|
||||||
// export * from './controller/user';
|
// export * from './controller/user';
|
||||||
// export * from './controller/api';
|
// export * from './controller/api';
|
||||||
// export * from './service/user';
|
// export * from './service/user';
|
||||||
|
|||||||
@@ -1,27 +0,0 @@
|
|||||||
import { ILogger } from "@midwayjs/logger";
|
|
||||||
import { ITaskPlugin,Autowire, IsTaskPlugin, TaskInput } from "@certd/pipeline";
|
|
||||||
|
|
||||||
@IsTaskPlugin({
|
|
||||||
name: "EchoPlugin",
|
|
||||||
title: "测试插件",
|
|
||||||
desc: "test",
|
|
||||||
})
|
|
||||||
export class EchoPlugin implements ITaskPlugin {
|
|
||||||
@TaskInput({
|
|
||||||
title: "测试属性",
|
|
||||||
component: {
|
|
||||||
name: "text",
|
|
||||||
},
|
|
||||||
})
|
|
||||||
test?: string;
|
|
||||||
|
|
||||||
@Autowire()
|
|
||||||
// @ts-ignore
|
|
||||||
logger: ILogger;
|
|
||||||
|
|
||||||
async onInstance(){}
|
|
||||||
|
|
||||||
async execute(): Promise<void> {
|
|
||||||
return Promise.resolve(undefined);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user