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.
Common errors
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.
Warnings
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).
Install
npm install co-assets-compiler yarn add co-assets-compiler pnpm add co-assets-compiler Imports
- co-assets-compiler wrong
import * as assets from 'co-assets-compiler'correctrequire('co-assets-compiler')
Quickstart
// config/autoload.js
module.exports = function (compound) {
return [
'ejs-ext',
'jugglingdb',
'seedjs',
'co-assets-compiler'
].map(require);
};