Frameworks | git repos | identity server | Search

gulp

use gulp

This Gulp script automates the replacement of a specific string within project files, likely for build or deployment purposes, and handles asynchronous execution with error handling.

use a Promise as a gulp task

This code snippet provides a function tasksToPromise that allows you to run a series of Gulp tasks asynchronously and obtain a Promise that resolves when all tasks are finished.

Cell 2

This Gulp script is a build script for an Angular project that automates tasks such as code replacement, file copying, and dependency resolution using various modules and functions. The script defines several Gulp tasks, including project relatives and server module, and uses the gulp-replace module to replace specific code patterns in JavaScript files.

Apply universal to angular project

This code creates a project directory and asynchronously executes a function called applyUniversal within it, sending the result or any errors to an external system.

Fix project relatives as a service for updating files when they change

This code sets up a Gulp task to continuously watch for changes in TypeScript files and automatically rebuild the project when changes are detected.

search notebooks gulp

This code defines a function searchNotebooks that searches for text within Jupyter Notebook files in a project directory and returns a promise that resolves with an array of matching cells.

Cell 6

This code imports a module named Core to use its importer function, which imports another module named search notebooks using gulp to search for notebooks. The search result is then processed asynchronously, formatted as markdown, and sent to the user, with error handling if the search fails.