Registry / devops / punch-gulp-closure-compiler

punch-gulp-closure-compiler

JSON →
library1.0.8jsnpmunverified

punch-gulp-closure-compiler is a self-contained wrapper for Google Closure Compiler, version 1.0.8, intended for use with Gulp. It was released on 2014-03-25 and has not seen any updates since. It provides a minimal API to pass JavaScript files through Closure Compiler for minification and optimization. Compared to gulp-closure-compiler or google-closure-compiler, this package is largely obsolete, unmaintained, and should not be used in new projects. It depends on closure-compiler via com.google.javascript:closure-compiler and has no active release cadence.

npm install punch-gulp-closure-compiler
INSTALL
IMPORT
SIG · PUNCH-GULP-CLOSURE
P
punch-gulp-closure-compiler
devopsjavascriptv1.0.8
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.

default
✓ let closure = require('punch-gulp-closure-compiler');
CommonJS only, no ESM support.

Basic gulp task to minify JavaScript files using Closure Compiler.

var gulp = require('gulp'); var closure = require('punch-gulp-closure-compiler'); gulp.task('compile', function() { return gulp.src('src/*.js') .pipe(closure()) .pipe(gulp.dest('build')); });
Debug
Known issues
deprecatedPackage is unmaintained and outdated; do not use in new projects.
fix
Use google-closure-compiler or generic gulp plugins.
affects: >=0.0.0
breakingOnly supports Node.js versions prior to 6, may break on newer runtimes.
fix
Switch to an up-to-date closure compiler package.
affects: >=1.0.0
gotchaNo direct API documentation; usage relies on reading source code.
fix
Inspect the npm package source or node_modules.
affects: >=0.0.0
Errors
Common errors & fixes
Cannot find module 'punch-gulp-closure-compiler'
Package not installed or npm install failed.
fix
Run 'npm install punch-gulp-closure-compiler' (not recommended).
TypeError: closure is not a function
Incorrect import style (e.g., destructuring).
fix
Use 'var closure = require("punch-gulp-closure-compiler")'.
Upgrade
Version history
1.0.8latest on npm
Audit
Dependencies
gulpoptionalpeer dependency for gulp plugin compatibility
Agent activity
4 hits · last 30 days
node
4
Resources
punch-gulp-closure-compiler — npm install punch-gulp-closure-compiler · libregistry