Local Backup for Angular
✓ Published0🌍 Public
OOhtsu
Last edited Dec 22, 2017
Created on Dec 22, 2017
This example demonstrates a Gulp-based backup workflow for local Angular projects. The code defines a `localbackup` task that copies all project files, excluding `node_modules`, into a timestamped destination folder using `gulp.src` and `gulp.dest`. It uses the `path` module to derive the current directory name and a custom `dateFormat` object to generate a version string from the current date and time. The backup folder is named by combining the solution name with this timestamp, targeting the Angular dependency directory path. The default Gulp task triggers the backup process.
AI-generated description