@moneko/core 3.55.3 → 3.55.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (141) hide show
  1. package/lib/bin/build-app.d.mts +16 -0
  2. package/lib/bin/build.d.mts +2 -0
  3. package/lib/bin/changelog.d.mts +1 -0
  4. package/lib/bin/commit-lint.d.mts +2 -0
  5. package/lib/bin/eslint.d.mts +1 -0
  6. package/lib/bin/file.d.mts +2 -0
  7. package/lib/bin/git-hooks.d.mts +1 -0
  8. package/lib/bin/help.d.mts +2 -0
  9. package/lib/bin/index.d.mts +2 -0
  10. package/lib/bin/lessc.d.mts +1 -0
  11. package/lib/bin/pin.d.mts +6 -0
  12. package/lib/bin/pure-lint.d.mts +2 -0
  13. package/lib/bin/server.d.mts +2 -0
  14. package/lib/bin/setup.d.mts +2 -0
  15. package/lib/bin/start.d.mts +2 -0
  16. package/lib/bin/stylelint.d.mts +2 -0
  17. package/lib/bin/tsc.d.mts +2 -0
  18. package/lib/bin/utils/bundle-app.d.mts +2 -0
  19. package/lib/bin/utils/config.d.mts +6 -0
  20. package/lib/bin/utils/convert-react.d.mts +1 -0
  21. package/lib/bin/utils/get-commit-files.d.mts +2 -0
  22. package/lib/bin/utils/setup-swcrc.d.mts +2 -0
  23. package/lib/build/common.d.mts +3 -0
  24. package/lib/build/server.d.mts +3 -0
  25. package/lib/build.d.mts +1 -0
  26. package/lib/commom/ca.d.mts +8 -0
  27. package/lib/commom/check-npm.d.mts +4 -0
  28. package/lib/commom/corepack.d.mts +11 -0
  29. package/lib/commom/css-in-js-minify.d.mts +13 -0
  30. package/lib/commom/css-in-js-minify.mjs +1 -0
  31. package/lib/commom/diff-object.d.mts +2 -0
  32. package/lib/commom/esm.d.mts +2 -0
  33. package/lib/commom/has-pkg.d.mts +2 -0
  34. package/lib/commom/host.d.mts +1 -0
  35. package/lib/commom/is-ci-environment.d.mts +6 -0
  36. package/lib/commom/log.d.mts +2 -0
  37. package/lib/commom/match-path.d.mts +22 -0
  38. package/lib/commom/mime.d.mts +2 -0
  39. package/lib/commom/module-resolve.d.mts +2 -0
  40. package/lib/commom/net.d.mts +2 -0
  41. package/lib/commom/open.d.mts +2 -0
  42. package/lib/commom/parse-args.d.mts +2 -0
  43. package/lib/commom/parse-module-meta.d.mts +9 -0
  44. package/lib/commom/paths.d.mts +52 -0
  45. package/lib/commom/print-log.d.mts +15 -0
  46. package/lib/commom/reactive-object.d.mts +10 -0
  47. package/lib/commom/require.d.mts +2 -0
  48. package/lib/commom/rule.d.mts +26 -0
  49. package/lib/commom/setup-env.d.mts +6 -0
  50. package/lib/commom/sigint-exit.d.mts +2 -0
  51. package/lib/commom/timer.d.mts +12 -0
  52. package/lib/commom/transfer-import-on-demand.d.mts +78 -0
  53. package/lib/commom/transform-solid-js.d.mts +18 -0
  54. package/lib/common.d.mts +3 -0
  55. package/lib/config.d.mts +4 -0
  56. package/lib/dev/config.d.mts +4 -0
  57. package/lib/dev/generate-progress-html.d.mts +6 -0
  58. package/lib/dev/get-cert.d.mts +8 -0
  59. package/lib/dev/json-schema.d.mts +70 -0
  60. package/lib/dev/mock.d.mts +67 -0
  61. package/lib/dev/proxy.d.mts +15 -0
  62. package/lib/dev/server.d.mts +26 -0
  63. package/lib/dev.d.mts +1 -0
  64. package/lib/file-system.d.mts +2 -0
  65. package/lib/index.d.mts +24 -0
  66. package/lib/lint/eslint/base.d.mts +2 -0
  67. package/lib/lint/eslint/index.d.mts +2 -0
  68. package/lib/lint/eslint/react.d.mts +2 -0
  69. package/lib/lint/eslint/solid.d.mts +2 -0
  70. package/lib/lint/eslint/vue.d.mts +2 -0
  71. package/lib/lint/stylelint/config.d.mts +2 -0
  72. package/lib/lint/stylelint/index.d.mts +1 -0
  73. package/lib/loader/css-in-js-minify.cjs +1 -1
  74. package/lib/loader/css-in-js-minify.d.cts +3 -0
  75. package/lib/loader/lightning-css/codegen.d.cts +35 -0
  76. package/lib/loader/lightning-css/loader.d.cts +29 -0
  77. package/lib/loader/lightning-css/runtime/api.d.cts +1 -0
  78. package/lib/loader/lightning-css/runtime/get-url.d.cts +1 -0
  79. package/lib/loader/lightning-css/utils.d.cts +16 -0
  80. package/lib/loader/mdx.d.cts +3 -0
  81. package/lib/loader/react-compiler.cjs +1 -1
  82. package/lib/loader/react-compiler.d.cts +29 -0
  83. package/lib/loader/solid.cjs +1 -1
  84. package/lib/loader/solid.d.cts +6 -0
  85. package/lib/loader/ts-doc.d.cts +7 -0
  86. package/lib/module.config.d.mts +3 -0
  87. package/lib/options/css-extract.d.mts +3 -0
  88. package/lib/options/jsx-dom-expressions.d.mts +10 -0
  89. package/lib/options/md-to-html.d.mts +2 -0
  90. package/lib/options/modify-vars.d.mts +2 -0
  91. package/lib/options/reslove.d.mts +10 -0
  92. package/lib/options/split-chunk.d.mts +4 -0
  93. package/lib/options/swcrc.d.mts +10 -0
  94. package/lib/plugin/compression.d.mts +15 -0
  95. package/lib/plugin/copy.d.mts +30 -0
  96. package/lib/plugin/done.d.mts +11 -0
  97. package/lib/plugin/eslint.d.mts +14 -0
  98. package/lib/plugin/exposes-declararion.d.mts +15 -0
  99. package/lib/plugin/external-remotes.d.mts +4 -0
  100. package/lib/plugin/html-plugin.d.mts +60 -0
  101. package/lib/plugin/lightningcss-plugin.d.mts +20 -0
  102. package/lib/plugin/manifest.d.mts +46 -0
  103. package/lib/plugin/module-federation.d.mts +3 -0
  104. package/lib/plugin/override-resolve.d.mts +25 -0
  105. package/lib/plugin/stylelint.d.mts +13 -0
  106. package/lib/plugin/swc-minify-plugin.d.mts +8 -0
  107. package/lib/plugin/virtual-module.d.mts +12 -0
  108. package/lib/plugins.config.d.mts +3 -0
  109. package/lib/polyfills/polyfills.d.mts +3 -0
  110. package/lib/polyfills/replace-children.d.mts +1 -0
  111. package/lib/polyfills/targets.d.mts +3 -0
  112. package/lib/process-env.d.mts +26 -0
  113. package/lib/utils/compile-dts.d.mts +23 -0
  114. package/lib/utils/create-types.d.mts +2 -0
  115. package/lib/utils/dts.d.mts +14 -0
  116. package/lib/utils/fetch-module-federation-dts.d.mts +2 -0
  117. package/lib/utils/index.d.mts +35 -0
  118. package/lib/utils/run.d.mts +2 -0
  119. package/lib/utils/seo.d.mts +2 -0
  120. package/lib/utils/svg-to-data-uri.d.mts +2 -0
  121. package/lib/utils/vts.d.mts +18 -0
  122. package/lib/vm/coverage.d.mts +2 -0
  123. package/lib/vm/docs.d.mts +7 -0
  124. package/lib/vm/example.d.mts +4 -0
  125. package/lib/vm/generate-doc.d.mts +1 -0
  126. package/lib/vm/info.d.mts +2 -0
  127. package/lib/vm/locales.d.mts +5 -0
  128. package/lib/vm/modules.d.mts +2 -0
  129. package/lib/vm/render-app.d.mts +2 -0
  130. package/lib/vm/routes.d.mts +8 -0
  131. package/lib/vm/utils.d.mts +1 -0
  132. package/lib/worker/css-in-js-minify.d.mts +1 -0
  133. package/lib/worker/css-in-js-minify.mjs +1 -0
  134. package/lib/worker/dts.d.mts +1 -0
  135. package/lib/worker/eslint.d.mts +1 -0
  136. package/lib/worker/react-compiler.d.mts +1 -0
  137. package/lib/worker/solid.d.mts +1 -0
  138. package/lib/worker/stylelint.d.mts +1 -0
  139. package/lib/worker/swc-minify.d.mts +1 -0
  140. package/package.json +3 -3
  141. package/typings/global.d.ts +15 -12
