A minimal build-and-watch utility wrapping chokidar, esbuild, sass, csso, and pxpros for simple static websites. Version 1.1.11 (2025) provides debounced file watchers, SCSS compilation + minification, JS bundling + minification, PHP template rendering via pxpros, sitemap generation, and dist export with .gitignore support. Unlike full-featured bundlers (Vite, Webpack), chokibasic is intentionally low-config and suited for small projects. ESM-only, ships TypeScript definitions, and has no runtime dependencies on the framework level (deps are bundled).
npm install chokibasicNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Sets up file watchers for SCSS and JS with automatic rebuild on change, plus graceful shutdown.
If you need 'add' or 'unlink' events, you must extend the watcher manually or fork the package.
Pass { sourceMap: true, style: 'expanded' } in options to get sourcemaps and expanded output.Override platform and target in options, e.g., { platform: 'node', target: ['node14'] }.Use ESM imports (import { ... } from 'chokibasic') or switch to dynamic import() inside CommonJS.Ensure pxpros is installed and configured (e.g., via a pxpros.config.js) before calling these functions.
Test with your .gitignore; consider using a dedicated tool like 'fdir' for more robust copying.
Use import statements or set type: module in package.json and use import syntax.
Use dynamic import: const { createWatchers } = await import('chokibasic'); or convert your project to ESM.Use named import: import { createWatchers } from 'chokibasic';Run: npm install pxpros
Add "type": "module" to your package.json, or use .mjs extension for your entry file.