Tag: gulp git

吞吐量通知发生在任务完成之前

无法理解吞咽(我是新来的)。 我想自动化产品构build,涉及到从gitlab回购克隆。 我不明白为什么我需要src('package.json')在那里,这是一种什么样的伎俩? 我也不明白为什么我会在任务开始时得到通知,而不是在结束! var gulp = require('gulp'); var git = require('gulp-git-streamed'); var notify = require('gulp-notify'); gulp.task('clone', function() { return gulp .src('package.json') // wth is this? .pipe(git.clone('https://gitlab.somedomain.com/mockups/theme.git', {args: './src/gitlab/mockups'})) .pipe(notify('psd repo cloned!')); // why does this run before cloning is finished? }); 会发生什么是: [13:16:34] gulp-notify: [Gulp notification] psd repo cloned! [13:20:23] Cloning into './src/gitlab/mockups'… Checking […]

Gulp Git运行第一个提交任务然后推任务

我正在项目上工作,我想提交和推git使用git,但我正在面临一些问题,当我运行git任务,所以推,然后任务不等待提交…. 任何人都可以帮助我! 我想使任务像第一次运行提交,然后自动推,不要运行推任务,直到完成提交任务…. Gulp Git提交和推送Gulp任务! var gulp = require('gulp'), runSequence = require('run-sequence'), gutil = require('gulp-util'), git = require('gulp-git'), prompt = require('gulp-prompt'); /* task to commit and push all file on git ******************************************************************/ // git commit task with gulp prompt gulp.task('gulp:commit', function(){ // just source anything here – we just wan't to call the prompt for […]