Loading...
Loading...
Migrate an existing website to Bascik. Use when converting a React, Next.js, Vue, Svelte, SvelteKit, Astro, Eleventy, Hugo, WordPress, or plain HTML site into Bascik pages and components; mapping props, slots, state, routing, layouts, data fetching, content collections, and template loops to Bascik equivalents; or handling existing sitemap.xml and robots.txt files during a migration.
npx skill4agent add bascikdev/bascik bascik-migratebascikbascik-scriptsbascik-refactornpx skills add bascikdev/bascik --skill bascik-refactornode <skills-dir>/bascik/scripts/read-doc.mjs /how-to/agent-migration<head>node <skills-dir>/bascik/scripts/list-components.mjsnode <skills-dir>/bascik/scripts/read-doc.mjs /switch/from-<framework>reactnextvuesvelteastroeleventyhugowordpress.htmlsrc/pages/<html><head><body><site-head />new-component.mjsbascikbascik-components<nav><header><main><article><button><label><div><nav><div><div><button type="button"><ul>node <skills-dir>/bascik/scripts/read-doc.mjs /component-best-practices#use-htmls-elements.ts<script type="text/typescript">@bascik.tssrc/lib/enumscripts.typescriptbascik/scoped-javascript#typescript-in-component-scripts/configuration#scriptstypescript/how-to/bundling-npm-packages.csssrc/pages/css/styles.cssid<details><dialog>popover<button><a><div>aria-expandedaria-presseddata-bascik-build./faqs.ts.tssrc/lib/lib/data/audit-components.mjssrc/lib/html@bascik/bascik/htmlraw()json()node <skills-dir>/bascik/scripts/verify.mjs --buildnode <skills-dir>/bascik/scripts/audit-components.mjsread-doc.mjs /how-to/agent-migration#finding-responsive-defects| Concept | Bascik |
|---|---|
Component file ( | |
| Typed |
Scoped styles ( | Companion |
| |
| Named slots, render props, snippets | |
Props ( | |
| Prop bound to an attribute | |
| Object, array, or function props | Not possible: print one component per item from a build script, or embed JSON with |
| Typed variables in the component script, applied to the DOM by a function |
Callback props, | |
| Build time: a build script prints one branch. Runtime: toggle |
| Build-time loop in a build script, or clone a |
| File-system routing | One |
| |
| |
| Layouts | Pages keep |
| Template includes with variables, filters, loops (Nunjucks, Liquid, Go templates) | TypeScript helpers returning |
Content collections ( | One helper ( |
API routes ( | |
| |
| RSS/Atom feeds | A |
| Image optimization, syntax highlighting | Not built in; add your own build step |
htmlhtmljavascript:escapeHtmlaudit-components.mjs<div data-bascik-slot="x">document.createElement<template>DOMContentLoaded<head>pageshowbascik --check"html.validate.scripts": false.vscode/settings.jsonbascik init<script><title>bascik initread-doc.mjs /testing/linting#editor-linters-read-sourcesrc/pages/scripts.cache.excludecontent/pipeline.watchPathsprescoping.attributes.class: falseread-doc.mjs /librariesadd-example.mjs --listbasciksitemap.xmlrobots.txtDisallowsrc/pages/generate.sitemapgenerate.robotssrc/pages/generatefalse<meta name="bascik-sitemap" content="exclude">read-doc.mjs /switch/from-astrofrom-eleventyfrom-hugo