newmimosa
raw JSON → 2.2.1 verified Fri May 01 auth: no javascript abandoned
A Mimosa module that provides the `mimosa new` scaffolding command, allowing developers to generate a new Mimosa project with various asset options. As of version 2.2.1, it supports JavaScript transpilers (TypeScript, CoffeeScript, LiveScript, Coco, Iced CoffeeScript), CSS pre-processors (SASS, Less, Stylus), client templating (Handlebars, Jade, EJS, etc.), and server setups (Express, Hapi, or none with mimosa-server). Used primarily with Mimosa build tool. The repository is archived and no longer actively maintained.
Common errors
error Error [ERR_REQUIRE_ESM]: require() of ES Module not supported. ↓
cause Trying to import version 2.x with CommonJS require()
fix
Switch to import statement or use dynamic import().
Warnings
deprecated newmimosa is no longer actively maintained; the repository is archived. ↓
fix Consider alternatives or use the last known working version 2.2.1.
breaking ESM-only from version 2.0.0: CommonJS require will not work. ↓
fix Use ESM imports (import) or downgrade to version 1.x for CJS support.
Install
npm install newmimosa yarn add newmimosa pnpm add newmimosa Imports
- default wrong
const newmimosa = require('newmimosa')correctimport newmimosa from 'newmimosa'
Quickstart
// Ensure Mimosa is installed globally or locally
// Then run: mimosa new my-project
// This triggers interactive prompts after reading the newmimosa module
import { execSync } from 'child_process';
execSync('mimosa new my-project', { stdio: 'inherit' });