mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
cd771174b9
In recent conventional-changelog version updates, the underlying @conventional-changelog/git-client dropped support for the raw `grep` and `extendedRegexp` options, causing all monorepo commits to be included in the zone.js changelog. Additionally, without `tagPrefix: 'zone.js-'`, conventional-changelog treated monorepo release tags as release boundaries, generating changelog sections for every intermediate monorepo release. This change: - Configures `tagPrefix: 'zone.js-'` and filters commits by `scope === 'zone.js'` via `writerOpts.transform` in the gulp changelog task. - Fixes the PR creation link in the release script to use the cross-fork compare URL format on GitHub. - Fixes the release commit SHA lookup in `cutReleaseWorkflow`. - Updates zone.js release documentation.
Gulp Tasks folder
This folder contains one file for each task (or group of related tasks) for the project's gulpfile. The dependencies between the tasks is kept in the gulpfile.
Task File Structure
Each task is defined by a factory function that accepts gulp as a parameter.
Each file exports either one factory or an object of factories.
E.g. The build.js file contains only one task:
module.exports = (gulp) => (done) => {
...
};
Loading Tasks
The tasks are loaded in the gulp file, by requiring them. There is a helper called loadTask(fileName, taskName)
will do this for us, where the taskName is optional if the file only exports one task.
E.g. Loading the task that will run the build, from a task file that contains only one task.
gulp.task('build.sh', loadTask('build'));