resources/todomvc/architecture-examples/svelte-complex/scripts/build.js (12 lines of code) (raw):

/** * Builds the TodoMVC Svelte Complex DOM. */ const path = require("path"); const { buildComplex } = require("big-dom-generator/utils/buildComplex"); const options = { callerDirectory: path.resolve(__dirname), sourceDirectory: path.join("..", "node_modules", "todomvc-svelte", "dist"), title: "TodoMVC: Svelte Complex DOM", filesToMove: ["node_modules/big-dom-generator/dist/big-dom-with-stacking-context-scrollable.css", "node_modules/big-dom-generator/dist/logo.png", "node_modules/big-dom-generator/utils/app.css"], standaloneDirectory: path.resolve(__dirname, "..", "..", "svelte"), complexDirectory: path.resolve(__dirname, ".."), cssFilesToAddLinksFor: ["big-dom-with-stacking-context-scrollable.css"], }; buildComplex(options);