Answer the question
In order to leave comments, you need to log in
How can you use gulp-git at all?
The task is quite simple. You need to pull from the repository, and then minify the files and put them in the directory.
There is a directory /var/builder
, there are gulpfile.js
, package.json
and node_modules
with all the gulp modules and gulp itself (version 4.0). In package.json, I set the path to gulp and run gulp from the /var/builder
.
I use standard gulp-git tasks, I run: gulp init -> gulp addremote -> gulp pull, everything is fine, but it spams everything into the /var/builder
. And this is bad, because in the case of gulp push, it will try to send node_modules to the server.
Let's say we forget about it, add them to .gitigore, but the gulp checkout command does not work. That is, if the files are deleted, he will simply say
[19:02:43] Starting 'checkout'...
[19:02:43] D .gitattributes
D index.html
D scrollTo.jquery.js
Already on 'master'
/var/builder
, but then gulp pull does not work, even if I do gulp init, gulp addremote? /var/repo
, checks for missing files, and then, in case of 100% identity of the repository, performs my tasks minification, less, babel, destination ? Answer the question
In order to leave comments, you need to log in
I think you are trying to make your own implementation of continuous integration . Take it ready.
Travis/Jenkins, here's how-to:
Website Continuous Integration with Travis CI, Jek...
Building a Node.js project
First Steps In Setting Up Travis CI To Your Javasc...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question