Getting Started
Get up and running with Skier in 5 minutes.
Prerequisites
- Node.js v22.17.0 or later
- npm v9 or later
Installation
npm install --save-dev skierProject Setup
Create this structure:
my-site/
├── src/
│ ├── pages/
│ │ └── index.html
│ └── partials/
│ └── header.html
├── skier.tasks.mjs
└── package.jsonConfiguration
Create skier.tasks.mjs:
import { prepareOutputTask, generatePagesTask, copyStaticTask } from 'skier';
export default [
prepareOutputTask({ outDir: 'public' }),
generatePagesTask({
pagesDir: 'src/pages',
partialsDir: 'src/partials',
outDir: 'public',
}),
copyStaticTask({
from: 'src/static',
to: 'public',
}),
];Build Script
Add to package.json:
{
"scripts": {
"build": "skier"
}
}Run It
npm run buildYour site is now in public/ 🎉
What's Next?
| Guide | Description |
|---|---|
| Architecture | Understand how Skier works |
| Recipes | Complete project examples |
| Configuration | Advanced config options |
| Built-in Tasks | All available tasks |
| Custom Tasks | Extend the pipeline |
Debug Mode
Having issues? Run with verbose output:
npx skier --debugSee the FAQ for common troubleshooting tips.