@@ -0,0 +1,3 @@
1
+ import { type WebpackPluginInstance } from 'webpack';
2
+ declare const moduleFederation: WebpackPluginInstance[];
3
+ export default moduleFederation;
@@ -0,0 +1,25 @@
1
+ import type { Resolver } from 'webpack';
2
+ export interface OverrideResolverOption {
3
+ /** 源文件夹地址
4
+ * @default src 默认
5
+ * @default site 组件库
6
+ */
7
+ original?: string;
8
+ /** 用于覆盖的文件夹地址
9
+ * @default CUSTOMCONFIG 启动命令的 config 值
10
+ * // 当运行下面的命令启动时
11
+ * @example
12
+ * ```sh
13
+ * npm run start --config=fix-1131
14
+ * # or
15
+ * yarn start config=fix-1131
16
+ * ```
17
+ * override 默认为 config 的值, 即 fix-1131 目录
18
+ */
19
+ override?: string;
20
+ }
21
+ export declare class OverrideResolverPlugin {
22
+ private readonly options;
23
+ constructor(options: Required<OverrideResolverOption>);
24
+ apply(resolver: Resolver): void;
25
+ }
@@ -0,0 +1,13 @@
1
+ import type { LinterOptions } from '@moneko/stylelint';
2
+ import { type Compiler } from 'webpack';
3
+ export interface StylelintOption extends LinterOptions {
4
+ files: string[];
5
+ }
6
+ export declare class StylelintPlugin {
7
+ private name;
8
+ private worker;
9
+ private options;
10
+ constructor(options?: StylelintOption);
11
+ apply(compiler: Compiler): void;
12
+ private report;
13
+ }
@@ -0,0 +1,8 @@
1
+ import { type JsMinifyOptions } from '@swc/core';
2
+ import { type Compiler } from 'webpack';
3
+ export declare class SwcMinifyPlugin {
4
+ private name;
5
+ private options;
6
+ constructor(options: JsMinifyOptions);
7
+ apply(compiler: Compiler): void;
8
+ }
@@ -0,0 +1,12 @@
1
+ import type { Compiler, WebpackPluginInstance } from 'webpack';
2
+ export interface VirtualModulePluginOption {
3
+ [key: string]: string | object;
4
+ }
5
+ export declare class VirtualModuleWebpackPlugin implements WebpackPluginInstance {
6
+ private virtualModules;
7
+ private options;
8
+ private init;
9
+ constructor(options?: VirtualModulePluginOption);
10
+ private modify;
11
+ apply(compiler: Compiler): void;
12
+ }
@@ -0,0 +1,3 @@
1
+ import { type WebpackPluginInstance } from 'webpack';
2
+ declare const plugins: WebpackPluginInstance[];
3
+ export default plugins;
@@ -0,0 +1,3 @@
1
+ export declare const coreJsVersion: string;
2
+ declare function polyfills(): string[];
3
+ export default polyfills;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ import { type Targets } from 'lightningcss';
2
+ export declare function getBrowsersTargets(): string[];
3
+ export declare function getLightningCssTargets(): Targets;
@@ -0,0 +1,26 @@
1
+ import type { AppType, Framework } from './index.mjs';
2
+ export declare const IS_WINDOW: boolean;
3
+ export declare const APPTYPE: AppType;
4
+ export declare const FRAMEWORK: Framework;
5
+ export declare const NODE_ENV: string;
6
+ export declare const isLibrary: boolean;
7
+ export declare const isMicro: boolean;
8
+ export declare const isMobile: boolean;
9
+ export declare const isReact: boolean;
10
+ export declare const isSolid: boolean;
11
+ export declare const SSR: boolean;
12
+ /** 项目主要文件夹 */
13
+ export declare const mainDirectory: 'site' | 'src';
14
+ export declare const jsxImportSource: string;
15
+ export declare const framework: 'react' | 'solid-js';
16
+ export declare const frameworkVersionStr: string;
17
+ export declare const frameworkVersion: number;
18
+ export declare const packageJson: typeof import('package.json');
19
+ /** 应用名称 */
20
+ export declare const PACKAGENAME: string;
21
+ /** core 包名 */
22
+ export declare const coreName: string;
23
+ /** 是否为本地开发环境 */
24
+ export declare const isDev: boolean;
25
+ export declare const refresh: boolean;
26
+ export declare const isCI: boolean;
@@ -0,0 +1,23 @@
1
+ import ts from 'typescript';
2
+ interface CompilerDtsOption {
3
+ extends?: string;
4
+ compilerOptions?: ts.CompilerOptions;
5
+ include?: string[];
6
+ }
7
+ /**
8
+ * 编译 TypeScript 文件
9
+ * @param {CompilerDtsOption} config - 编译配置
10
+ * @returns {string} 编译结果
11
+ * @example
12
+ * ```ts
13
+ * const result = compileDts({
14
+ * extends: './tsconfig.json',
15
+ * compilerOptions: {
16
+ * outFile: './module-federation.d.ts',
17
+ * },
18
+ * include: ['src/components/graph-editor']
19
+ * });
20
+ * ```
21
+ */
22
+ export declare function compileDts(config: CompilerDtsOption): string;
23
+ export {};
@@ -0,0 +1,2 @@
1
+ declare function createTypes(moduleName: string, dts: string): string;
2
+ export default createTypes;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * 根据ts内容生成声明类型
3
+ * @param {String} source 源码内容
4
+ * @param {String} filename 文件名
5
+ * @returns {String} declaration
6
+ */
7
+ export declare function generateDeclaration(source: string, filename: string): string;
8
+ /**
9
+ * 获取ts内容导出的key (优化版本)
10
+ * @param {String} source 源码内容
11
+ * @param {String} filename 文件名
12
+ * @returns {Array<String>} tokens
13
+ */
14
+ export declare function getExportKeys(source: string, filename: string): string[];
@@ -0,0 +1,2 @@
1
+ declare function fetchModuleFederationDts(host: string, name: string): Promise<void>;
2
+ export default fetchModuleFederationDts;
@@ -0,0 +1,35 @@
1
+ /**
2
+ * 将字符串转换为小驼峰命名
3
+ * @param {string} str 需要转换的字符串
4
+ * @returns {string} 转换后的小驼峰命名字符串
5
+ * @example
6
+ * toCamelCase('hello-world') // 'helloWorld'
7
+ * toCamelCase('foo-bar') // 'fooBar'
8
+ */
9
+ export declare function toCamelCase(str: string): string;
10
+ /**
11
+ * 将字符串转换为驼峰命名
12
+ * @param {string} name 需要转换的字符串
13
+ * @returns {string} 转换后的驼峰命名字符串
14
+ * @example
15
+ * convertToCamelCase('hello-world') // 'HelloWorld'
16
+ * convertToCamelCase('foo-bar-ui') // 'FooBarUI'
17
+ */
18
+ export declare function convertToCamelCase(name: string): string;
19
+ type ProgramPath<T extends string> = `${T extends string ? T : string}`;
20
+ /** 位于项目根目录下的位置
21
+ * @param {string} src 路径
22
+ * @returns {string} 位于项目根目录下的位置
23
+ */
24
+ export declare function resolveProgram<T extends string>(src: T): ProgramPath<T>;
25
+ /** 位于项目根目录node_modules下的位置
26
+ * @param {string} name 路径
27
+ * @returns {string} 位于项目根目录node_modules下的位置
28
+ */
29
+ export declare function node_modules<T extends string>(name: T): `node_modules/${T}`;
30
+ export declare function isObject(target: unknown): target is object;
31
+ type AnyFunction = (...a: any[]) => any;
32
+ export declare function isFunction<T>(target: T): target is T & AnyFunction;
33
+ export declare function transformModule(obj: object | string): string;
34
+ export declare function empty(): void;
35
+ export {};
@@ -0,0 +1,2 @@
1
+ declare function run(fileContent: string, filePath: string): any;
2
+ export default run;
@@ -0,0 +1,2 @@
1
+ declare const seo: () => void;
2
+ export default seo;
@@ -0,0 +1,2 @@
1
+ declare function svgToDataUri(svgString: string): string;
2
+ export default svgToDataUri;
@@ -0,0 +1,18 @@
1
+ interface VfsOptions {
2
+ namedExport?: boolean;
3
+ modules: Record<string, any>;
4
+ }
5
+ /**
6
+ * 运行 ts 代码
7
+ * @param {String} filepath 文件名
8
+ * @returns {String} declaration
9
+ * @example
10
+ * // a.ts
11
+ * export default { user: 'admin' } as { user: 'admin' };
12
+ * // b.js
13
+ * const a = vts('fullpath/a.ts');
14
+ *
15
+ * console.log(a); // { user: 'admin' }
16
+ */
17
+ export declare function vts<T>(filepath: string, options?: VfsOptions): T;
18
+ export {};
@@ -0,0 +1,2 @@
1
+ declare function getCoverage(coveragePath: string): string;
2
+ export default getCoverage;
@@ -0,0 +1,7 @@
1
+ import ReactiveObject from '../commom/reactive-object.mjs';
2
+ export declare const docsModuleName: string;
3
+ export declare const docsModulePkgJson: string;
4
+ export declare const docsModuleMeta: string;
5
+ export declare const docs: ReactiveObject<Record<string, string>>;
6
+ export declare const comment: ReactiveObject<Record<string, string>>;
7
+ export declare const getCommentPath: (file: string) => string;
@@ -0,0 +1,4 @@
1
+ import ReactiveObject from '../commom/reactive-object.mjs';
2
+ export declare const exampleModuleName = "@app/example";
3
+ export declare const examples: ReactiveObject<Record<string, string>>;
4
+ export declare function generatorExample(): void;
@@ -0,0 +1 @@
1
+ export default function generateDoc(content: string, path: string): string;
@@ -0,0 +1,2 @@
1
+ declare const app: Record<string, unknown>;
2
+ export default app;
@@ -0,0 +1,5 @@
1
+ import ReactiveObject from '../commom/reactive-object.mjs';
2
+ export declare const localesModuleName: string;
3
+ export declare const locales: ReactiveObject<{
4
+ [x: string]: string;
5
+ }>;
@@ -0,0 +1,2 @@
1
+ declare const normalModules: Record<string, string | object>;
2
+ export default normalModules;
@@ -0,0 +1,2 @@
1
+ declare const renderApp: string;
2
+ export default renderApp;
@@ -0,0 +1,8 @@
1
+ import ReactiveObject from '../commom/reactive-object.mjs';
2
+ export declare const routesModuleName: string;
3
+ export declare const routesModulePkgJson: string;
4
+ export declare const routesModuleMeta: string;
5
+ export declare const route: ReactiveObject<{
6
+ [x: string]: string;
7
+ }>;
8
+ export declare function generatorRouter(): void;
@@ -0,0 +1 @@
1
+ export declare function watchFiles(root: string, ignored?: RegExp, call?: VoidFunction): void;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ import{parentPort as s}from"node:worker_threads";import{cssInJsMinify as e}from"../commom/css-in-js-minify.mjs";s?.setMaxListeners(0),s?.on("message",async({code:o,filename:m,options:r})=>{try{let t=await e(o,r);s?.postMessage([m,null,t?.code??o,t.map])}catch(e){s?.postMessage([m,e,o,void 0])}});
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export type ESLintWorkerMessage = [warnings: string, errors: string];
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export type StylelintWorkerMessage = [warnings: string, errors: string];
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@moneko/core",
3
- "version": "3.55.3",
3
+ "version": "3.55.5",
4
4
  "description": "core",
