CrudeBuild.js is a minimalist JavaScript build tool for single-file libraries. Version 0.1.3 (released 2025) requires no configuration and has zero dependencies, automatically minifying files with Google Closure Compiler, generating browser-ready output, CommonJS (.cjs) and ES module (.mjs) exports, and extracting metadata headers from package.json. It is a lightweight alternative to tools like esbuild or rollup for simple projects. Released under the MIT license.
npm install crude-buildVerified import paths — ran on the pinned version, not inferred.
Demonstrates zero-config build: install, add script, run, get formatted output.
Use only the module name (e.g., 'MyModule') not a file path like 'src/index.js'.
Ensure your project complies with the Closure Compiler license if redistributing.
If you need customization, switch to a more mature tool like esbuild or rollup.
Ensure your package.json contains at least name and version.
Use npx crude-build or install locally via npm i -D crude-build and run via npx.
Run from project root with valid package.json and a main file.
Ensure the module name matches the source file (e.g., 'MyModule' expects 'MyModule.js' in current dir).
No dependency data recorded yet.