Skip to content

astro-community/plugin-template

Repository files navigation

Astro Starter Kit: Plugin

npm init astro -- --template astro-community/plugin-template

Open in StackBlitz

Project Structure

Inside of your Astro project, you'll see the following folders and files:

/
├── demo/
│   ├── public/
│   └── src/
│       └── pages/
│           └── index.astro
└── packages/
    └── my-plugin/
        ├── index.js
        └── package.json

This project uses workspaces to develop a single package, @example/my-plugin.

It also includes a minimal Astro project, demo, for developing and demonstrating the plugin.

Commands

All commands are run from the root of the project, from a terminal:

Command Action
npm install Installs dependencies
npm run start Starts local dev server at localhost:3000
npm run build Build your production site to ./dist/
npm run serve Preview your build locally, before deploying

Want to learn more? Read our documentation or jump into our Discord server.

About

Astro Plugin Template

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published