Registry / devops / adfab-gulp-boilerplate

adfab-gulp-boilerplate

JSON →
library2.4.0jsnpmunverified

A Gulp-based boilerplate for kick-starting front-end projects quickly, version 2.4.0. It integrates Browsersync for live reloading, supports SASS/LESS compilation, Babel transpilation, image minification, fonticon and SVG sprite generation, and includes linting for JS/SASS/LESS. Designed for teams needing a consistent, configurable build pipeline with JSON-based task configuration. Released under ISC license, with maintenance via GitHub issues and a SemVer release cycle. Alternatives include custom Gulp setups or modern build tools like Webpack/Vite.

npm install adfab-gulp-boilerplate
INSTALL
IMPORT
SIG · ADFAB-GULP-BOILERP
A
adfab-gulp-boilerplate
devopsjavascriptv2.4.0
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
const gulp = require('gulp');
import gulp from 'gulp';
Uses CommonJS; no ES module wrapper, so require() is required.
gulpfile.js
No import required; the boilerplate auto-generates a gulpfile.js on install.
Manually creating gulpfile.js from scratch
The package generates gulpfile.js and gulp-config.json automatically. Do not create them manually.
gulp-config.json
Edit gulp-config.json after installation to configure tasks.
Editing node_modules files
Configuration is read from the project root's gulp-config.json, not from installed package.

Installs the boilerplate, auto-generates gulpfile.js and gulp-config.json, configures tasks for SASS and JS, and runs serve with Browsersync.

npm install adfab-gulp-boilerplate --save # After installation, gulpfile.js and gulp-config.json are created in project root. # Edit gulp-config.json to set vhost (local URL), sourceRoot, destinationRoot, and tasks. # Example: # { # "vhost": "http://mysite.local", # "sourceRoot": "./src", # "destinationRoot": "./dist", # "tasks": { # "styles": { # "task": "sass", # "source": "scss/main.scss", # "destination": "css" # }, # "scripts": { # "task": "js", # "source": "js/**/*.js", # "destination": "js" # } # } # } # Then run: gulp serve # This starts Browsersync with live reloading.
Debug
Known issues
breakinggulp v4 is required – gulp v3 is not supported and will cause errors.
fix
Ensure Gulp v4 is installed: npm install gulp@4 --save-dev
affects: >=2.0.0
deprecatedThe 'source' and 'destination' fields in gulp-config.json must not end with a trailing slash, otherwise paths break.
fix
Remove trailing slashes from source and destination paths in gulp-config.json
affects: >=2.0.0
deprecatedThe 'task' property is required for each task in gulp-config.json; if omitted, the task name is used but may conflict with internal Gulp tasks.
fix
Always specify the 'task' property, e.g., "task": "copy".
affects: >=2.0.0
gotchaWhen using the 'copy' task, ensure the destination folder is different from source to avoid infinite loops.
fix
Set destination to a separate directory (e.g., dist/fonts) rather than the source folder.
affects: >=2.0.0
breakingNode.js <= 8 is no longer supported; newer versions may fail due to dependency updates.
fix
Upgrade Node.js to version >=10.
affects: >=2.4.0
Errors
Common errors & fixes
Error: 'default' is not exported by ...
Using ES6 import syntax (import) with a CommonJS-only package.
fix
Use require() instead of import: const gulp = require('gulp');
Error: Task 'sass' is not defined in your gulpfile.
The 'sass' task is not registered because gulp-sass is not installed or configured properly.
fix
Install gulp-sass: npm install gulp-sass --save-dev, and ensure gulpfile.js includes the boilerplate tasks by requiring 'adfab-gulp-boilerplate'.
ReferenceError: gulp is not defined
gulp is not installed or not required in the gulpfile.
fix
Install Gulp v4 and require it in the global gulpfile: npm install gulp@4 --save-dev
Module not found: Can't resolve 'browser-sync'
browser-sync is missing; it's a required peer dependency.
fix
Install browser-sync: npm install browser-sync --save-dev
Upgrade
Version history
2.4.0latest on npm
Audit
Dependencies
gulprequiredCore build system dependency
browser-syncrequiredBrowsersync integration for live reloading
gulp-babeloptionalBabel transpilation for ES6+ support
gulp-sassoptionalSASS compilation
gulp-lessoptionalLESS compilation
Agent activity
38 hits · last 30 days
node
33
OpenAI (training)
1
Resources
adfab-gulp-boilerplate — npm install adfab-gulp-boilerplate · libregistry