right link for repo
This commit is contained in:
parent
fe21ba3b0b
commit
5739652d77
@ -3,6 +3,14 @@
|
|||||||
"version": "2.3.0",
|
"version": "2.3.0",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"private": true,
|
"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": {
|
"scripts": {
|
||||||
"dev": "svelte-kit dev",
|
"dev": "svelte-kit dev",
|
||||||
"build": "svelte-kit build",
|
"build": "svelte-kit build",
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
<a href="https://techblog.babyl.ca">Yanick Champoux</a>
|
<a href="https://techblog.babyl.ca">Yanick Champoux</a>
|
||||||
. Code available on
|
. Code available on
|
||||||
<!-- TODO read the url from package.json -->
|
<!-- 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>
|
</p>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
@ -7,3 +7,8 @@ test("we have an about page", () => {
|
|||||||
const { getByText } = render(About);
|
const { getByText } = render(About);
|
||||||
expect(getByText("Welcome to the docks!")).toBeInTheDocument();
|
expect(getByText("Welcome to the docks!")).toBeInTheDocument();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
test("link to gitea is there", () => {
|
||||||
|
const { getByText } = render(About);
|
||||||
|
expect(getByText("my Gitea instance")).toBeInTheDocument();
|
||||||
|
});
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
// vite.config.js
|
// vite.config.js
|
||||||
import { sveltekit } from "@sveltejs/kit/vite";
|
import { sveltekit } from "@sveltejs/kit/vite";
|
||||||
|
import packageJson from "./package.json";
|
||||||
|
|
||||||
/** @type {import('vite').UserConfig} */
|
/** @type {import('vite').UserConfig} */
|
||||||
const config = {
|
const config = {
|
||||||
@ -7,6 +8,10 @@ const config = {
|
|||||||
publicDir: "./static",
|
publicDir: "./static",
|
||||||
ssr: {},
|
ssr: {},
|
||||||
optimizeDeps: {},
|
optimizeDeps: {},
|
||||||
|
define: {
|
||||||
|
"import.meta.env.PACKAGE_VERSION": JSON.stringify(packageJson.version),
|
||||||
|
"import.meta.env.HOMEPAGE": JSON.stringify(packageJson.homepage),
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
export default config;
|
export default config;
|
||||||
|
Loading…
Reference in New Issue
Block a user