Step 1: Create Your First Project
Prerequisites
- Node.js 18+
- npm
Commands
mkdir my-shevky-site
cd my-shevky-site
npm init -y
npm install @shevky/core @shevky/plugin-robots-txt @shevky/plugin-tailwindcss @shevky/plugin-esbuild @shevky/plugin-rss @shevky/plugin-sitemap
npx shevky --initExpected Output
After these commands complete:
package.jsonhasbuildanddevscripts added automatically.src/directory is created with starter content, templates, layouts, and components.tailwind.config.jsis copied to the project root..gitignoreincludesnode_modules/anddist/.
What Just Happened
- You installed the Shevky CLI (
@shevky/core) and baseline build plugins. - The
--initflag triggeredcore/scripts/init.js, which cloned a starter template viadegitfromfatihtatoglu/shevky-simple-blog. - Starter files were copied into your project and npm scripts were configured.
- Your project now matches Shevky's expected runtime structure.
Common Errors
| Error | Fix |
|---|---|
package.json not found during init | Ensure npm init -y ran in the same folder |
| Init fails with network/degit errors | Check internet connectivity and retry |
| Missing plugin packages later at build | Re-run the npm install ... command above |