Skip to main content
100%

Adding script of localback for existing gulpfile.js

✓ Published0🌍 Public
OOhtsu
Last edited Jan 21, 2018
Created on Jan 21, 2018

This example adds a `localbackup` task to an existing Gulpfile, creating a timestamped backup of the current Angular project directory. It derives the solution name from the current directory path using Node’s `path.parse`, generates a version string with custom date formatting, and defines a target path that includes both the solution name and timestamp. The task uses `gulp.src` with glob patterns to copy project files while excluding `node_modules`, then pipes the result to `gulp.dest`. The code shows the Gulp task API and a custom date formatting object operating without external dependencies.

AI-generated description

Similar vizzes