Skip to content

Commit

Permalink
fix(ci): removes reporting prod config and adds missing postbuild.p
Browse files Browse the repository at this point in the history
… script

it appears the `npm run postbuild.p` script was never added, preventing sitemap.xml from being generated in production.
  • Loading branch information
dgrebb committed Dec 31, 2023
1 parent d15bae9 commit ddd6af2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 24 deletions.
1 change: 1 addition & 0 deletions front/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"preview.local": "vite --config vite.local.config.js preview",
"postbuild.l": "npx -y -q svelte-sitemap -i '404.html' -i '/404/index.html' -i 'shingle.html' -i '/shingle/index.html' -i '/posts/category/index.html' -i '**/cv/*/**' -t --attribution=false --domain https://local.dgrebb.com",
"postbuild.s": "npx -y -q svelte-sitemap -i '404.html' -i '/404/index.html' -i 'shingle.html' -i '/shingle/index.html' -i '/cv/*/**' -t --attribution=false --domain https://stg.dgrebb.com",
"postbuild.p": "npx -y -q svelte-sitemap -i '404.html' -i '/404/index.html' -i 'shingle.html' -i '/shingle/index.html' -i '/cv/*/**' -t --attribution=false --domain https://www.dgrebb.com",
"postbuild": "npx -y -q svelte-sitemap -i '404.html' -i '/404/index.html' -i 'shingle.html' -i '/shingle/index.html' -i '/cv/*/**' -t --attribution=false --domain https://www.dgrebb.com",
"format": "prettier --write .",
"test.all": "npm run test.integration && npm run test.unit",
Expand Down
24 changes: 0 additions & 24 deletions front/vite.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { bundleStats } from 'rollup-plugin-bundle-stats';
import { sveltekit } from '@sveltejs/kit/vite';
import path from 'path';
import { visualizer } from 'rollup-plugin-visualizer';
import Icons from 'unplugin-icons/vite';
import { defineConfig } from 'vite';
import postcss from './postcss.config.js';
Expand Down Expand Up @@ -31,28 +29,6 @@ export default defineConfig({
Icons({
compiler: 'svelte',
}),
visualizer({
sourcemap: true,
template: 'treemap',
filename: '.report/stats.html',
}),
visualizer({
sourcemap: true,
template: 'network',
filename: '.report/network.html',
}),
visualizer({
sourcemap: true,
template: 'sunburst',
filename: '.report/sunburst.html',
}),
bundleStats({
outDir: '../../../.report/bundle/current',
compare: true,
baselineFilepath: '../../../.report/bundle/previous/bundle-stats.json',
json: true,
html: true,
}),
sveltekit(),
],
});

0 comments on commit ddd6af2

Please sign in to comment.