Punch Agency Closure Compiler
raw JSON → 1.0.8 verified Fri May 01 auth: no javascript deprecated
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.
Common errors
error Cannot find module 'punch-gulp-closure-compiler' ↓
cause Package not installed or npm install failed.
fix
Run 'npm install punch-gulp-closure-compiler' (not recommended).
error TypeError: closure is not a function ↓
cause Incorrect import style (e.g., destructuring).
fix
Use 'var closure = require("punch-gulp-closure-compiler")'.
Warnings
deprecated Package is unmaintained and outdated; do not use in new projects. ↓
fix Use google-closure-compiler or generic gulp plugins.
breaking Only supports Node.js versions prior to 6, may break on newer runtimes. ↓
fix Switch to an up-to-date closure compiler package.
gotcha No direct API documentation; usage relies on reading source code. ↓
fix Inspect the npm package source or node_modules.
Install
npm install punch-gulp-closure-compiler yarn add punch-gulp-closure-compiler pnpm add punch-gulp-closure-compiler Imports
- default
let closure = require('punch-gulp-closure-compiler');
Quickstart
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'));
});