Skip to content

Commit

Permalink
Merge pull request #14 from kellnr/update-to-vite
Browse files Browse the repository at this point in the history
replace vue-cli with vite
  • Loading branch information
secana committed Sep 24, 2023
2 parents 3302fc3 + b94ec9d commit e31ee12
Show file tree
Hide file tree
Showing 16 changed files with 2,381 additions and 11,257 deletions.
2 changes: 2 additions & 0 deletions crates/kellnr/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ static UI_DIR: &str = "../../ui";
static UI_DIR_SRC: &str = "../../ui/src";
static UI_DIST_DIR: &str = "../../ui/dist";
static STATIC_DIR: &str = "../../static";
static INDEX_HTML: &str = "../../ui/index.html";

#[cfg(windows)]
static NPM_CMD: &str = "npm.cmd";
Expand All @@ -14,6 +15,7 @@ fn main() {
println!("Build Kellnr - build.rs!");

println!("cargo:rerun-if-changed={}", UI_DIR_SRC);
println!("cargo:rerun-if-changed={}", INDEX_HTML);

install_ui_deps();
build_ui();
Expand Down
2 changes: 0 additions & 2 deletions ui/.env.development

This file was deleted.

2 changes: 0 additions & 2 deletions ui/.env.production

This file was deleted.

6 changes: 0 additions & 6 deletions ui/babel.config.js

This file was deleted.

5 changes: 0 additions & 5 deletions ui/babel.config.ts

This file was deleted.

9 changes: 5 additions & 4 deletions ui/public/index.html → ui/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,21 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta content="width=device-width, initial-scale=1" name="viewport" />
<link rel="icon" href="<%= BASE_URL %>img/kellnr-logo-small-light.png" type="image/png">
<link rel="icon" href="/img/kellnr-logo-small-light.png" type="image/png">
<title>
<%= htmlWebpackPlugin.options.title %>
Kellnr
</title>

</head>

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

</html>
</html>
5 changes: 0 additions & 5 deletions ui/jsconfig.json

This file was deleted.

Loading

0 comments on commit e31ee12

Please sign in to comment.