Add component API to built docs + Add Checkbox, CheckboxList, & CheckboxVirtualList

This commit is contained in:
venashial
2022-03-29 22:06:43 -07:00
parent 1da281de8a
commit 1d7949ded6
15 changed files with 374 additions and 56 deletions

View File

@@ -22,6 +22,10 @@ const config = {
kit: {
adapter: adapter(),
prerender: {
default: true,
onError: 'continue',
},
vite: {
plugins: [
svelteSvg(),
@@ -31,34 +35,6 @@ const config = {
}),
examples,
sveld(),
// {
// name: "sveltedoc-parser",
// async transform(src, id) {
// const query = id.split('?')[1]
//
// if ((query || '').includes('raw&api')) {
// const raw = JSON.parse(src.split('export default ')[1])
//
// let {code} = await svelte.preprocess(raw, sveltePreprocess(), {
// filename: id
// })
//
// const data = await parse({
// fileContent: code,
// encoding: 'ascii',
// features: ['data', 'computed', 'events', 'slots'],
// ignoredVisibilities: ['private'],
// includeSourceLocations: true,
// version: 3
// })
//
// return {
// code: `export default ${JSON.stringify(data)}`,
// map: null
// }
// }
// }
// },
],
resolve: {
@@ -68,6 +44,12 @@ const config = {
omorphia: path.resolve('./src/lib'),
},
},
build: {
rollupOptions: {
external: '/_app/COMPONENT_API.json'
}
}
},
},
};