Registry / devops / kompiler

kompiler

JSON →
library7.0.170jsnpmunverified

A framework-agnostic compiler/transpiler that bundles Babel, Rollup, and Node script management into a single watch-driven workflow. Current stable version is 7.0.170. Released irregularly as a personal tool. Unlike full-featured bundlers, it focuses on rapid development with built-in static server, automatic restarts, and path mappings. Configuration is done via package.json under the 'kompiler' key. Supports custom Babel presets, multiple builds, Node script watching, and HTTP file auto-updates. Primarily intended for the author and friends, with minimal documentation and breaking changes between versions.

npm install kompiler
INSTALL
IMPORT
SIG · KOMPILER
K
kompiler
devopsjavascriptv7.0.170
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
No exports to import; configured via package.json "kompiler" key.
Attempting `const kompiler = require('kompiler')` will not work as expected.
kompiler is a CLI tool, not a library. Install globally or use npx. No JS API is exposed.
CLI usage
npx kompiler
Running `kompiler` without installation or `require('kompiler')`.
CLI reads package.json configuration automatically.

Quickstart showing minimal package.json configuration to transpile a single file and run the build.

// In package.json: { "kompiler": { "builds": [ { "input": ["src/index.js"], "output": "dist/bundle.js", "minified": true } ] } } // Then run: // npx kompiler
kompiler --version
Debug
Known issues
breakingIn version 7.0.0+, configuration schema changed from 'compiler' to 'kompiler' key in package.json. Watch paths are now arrays instead of strings.
fix
Update package.json: rename key from 'compiler' to 'kompiler', and convert single watch paths to arrays.
affects: >=7.0.0
deprecatedThe 'autoupdates' feature is deprecated and may be removed in a future release.
fix
Remove 'autoupdates' from configuration; use external tools like curl or wget instead.
affects: <7.0.170
gotchaIf 'input' is a folder, output must be a folder as well; otherwise build fails silently.
fix
Ensure that when input is a directory, output is also a directory (e.g., 'dist/').
affects: all
gotchaThe static server does not support HTTP range requests (206 Partial Content). This affects video/audio streaming on browsers.
fix
Use 'express: true' in build config to enable the Express server with full HTTP support.
affects: all
Errors
Common errors & fixes
Cannot find module 'kompiler'
Global installation missing or local node_modules not present.
fix
Install globally: npm install -g kompiler, or use npx kompiler.
Unknown option 'watch' in kompiler config
Configuration key name mismatch or version-specific changes.
fix
Check configuration adheres to the current version schema. In v7, 'watch' inside 'builds' must be an array of file paths.
Upgrade
Version history
7.0.170latest on npm
Audit
Dependencies
babelrequiredBabel is used as the transpiler core for all builds and node scripts.
rolluprequiredRollup is used for bundling builds defined in the configuration.
Agent activity
2 hits · last 30 days
node
2
Resources
kompiler — npm install kompiler · libregistry