Localbackup Gulpfile.js for Angular
✓ Published0🌍 Public
OOhtsu
Last edited Jan 14, 2018
Created on Jan 14, 2018
This example demonstrates a Gulp task that creates timestamped local backups of an Angular project directory. It computes a version string from the current date using a custom `dateFormat` object, constructs a target path naming convention (`../<solution>_<timestamp>`), and copies all project files—excluding `node_modules`—to that destination via `gulp.src` and `gulp.dest`. The code relies on Node.js `path` parsing to derive the solution name and logs the generated paths before execution. The default Gulp task triggers the backup process.
AI-generated description