5
5
  "main": "lib/index.mjs",
6
6
  "type": "module",
7
7
  "scripts": {
8
8
  "build": "rm -rf ./lib && node build.mjs && tsc",
9
- "prepublishOnly": "node build.mjs",
9
+ "prepublishOnly": "npm run build",
10
10
  "pin": "node lib/bin/index.mjs pin"
11
11
  },
12
12
  "bin": {
@@ -141,7 +141,7 @@
141
141
  "@types/stylis": "4.2.7",
142
142
  "@types/webpack-bundle-analyzer": "4.7.0",
143
143
  "@types/webpack-hot-middleware": "2.25.10",
144
- "sass": "1.93.0",
144
+ "sass": "1.93.1",
145
145
  "sass-loader": "16.0.5",
146
146
  "solid-refresh": "0.7.5",
147
147
  "stylis": "4.3.6",
@@ -14,17 +14,6 @@ import type {
14
14
  SourceMapDevToolPlugin,
15
15
  } from 'webpack';
16
16
 
17
- import type {
18
- CssInJsMinifyOption,
19
- HtmlPluginOption,
20
- JsxDomExpressions,
21
- CompressionPluginOptions,
22
- OptimizationSplitChunksOptions,
23
- OverrideResolverOption,
24
- ProxyConfig,
25
- ReactCompilerOption,
26
- VirtualModulePluginOption,
27
- } from '../lib/index.mjs';
28
17
  import type { CopyPluginOption } from '../lib/plugin/copy.mjs';
29
18
  import type { DonePluginOption } from '../lib/plugin/done.mjs';
30
19
  import type { ManifestPluginOption } from '../lib/plugin/manifest.mjs';
@@ -32,7 +21,16 @@ import type { ManifestPluginOption } from '../lib/plugin/manifest.mjs';
32
21
  import type { BundleAnalyzerOption } from './bundle-analyzer.d.ts';
33
22
  import type { ESLintOption } from '../lib/plugin/eslint.mjs';
34
23
  import type { StylelintOption } from '../lib/plugin/stylelint.mjs';
35
- import type { SwcImportOnDemandTransform } from '../lib/commom/transfer-import-on-demand.mjs'
24
+ import type { SwcImportOnDemandTransform } from '../lib/commom/transfer-import-on-demand.mjs';
25
+ import type { CssInJsMinifyOption } from '../lib/commom/css-in-js-minify.mjs';
26
+ import type { ReactCompilerOption } from '../lib/loader/react-compiler.cjs';
27
+ import type { CompressionPluginOptions } from '../lib/plugin/compression.mjs';
28
+ import type { JsxDomExpressions } from '../lib/options/jsx-dom-expressions.mjs';
29
+ import type { ProxyConfig } from '../lib/dev/proxy.mjs';
30
+ import type { VirtualModulePluginOption } from '../lib/plugin/virtual-module.mjs';
31
+ import type { OverrideResolverOption } from '../lib/plugin/override-resolve.mjs';
32
+ import type { OptimizationSplitChunksOptions } from '../lib/options/split-chunk.mjs';
33
+ import type { HtmlPluginOption } from '../lib/plugin/html-plugin.mjs';
36
34
 
37
35
  export type { MiniCssExtractPluginOptions, SwcMinifyOptions, TerserMinifyOptions };
38
36
  export type MinifierType = 'swc' | 'terser';
@@ -237,6 +235,11 @@ export declare type ConfigType = {
237
235
  /**
238
236
  * 使用 HTTPS 服务器作为开发服务器
239
237
  * @description
238
+ * 如果你是macOS用户, 当启用 https 时, 第一次启动需要通过 `sudo ...` 启动提权以便安装证书;
239
+ * ```bash
240
+ * sudo npm start
241
+ * ```
242
+ * @description
240
243
  * 配置 HTTPS 开发服务器的密钥和证书路径。
241
244
  *
242
245
  * `key` 和 `cert` 参数指定了私钥和证书文件的位置。