@idleberg/vite-plugin-devcert 0.3.2 → 0.4.1
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/README.md +2 -5
- package/dist/plugin.js +1 -1
- package/package.json +10 -12
package/README.md
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
[](https://github.com/idleberg/vite-plugin-devcert/blob/main/LICENSE)
|
|
6
6
|
[](https://www.npmjs.org/package/@idleberg/vite-plugin-devcert)
|
|
7
7
|
[](https://jsr.io/@idleberg/vite-plugin-devcert)
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+

|
|
9
|
+
|
|
10
10
|
|
|
11
11
|
> [!IMPORTANT]
|
|
12
12
|
> This plugin is based on [`@expo/devcert`](https://www.npmjs.com/package/@expo/devcert), an actively maintained fork of `devcert`. Read about [how it works](https://github.com/expo/devcert/#how-it-works) and [its implications on security](https://github.com/expo/devcert/#security-concerns).
|
|
@@ -25,9 +25,6 @@ On Deno you will likely want to use JSR:
|
|
|
25
25
|
deno add jsr:@idleberg/vite-plugin-devcert
|
|
26
26
|
```
|
|
27
27
|
|
|
28
|
-
> [!NOTE]
|
|
29
|
-
> Unless your package manager is set up to install peer dependencies automatically, you need to install `@expo/devcert` yourself.
|
|
30
|
-
|
|
31
28
|
## Usage 🚀
|
|
32
29
|
|
|
33
30
|
```javascript
|
package/dist/plugin.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{env as e}from"node:process";import{certificateFor as t}from"@expo/devcert";import n from"boxen";import{cyan as r,underline as i}from"kleur/colors";import a from"log-symbols";function o(e={}){let n=!1;return{name:`@idleberg/vite-plugin-devcert`,config:async(o,{command:c})=>{if(c!==`serve`)return;let{server:l}=o;if(l?.https?.key&&l?.https?.cert)return console.warn(`${a.warning} Skipping devcert, key and cert already provided.`),o;let u=l?.host&&typeof l.host==`string`?l.host:`localhost`;n
|
|
1
|
+
import{env as e}from"node:process";import{certificateFor as t}from"@expo/devcert";import n from"boxen";import{cyan as r,underline as i}from"kleur/colors";import a from"log-symbols";function o(e={}){let n=!1;return{name:`@idleberg/vite-plugin-devcert`,config:async(o,{command:c})=>{if(c!==`serve`)return;let{server:l}=o;if(l?.https?.key&&l?.https?.cert)return console.warn(`${a.warning} Skipping devcert, key and cert already provided.`),o;let u=l?.host&&typeof l.host==`string`?l.host:`localhost`;n||=(console.info(s([`Generating a certificate for "${r(u)}".`,`You may be prompted to enter your password to allow the creation of a root certificate authority.`,`\n\nFor details, please refer to the Expo documentation at ${i(`https://github.com/expo/devcert#how-it-works`)}.`].join(` `))),!0);let{key:d,cert:f}=await t(u,e);return{...o,server:{...l,https:{...l?.https,key:d??void 0,cert:f??void 0}}}}}}function s(t){return n(t.trim(),{borderColor:e.NO_COLOR?void 0:`blue`,margin:{top:1,bottom:1},padding:1,title:`vite-plugin-devcert`})}export{o as default};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@idleberg/vite-plugin-devcert",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "A Vite plugin to generate trusted SSL/TLS certificates for local development",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Jan T. Sott",
|
|
@@ -30,23 +30,21 @@
|
|
|
30
30
|
"README.md"
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@total-typescript/tsconfig": "^1.0.4",
|
|
34
33
|
"boxen": "^8.0.1",
|
|
35
34
|
"kleur": "^4.1.5",
|
|
36
35
|
"log-symbols": "^7.0.1"
|
|
37
36
|
},
|
|
38
37
|
"devDependencies": {
|
|
39
|
-
"@
|
|
40
|
-
"@commitlint/
|
|
41
|
-
"@
|
|
42
|
-
"@playwright/test": "^1.55.
|
|
43
|
-
"@types/node": "^24.
|
|
38
|
+
"@commitlint/cli": "^20.1.0",
|
|
39
|
+
"@commitlint/config-conventional": "^20.0.0",
|
|
40
|
+
"@idleberg/configs": "^0.3.1",
|
|
41
|
+
"@playwright/test": "^1.55.1",
|
|
42
|
+
"@types/node": "^24.7.0",
|
|
44
43
|
"concurrently": "^9.2.1",
|
|
45
|
-
"lefthook": "^1.13.0",
|
|
46
44
|
"np": "^10.2.0",
|
|
47
|
-
"tsdown": "^0.15.
|
|
48
|
-
"typescript": "^5.9.
|
|
49
|
-
"vite": "^7.1.
|
|
45
|
+
"tsdown": "^0.15.6",
|
|
46
|
+
"typescript": "^5.9.3",
|
|
47
|
+
"vite": "^7.1.9",
|
|
50
48
|
"vitest": "^3.2.4"
|
|
51
49
|
},
|
|
52
50
|
"peerDependencies": {
|
|
@@ -56,7 +54,7 @@
|
|
|
56
54
|
"scripts": {
|
|
57
55
|
"build": "tsdown",
|
|
58
56
|
"dev": "tsdown --watch",
|
|
59
|
-
"lint": "biome check
|
|
57
|
+
"lint": "biome check",
|
|
60
58
|
"publish:jsr": "deno publish",
|
|
61
59
|
"publish:npm": "np --any-branch",
|
|
62
60
|
"server": "concurrently -n 'e2e,unit' -c 'blue,green' 'npm:server:*'",
|