Merge branch 'code-about'
This commit is contained in:
commit
f94c3b5c1a
@ -3,6 +3,14 @@
|
||||
"version": "2.3.0",
|
||||
"type": "module",
|
||||
"private": true,
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://git.babyl.ca/aotds/aotds-docks.git"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://git.babyl.ca/aotds/aotds-docks/issues"
|
||||
},
|
||||
"homepage": "https://git.babyl.ca/aotds/aotds-docks",
|
||||
"scripts": {
|
||||
"dev": "svelte-kit dev",
|
||||
"build": "svelte-kit build",
|
||||
|
@ -1,10 +0,0 @@
|
||||
import { createStore } from "./index.js";
|
||||
|
||||
test("basic, initial store", () => {
|
||||
const store = createStore();
|
||||
|
||||
const state = store.getState();
|
||||
|
||||
expect(state).toHaveProperty("propulsion.drive.reqs.mass", 0);
|
||||
// expect(state).toHaveProperty("structure.cargo.space", 0);
|
||||
});
|
@ -30,7 +30,7 @@
|
||||
<a href="https://techblog.babyl.ca">Yanick Champoux</a>
|
||||
. Code available on
|
||||
<!-- TODO read the url from package.json -->
|
||||
<a href="https://github.com/aotds/aotds-shipyard">Github</a>.
|
||||
<a href={import.meta.env.HOMEPAGE}>my Gitea instance</a>.
|
||||
</p>
|
||||
|
||||
<style>
|
||||
|
@ -7,3 +7,8 @@ test("we have an about page", () => {
|
||||
const { getByText } = render(About);
|
||||
expect(getByText("Welcome to the docks!")).toBeInTheDocument();
|
||||
});
|
||||
|
||||
test("link to gitea is there", () => {
|
||||
const { getByText } = render(About);
|
||||
expect(getByText("my Gitea instance")).toBeInTheDocument();
|
||||
});
|
||||
|
@ -1,12 +1,17 @@
|
||||
// vite.config.js
|
||||
import { sveltekit } from "@sveltejs/kit/vite";
|
||||
import packageJson from "./package.json";
|
||||
|
||||
/** @type {import('vite').UserConfig} */
|
||||
const config = {
|
||||
plugins: [sveltekit()],
|
||||
publicDir: "./static",
|
||||
ssr: {},
|
||||
optimizeDeps: {},
|
||||
plugins: [sveltekit()],
|
||||
publicDir: "./static",
|
||||
ssr: {},
|
||||
optimizeDeps: {},
|
||||
define: {
|
||||
"import.meta.env.PACKAGE_VERSION": JSON.stringify(packageJson.version),
|
||||
"import.meta.env.HOMEPAGE": JSON.stringify(packageJson.homepage),
|
||||
},
|
||||
};
|
||||
|
||||
export default config;
|
||||
|
Loading…
Reference in New Issue
Block a user