am-compiler is a CoffeeScript-based build tool that compiles multiple targets (electron, node, browser) from CoffeeScript source files. As of version 1.0.31, it appears to be a niche package with minimal documentation and no recent updates. It relies on fs-extra for reading JSON and child_process for executing commands. Key differentiators include a custom class extending a base compiler and targeted entry points for electron, node, and browser builds. However, it lacks comprehensive documentation and may be considered experimental or specific to certain workflows.
npm install am-compilerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to extend the Compiler class, set entry points for electron, node, and browser, and override callback.
Create an instance and call .start() explicitly.
Always call super.callback(err, stats) in overridden callback.
Use const Compiler = require('am-compiler') for all versions >=1.0.25.Consider migrating to a more modern build tool like Webpack or Rollup.
Ensure you are using version >=1.0.25 and use const Compiler = require('am-compiler').Run npm install am-compiler --save
Install fs-extra: npm install fs-extra --save and require it: const fse = require('fs-extra');