Registry / devops / grunt-microlib

grunt-microlib

JSON →
library0.1.1jsnpmunverified

Grunt plugin providing shared build tooling for microlibraries that use the ES6 module transpiler and a compatible folder structure. Version 0.1.1, last updated around 2015. Used by projects like rsvp.js. Provides tasks for building AMD, CommonJS, and browser bundles, as well as testing and development servers. Unmaintained since the ES6 module transpiler was superseded by Babel and modern module bundlers. Not compatible with current Node.js or Grunt versions due to deprecated dependencies.

npm install grunt-microlib
INSTALL
IMPORT
SIG · GRUNT-MICROLIB
G
grunt-microlib
devopsjavascriptv0.1.1
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.

grunt-microlib
grunt.loadNpmTasks('grunt-microlib');
grunt.loadNpmTasks('grunt-microlib'); (no default export)
CommonJS Grunt plugin, not a module to import directly.
grunt-microlib
npm install grunt-microlib --save-dev
npm install grunt-microlib --save
Should be a devDependency.

Shows Gruntfile setup for grunt-microlib with basic configuration and available CLI tasks.

// Gruntfile.js module.exports = function(grunt) { require('grunt-microlib')(grunt); grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), // Microlib config microlib: { name: 'my-lib', main: 'lib/main.js', output: 'dist/' } }); grunt.loadNpmTasks('grunt-microlib'); }; // Then run: // grunt build // grunt test // grunt server
Debug
Known issues
deprecatedThe ES6 module transpiler is deprecated; use Babel or Rollup instead.
fix
Migrate to a modern build tool like Rollup or Webpack with Babel.
affects: >=0
gotchaDependencies rely on deprecated Grunt versions (0.4.x) and may not work with Grunt 1.x.
fix
Pin Grunt to 0.4.x or switch to alternative.
affects: >=0.1.1
breakingNode.js versions >10 may break due to outdated transitive dependencies.
fix
Use Node.js version <=10 or find alternative.
affects: >=0.1.1
Errors
Common errors & fixes
Error: Cannot find module 'es6-module-transpiler'
es6-module-transpiler not installed as a dependency.
fix
npm install es6-module-transpiler --save-dev
Warning: Task "build" not found.
grunt-microlib not loaded or configured correctly.
fix
Ensure Gruntfile loads grunt-microlib via grunt.loadNpmTasks('grunt-microlib');
Upgrade
Version history
0.1.1latest on npm
Audit
Dependencies
gruntrequiredpeer dependency for Grunt plugin
es6-module-transpilerrequiredcore transpilation engine
Agent activity
6 hits · last 30 days
node
6
Resources
grunt-microlib — npm install grunt-microlib · libregistry