Answer the question
In order to leave comments, you need to log in
How to do a normal gulp git pull?
Following Ilya Kantor's video tutorials with learn.javascript.js, I started learning gulp.
I created a folder /var/builder/
and installed gulp 4.0, gulp-git and a bunch of other gulp-* packages in it.
Registered export PATH=./node_modules/.bin
to run gulp from the directory builder
Then I ran the gulp clone task (from gulp-git ), it created a folder with the name of the repository, and after 15 minutes put the contents of the repository there (the repository is large, the Internet is slow).
Question #1
How to keep track of what gulp is doing, because waiting 15 minutes and then getting an error is kind of not very good.
So, I ended up with this path:
/var/builder/myRepoName/ <% файлы репозитория %>
/var/builder
, which is completely unacceptable. {args: '--separate-git-dir=./repo/.git'}
to make the initialization of the repository in the desired folder /var/builder/repo
:gulp.task('init', function(){
return git.init({args: '--separate-git-dir=./repo/.git'}, function (err) {
if (err) throw err;
});
});
repo
/var/builder/myRepoName
, а в случае с gulp init , gulp addremote gulp pull - ничего не произошло и никакой myRepoName папки не подтянулось с bitBucket'а?var
-- builder
---- myRepoName
------ .git
------ myFile1
------ myFile2
---- node_modules
---- http
------ результат обработки репозитория gulp-minify и прочими gulp-
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question