Skip to content

Commit 3b6fc0a

Browse files
author
Wes Biggs
committed
Github pages work
1 parent 37e2f25 commit 3b6fc0a

File tree

4 files changed

+30
-9
lines changed

4 files changed

+30
-9
lines changed

demo/package-lock.json

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

demo/package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,19 @@
1212
"format": "prettier --write ."
1313
},
1414
"devDependencies": {
15-
"buffer": "^6.0.3",
16-
"globals": "^15.0.0",
17-
"process": "^0.11.10",
1815
"@sveltejs/adapter-auto": "^3.0.0",
16+
"@sveltejs/adapter-static": "^3.0.4",
1917
"@sveltejs/kit": "^2.0.0",
2018
"@sveltejs/vite-plugin-svelte": "^3.0.0",
2119
"@types/eslint": "^9.6.0",
20+
"buffer": "^6.0.3",
2221
"eslint": "^9.0.0",
2322
"eslint-config-prettier": "^9.1.0",
2423
"eslint-plugin-svelte": "^2.36.0",
24+
"globals": "^15.0.0",
2525
"prettier": "^3.1.1",
2626
"prettier-plugin-svelte": "^3.1.2",
27+
"process": "^0.11.10",
2728
"svelte": "^4.2.7",
2829
"svelte-check": "^3.6.0",
2930
"typescript": "^5.0.0",
@@ -36,6 +37,6 @@
3637
"dependencies": {
3738
"@digitalbazaar/did-io": "^2.0.0",
3839
"@dsnp/did-resolver": "^0.0.4",
39-
"@dsnp/did-resolver-frequency": "^0.0.1"
40+
"@dsnp/did-resolver-frequency": "^0.0.1"
4041
}
4142
}

demo/svelte.config.js

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,26 @@
1-
import adapter from '@sveltejs/adapter-auto';
1+
import adapter from '@sveltejs/adapter-static';
22
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
33

4+
const dev = process.argv.includes('dev');
5+
46
/** @type {import('@sveltejs/kit').Config} */
57
const config = {
68
// Consult https://kit.svelte.dev/docs/integrations#preprocessors
79
// for more information about preprocessors
810
preprocess: vitePreprocess(),
911

1012
kit: {
11-
// adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list.
12-
// If your environment is not supported, or you settled on a specific environment, switch out the adapter.
1313
// See https://kit.svelte.dev/docs/adapters for more information about adapters.
14-
adapter: adapter()
14+
adapter: adapter({
15+
pages: 'build',
16+
assets: 'build',
17+
fallback: '404.html', // dependent on host platform, see GitHub pages doc, maybe?
18+
precompress: true,
19+
strict: true
20+
}),
21+
paths: {
22+
base: dev ? '' : process.env.BASE_PATH
23+
}
1524
}
1625
};
1726

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@
1010
"strict": true,
1111
"skipLibCheck": true
1212
},
13-
"exclude": ["node_modules/**", "jest.config.*", "**/*.test.ts", "./dist/**"]
13+
"exclude": ["node_modules/**", "jest.config.*", "**/*.test.ts", "./dist/**", "demo/**"]
1414
}

0 commit comments

Comments
 (0)