vite-plugin-rpx 0.11.0
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.
- package/LICENSE.md +21 -0
- package/README.md +148 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +20672 -0
- package/dist/simplified-plugin.d.ts +6 -0
- package/dist/types.d.ts +24 -0
- package/dist/utils.d.ts +4 -0
- package/package.json +62 -0
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { TlsConfig } from '@stacksjs/rpx';
|
|
2
|
+
export type { TlsConfig };
|
|
3
|
+
export declare interface VitePluginRpxOptions {
|
|
4
|
+
enabled?: boolean
|
|
5
|
+
domain?: string
|
|
6
|
+
https?: boolean | TlsConfig
|
|
7
|
+
cleanUrls?: boolean
|
|
8
|
+
cleanup?: boolean | {
|
|
9
|
+
/**
|
|
10
|
+
* Whether to clean up hosts file entries
|
|
11
|
+
* @default true
|
|
12
|
+
*/
|
|
13
|
+
hosts?: boolean
|
|
14
|
+
/**
|
|
15
|
+
* Whether to clean up SSL certificates
|
|
16
|
+
* @default false
|
|
17
|
+
*/
|
|
18
|
+
certs?: boolean
|
|
19
|
+
}
|
|
20
|
+
changeOrigin?: boolean
|
|
21
|
+
verbose?: boolean
|
|
22
|
+
regenerateUntrustedCerts?: boolean
|
|
23
|
+
enableHmr?: boolean
|
|
24
|
+
}
|
package/dist/utils.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { SingleReverseProxyConfig } from '@stacksjs/rpx';
|
|
2
|
+
import type { VitePluginRpxOptions } from './types';
|
|
3
|
+
export declare function getDefaultSSLConfig(): { caCertPath: string, certPath: string, keyPath: string };
|
|
4
|
+
export declare function buildConfig(options: VitePluginRpxOptions, serverUrl?: string): SingleReverseProxyConfig;
|
package/package.json
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "vite-plugin-rpx",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "0.11.0",
|
|
5
|
+
"description": "A modern and smart reverse proxy. Vite plugin.",
|
|
6
|
+
"author": "Chris Breuer <chris@stacksjs.org>",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"homepage": "https://github.com/stacksjs/rpx",
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/stacksjs/rpx.git"
|
|
12
|
+
},
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/stacksjs/rpx/issues"
|
|
15
|
+
},
|
|
16
|
+
"keywords": [
|
|
17
|
+
"reverse proxy",
|
|
18
|
+
"ssl",
|
|
19
|
+
"development",
|
|
20
|
+
"environment",
|
|
21
|
+
"proxy",
|
|
22
|
+
"bun",
|
|
23
|
+
"bun-plugin",
|
|
24
|
+
"stacks",
|
|
25
|
+
"typescript",
|
|
26
|
+
"javascript"
|
|
27
|
+
],
|
|
28
|
+
"exports": {
|
|
29
|
+
".": {
|
|
30
|
+
"types": "./dist/index.d.ts",
|
|
31
|
+
"import": "./dist/index.js"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"module": "./dist/index.js",
|
|
35
|
+
"types": "./dist/index.d.ts",
|
|
36
|
+
"files": [
|
|
37
|
+
"README.md",
|
|
38
|
+
"dist"
|
|
39
|
+
],
|
|
40
|
+
"scripts": {
|
|
41
|
+
"build": "bun build.ts",
|
|
42
|
+
"lint": "bunx --bun eslint .",
|
|
43
|
+
"lint:fix": "bunx --bun eslint . --fix",
|
|
44
|
+
"changelog": "changelogen --output CHANGELOG.md",
|
|
45
|
+
"prepublishOnly": "bun --bun run build",
|
|
46
|
+
"test": "bun test",
|
|
47
|
+
"typecheck": "bunx tsc --noEmit"
|
|
48
|
+
},
|
|
49
|
+
"dependencies": {
|
|
50
|
+
"@stacksjs/rpx": "0.11.0",
|
|
51
|
+
"@stacksjs/tlsx": "^0.10.0"
|
|
52
|
+
},
|
|
53
|
+
"devDependencies": {
|
|
54
|
+
"bun-plugin-dtsx": "^0.21.17"
|
|
55
|
+
},
|
|
56
|
+
"simple-git-hooks": {
|
|
57
|
+
"pre-commit": "bunx lint-staged"
|
|
58
|
+
},
|
|
59
|
+
"lint-staged": {
|
|
60
|
+
"*.{js,ts}": "bunx eslint . --fix"
|
|
61
|
+
}
|
|
62
|
+
}
|