Poops is a straightforward, no-bullshit bundler and static site generator for web projects, currently stable at version 1.2.2. It leverages highly efficient tools like esbuild for JavaScript/TypeScript/JSX/TSX bundling and transpilation, and dart-sass for SCSS/SASS to CSS compilation. The package also integrates PostCSS for advanced CSS processing, including Tailwind CSS support, and offers design token integration (W3C DTCG & Style Dictionary). For static site generation, it supports swappable template engines, Nunjucks (default) or Liquid, with features for blogging, pagination, RSS/Atom/JSON feed generation, and React pre-rendering (Reactor). Poops prioritizes an intuitive, minimal-learning-curve approach, primarily driven by a simple JSON configuration file. Releases appear to be frequent, with minor versions rolling out new features and fixes every few weeks.
npm install poopsVerified import paths — ran on the pinned version, not inferred.
Demonstrates local installation, a basic `poops.json` configuration for bundling JavaScript, Sass, and Liquid templates, and how to execute the build command.
Update CommonJS `require()` calls to ES module `import` statements. Ensure your consuming project is configured for ESM (e.g., `"type": "module"` in package.json or using `.mjs` extensions).
Install `postcss` alongside Poops: `npm install postcss` or `yarn add postcss`.
Ensure your configuration file is named `poops.json` or `💩.json` in the project root, or run `npx poops yourCustomConfig.json`.
Refer to the Poops documentation or examples for the correct structure of template files, data directories, and configuration for markup processing. Pay attention to how data is loaded and referenced within templates.
Change `require()` calls to `import` statements (e.g., `import { build } from 'poops';`) and ensure your Node.js environment or calling script supports ESM.Install `postcss`: `npm install postcss` or `yarn add postcss`.
Create `poops.json` or `💩.json` in your project's root, or ensure the custom config path passed to `npx poops` is correct.
Install Tailwind CSS (`npm install tailwindcss`) and ensure it's correctly listed in your PostCSS plugins array in `poops.json` and a `tailwind.config.js` exists if needed.