Skip to content

Commit 9c6e7c7

Browse files
Merge pull request #27 from pexip/chore/improve-the-vite-configuration-to-simplify-the-developement-process
chore: configure vite to simplify the development
2 parents b7d9bea + 0ac3774 commit 9c6e7c7

7 files changed

Lines changed: 260 additions & 13 deletions

File tree

.env.example

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
VITE_INFINITY_TARGET=https://pexipdemo.com
2+
VITE_DEV_SERVER_PORT=5173

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
dist
22
node_modules
3-
.DS_Store
3+
.DS_Store
4+
.env

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,22 @@ of the screen:
5555
| -------- | ------- |
5656
| v20.12.2 | v10.5.0 |
5757

58+
- Create a file `.env` in the root of the project with the following content:
59+
60+
```env
61+
VITE_INFINITY_TARGET=<infinity_url>
62+
VITE_DEV_SERVER_PORT=<dev_server_port>
63+
```
64+
65+
The `VITE_INFINITY_TARGET` variable is **mandatory** and should contain the URL
66+
of the Pexip Infinity system where you want to test the plugin.
67+
68+
The `VITE_DEV_SERVER_PORT` variable is an optional variable used to specify the
69+
port on which the development server will run. If not provided, it defaults to
70+
`5173`.
71+
72+
You can check an example in the provided `.env.example` file.
73+
5874
- Install all the dependencies:
5975

6076
```bash

eslint.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ export default [
1414
files: ["**/*.tsx", "**/*.ts"],
1515
},
1616
{
17-
ignores: ['dist', 'eslint.config.js', 'vite.config.ts', 'utils'],
17+
ignores: ['dist', 'eslint.config.js', 'vite.config.ts'],
1818
}
1919
]

package-lock.json

Lines changed: 153 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,13 @@
1919
"pino": "^10.1.0"
2020
},
2121
"devDependencies": {
22+
"@types/node": "^25.0.3",
2223
"eslint": "^9.39.2",
2324
"eslint-config-love": "^140.0.0",
2425
"eslint-config-prettier": "^10.1.8",
2526
"prettier": "^3.7.4",
2627
"typescript": "^5.9.3",
27-
"vite": "^7.3.0"
28+
"vite": "^7.3.0",
29+
"vite-plugin-mkcert": "^1.17.9"
2830
}
2931
}

0 commit comments

Comments
 (0)