Skip to content

Commit

Permalink
Convert to vite
Browse files Browse the repository at this point in the history
Should start faster and has less old dependencies
  • Loading branch information
FSchumacher committed Oct 22, 2023
1 parent 9a9c155 commit a70787b
Show file tree
Hide file tree
Showing 12 changed files with 2,020 additions and 17,769 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,5 +114,5 @@ The api container will fetch the certificate from the sealed-secrets controller

### Local UI testing

* `yarn serve` to compile and start HTTP server on `port 8080` with hot-reloads for development
* `npm run serve` to compile and start HTTP server on `port 8080` with hot-reloads for development
* `yarn dev` to compile and start HTTP server on `port 8080` with hot-reloads for development
* `npm run dev` to compile and start HTTP server on `port 8080` with hot-reloads for development
14 changes: 14 additions & 0 deletions ui/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/* eslint-env node */
require('@rushstack/eslint-patch/modern-module-resolution')

module.exports = {
root: true,
'extends': [
'plugin:vue/vue3-essential',
'eslint:recommended',
'@vue/eslint-config-prettier/skip-formatting'
],
parserOptions: {
ecmaVersion: 'latest'
}
}
8 changes: 0 additions & 8 deletions ui/.eslintrc.js

This file was deleted.

8 changes: 8 additions & 0 deletions ui/.prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"$schema": "https://json.schemastore.org/prettierrc",
"semi": false,
"tabWidth": 2,
"singleQuote": true,
"printWidth": 100,
"trailingComma": "none"
}
23 changes: 14 additions & 9 deletions ui/README.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,29 @@
# kubeseal-webgui

## Project setup
```
yarn install

```console
npm install
```

### Compiles and hot-reloads for development
```
yarn serve

```console
npm run dev
```

### Compiles and minifies for production
```
yarn build

```console
npm run build
```

### Lints and fixes files
```
yarn lint

```console
npm run lint
```

### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).

See [Configuration Reference](https://vitejs.dev/config/).
5 changes: 0 additions & 5 deletions ui/babel.config.js

This file was deleted.

8 changes: 4 additions & 4 deletions ui/public/index.html → ui/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,23 @@
>
<link
rel="icon"
href="<%= BASE_URL %>favicon.ico"
href="/favicon.ico"
>
<title>
<%=htmlWebpackPlugin.options.title%>
Kubeseal Webgui
</title>
</head>

<body>
<noscript>
<strong>We're sorry but
<%=htmlWebpackPlugin.options.title%>
Kubeseal Webgui
doesn't work properly without JavaScript enabled.
Please enable it to continue.
</strong>
</noscript>
<div id="app"></div>
<!-- built files will be auto injected -->
<script type="module" src="/src/main.js"></script>
</body>

</html>
Loading

0 comments on commit a70787b

Please sign in to comment.