{"library":"roots","title":"Roots","description":"Roots is a fast, simple, and customizable static site compiler, currently in maintenance mode at version 5.2.0. It offers a flexible build pipeline with support for various preprocessors (Jade, Stylus, CoffeeScript, etc.), automatic asset pipeline, and live reload via Browsersync. Roots is no longer actively developed; the team now maintains Spike, a more modern alternative. Roots compiles static sites with minimal configuration and supports project scaffolding via Sprout. It is best suited for small-to-medium projects that don't require server-side rendering.","language":"javascript","status":"maintenance","last_verified":"Fri May 01","install":{"commands":["npm install roots"],"cli":{"name":"roots","version":null}},"imports":["import roots from 'roots'","import { compile } from 'roots'","import Roots from 'roots'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"<!-- Install globally -->\nnpm install roots -g\n<!-- Create a new project -->\nroots new my-project\ncd my-project\n<!-- Add a layout and page -->\nmkdir -p views/layouts\ncat > views/layouts/default.jade <<EOF\n!!!\nhtml\n  head\n    title My Site\n  body\n    block content\nEOF\ncat > views/index.jade <<EOF\nextends ./layouts/default.jade\n\nblock content\n  h1 Hello, Roots!\nEOF\n<!-- Add a stylus file -->\nmkdir -p assets/css\ncat > assets/css/main.styl <<EOF\nbody\n  font-family: sans-serif\nEOF\n<!-- Compile -->\nroots compile\n<!-- Output in public/ -->\nls public/","lang":"javascript","description":"Create a new Roots project, add a layout (Jade) and page, a Stylus stylesheet, compile to public/.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}