co-assets-compiler

raw JSON →
0.0.1-3 verified Fri May 01 auth: no javascript maintenance

Assets compiler middleware for CompoundJS web framework. Version 0.0.1-3 (last release, no recent updates) compiles Less, Stylus, Sass, and CoffeeScript in Express/CompoundJS applications. This early-stage package is tightly coupled to CompoundJS's autoload mechanism and is not actively maintained. Unlike standalone asset pipelines (e.g., gulp, webpack), it runs as middleware. No significant changes since initial release; use with legacy CompoundJS projects only.

error Error: Cannot find module 'co-assets-compiler'
cause Package not installed or missing from node_modules.
fix
Run: npm install co-assets-compiler --save
error TypeError: compound.use is not a function
cause Incorrect usage outside CompoundJS autoload (e.g., manually calling require without wrapping in compound callback).
fix
Use via config/autoload.js as shown in README; do not require directly.
gotcha Package only works within CompoundJS framework; not standalone Express middleware.
fix Use only in CompoundJS projects. For Express, use separate asset middleware like node-sass or stylus.
gotcha No peer dependencies declared; requires manual installation of Less, Stylus, Sass, and CoffeeScript compilers.
fix Install needed compilers: npm install less stylus sass coffee-script --save
deprecated Package has not been updated since 2013; uses outdated APIs and may not work with modern Node.js.
fix Consider migrating to a modern asset pipeline (e.g., webpack, gulp, or direct compiler integration).
npm install co-assets-compiler
yarn add co-assets-compiler
pnpm add co-assets-compiler

Add co-assets-compiler to CompoundJS's autoload configuration for automatic asset compilation middleware.

// config/autoload.js
module.exports = function (compound) {
  return [
    'ejs-ext',
    'jugglingdb',
    'seedjs',
    'co-assets-compiler'
  ].map(require);
};