feat(components): add the accordion component

This commit is contained in:
Alexander Navarro 2024-12-26 16:44:32 -03:00
parent 7af58fe829
commit e0ed5a5ddd
10 changed files with 159 additions and 15 deletions

View file

@ -9,6 +9,11 @@ import { HTMLComponents } from "@mini-strap/components";
const { values } = parseArgs({
args: Bun.argv,
options: {
production: {
type: "boolean",
short: "p",
default: false,
},
filter: {
type: "string",
short: "f",
@ -64,7 +69,7 @@ if (["all", "sass"].includes(filter)) {
outdir: `${outdir}/css`,
naming: "[name].css",
plugins: [sassPlugin],
minify: true,
minify: values.production,
// On by default in Bun v1.2+
html: true,
@ -77,8 +82,8 @@ if (["all", "js", "ts"].includes(filter)) {
entrypoints: ["./js/index.ts"],
outdir: `${outdir}/js`,
target: "browser",
splitting: true,
minify: true,
splitting: values.production,
minify: values.production,
});
}