Automatically convert Vue template syntax to Astro.
View Demo
·
Report Bug
·
Request Feature
A simple, browser-based conversion tool which transforms a Vue SFC's
<template> block into valid Astro JSX. This makes the process of migrating
content-heavy Vue sites to Astro much more pleasant.
- Visit the demo
- Paste the code for a Vue component in the left pane
- See the equivalent Astro template in the right pane
pnpm install
pnpm run buildYou can deploy the produced dist folder to any static host provider (netlify, surge,
now, etc.) or serve it using a web server.
- Fork this repo
- Clone your fork
- Install dependencies ---
pnpm install - Start the development server ---
pnpm dev - Make some changes
- Submit your changes by pushing them to a well-named branch in your fork, then creating a PR
@vue/compiler-sfc--- Parsing and transforming Vue SFC syntaxprettier-plugin-astro--- Pretty-printing Astro syntax