{"id":267619,"date":"2015-11-06T11:50:02","date_gmt":"2015-11-06T08:50:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=267619"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=267619","title":{"rendered":"Gulp: \u043a\u0430\u043a \u044f \u043f\u0440\u043e\u0435\u043a\u0442 \u0434\u043b\u044f production \u0441\u043e\u0431\u0438\u0440\u0430\u043b, livereload \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u043b \u0438 \u043f\u0435\u0440\u0435\u0445\u0432\u0430\u0442 \u043e\u0448\u0438\u0431\u043e\u043a \u0434\u0435\u043b\u0430\u043b"},"content":{"rendered":"<p>       \u0425\u043e\u0447\u0443 \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0438\u0441\u0442\u043e\u0440\u0438\u0435\u0439 \u043c\u043e\u0435\u0433\u043e \u0437\u043d\u0430\u043a\u043e\u043c\u0441\u0442\u0432\u0430 \u0441 <i>gulp<\/i> \u0438 \u043a\u0430\u043a \u044f \u0440\u0435\u0448\u0430\u043b \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u043f\u0440\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435. \u041c\u0430\u0442\u0435\u0440\u0438\u0430\u043b \u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d \u043d\u0430 \u0442\u0435\u0445, \u043a\u0442\u043e \u0437\u043d\u0430\u043a\u043e\u043c \u0441 <a href=\"https:\/\/nodejs.org\/en\/\">nodejs<\/a> \u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u0437\u043d\u0430\u043a\u043e\u043c\u0438\u0442\u044c\u0441\u044f \u0441 <a href=\"http:\/\/gulpjs.com\/\">gulp<\/a>, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0438\u0449\u0443\u0449\u0438\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0441\u0445\u043e\u0436\u0435\u0439 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b. \u041a\u0430\u043a \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0438\u0437 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f, \u0441\u0442\u0430\u0442\u044c\u044f \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 \u0442\u0440\u0435\u0445 \u0433\u043b\u0430\u0432.<br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h3>\u0412 \u0441\u0430\u043c\u043e\u043c \u043d\u0430\u0447\u0430\u043b\u0435<\/h3>\n<p>  \u041c\u043e\u0435 \u0437\u043d\u0430\u043a\u043e\u043c\u0441\u0442\u0432\u043e \u0441 gulp \u043d\u0430\u0447\u0430\u043b\u043e\u0441\u044c \u0434\u0432\u0430 \u043c\u0435\u0441\u044f\u0446\u0430 \u043d\u0430\u0437\u0430\u0434, \u043a\u043e\u0433\u0434\u0430, \u0431\u0443\u0434\u0443\u0447\u0438 \u0431\u0435\u0437\u0440\u0430\u0431\u043e\u0442\u043d\u044b\u043c, \u044f \u043d\u0430\u0447\u0430\u043b \u043f\u043e\u0434\u0443\u043c\u044b\u0432\u0430\u0442\u044c \u0443\u0441\u0442\u0440\u043e\u0438\u0442\u044c\u0441\u044f \u0432 \u043e\u0444\u0438\u0441. \u041f\u043e\u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u0432 \u0432\u0430\u043a\u0430\u043d\u0441\u0438\u0438, \u044f \u0440\u0435\u0448\u0438\u043b \u043f\u0435\u0440\u0435\u043a\u0432\u0430\u043b\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0438\u0437 php \u0434\u0435\u0432\u0435\u043b\u043e\u043f\u0435\u0440\u0430 \u0432 frontend \u2014 \u0431\u043b\u0430\u0433\u043e \u043e\u043f\u044b\u0442 \u0438 \u0437\u043d\u0430\u043d\u0438\u044f \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u043b\u0438 \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0431\u044b\u0441\u0442\u0440\u043e. \u0418 \u0432\u043e\u0442, \u0441\u043f\u0443\u0441\u0442\u044f \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0432\u0440\u0435\u043c\u044f, \u043d\u0435 \u0431\u0435\u0437 \u0443\u0441\u0438\u043b\u0438\u0439, \u043c\u0435\u043d\u044f \u0432\u0437\u044f\u043b\u0438 \u043d\u0430 \u0438\u0441\u043f\u044b\u0442\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0441\u0440\u043e\u043a. \u042f \u0441\u043c\u0443\u0442\u043d\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u044e \u043a\u0430\u043a \u043c\u043d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c, \u043d\u043e, \u043f\u0440\u0438\u0434\u044f \u0432 \u043f\u0435\u0440\u0432\u044b\u0439 \u0434\u0435\u043d\u044c \u043d\u0430 \u0440\u0430\u0431\u043e\u0442\u0443, \u044f \u0438\u0441\u043f\u0438\u0441\u0430\u043b \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0431\u043b\u043e\u043a\u043d\u043e\u0442\u0430 \u0441 \u0434\u0432\u0443\u0445 \u0441\u0442\u043e\u0440\u043e\u043d \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043c\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u044f \u0441\u043b\u044b\u0448\u0430\u043b \u0432\u043f\u0435\u0440\u0432\u044b\u0435\u2026 \u0412 \u0442\u043e\u0442 \u0434\u0435\u043d\u044c \u044f \u043f\u043e\u043d\u044f\u043b, \u0447\u0442\u043e \u0437\u0430\u0442\u0435\u0440\u044f\u043b\u0441\u044f \u0432 \u0432\u0435\u043a\u0435 \u0432\u0435\u0431-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 \ud83d\ude41<\/p>\n<h3>\u0412\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0435<\/h3>\n<p>  \u042f \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u043f\u0440\u043e \u0442\u0440\u0438 \u043c\u043e\u0438 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u0437\u043d\u0430\u043a\u043e\u043c\u0441\u0442\u0432\u0430 \u0441 gulp:   <\/p>\n<ol>\n<li>\u041a\u0430\u043a \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c compressed (production) \u0438 uncompressed \u0432\u0435\u0440\u0441\u0438\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0431\u0435\u0437 \u043e\u0441\u043e\u0431\u044b\u0445 \u0443\u0441\u0438\u043b\u0438\u0439?<\/li>\n<li>\u041a\u0430\u043a \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0442\u044c \u043f\u0440\u043e\u0435\u043a\u0442 \u043f\u0440\u0438 \u0432\u043d\u0435\u0441\u0435\u043d\u0438\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439?<\/li>\n<li>\u041a\u0430\u043a \u043f\u0435\u0440\u0435\u0445\u0432\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u043e\u0448\u0438\u0431\u043a\u0438 \u0432 \u043a\u043e\u0434\u0435, \u0447\u0442\u043e\u0431\u044b watch \u0442\u0430\u0441\u043a\u0438 \u043d\u0435 \u0432\u044b\u043b\u0435\u0442\u0430\u043b\u0438, \u0435\u0441\u043b\u0438 \u0432 \u043a\u043e\u0434\u0435 \u0431\u044b\u043b\u0430 \u0434\u043e\u043f\u0443\u0449\u0435\u043d\u0430 \u043e\u0448\u0438\u0431\u043a\u0430?<\/li>\n<\/ol>\n<p>  \u0414\u043b\u044f \u043d\u0430\u0433\u043b\u044f\u0434\u043d\u043e\u0441\u0442\u0438 \u044f \u0441\u0434\u0435\u043b\u0430\u043b \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043f\u0440\u043e\u0435\u043a\u0442. \u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043c\u043e\u0436\u043d\u043e <a href=\"http:\/\/gulpfile.habrahabr.webulla.ru\/\">\u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0435<\/a>. \u0421\u043a\u0430\u0447\u0430\u0442\u044c \u0441\u043e \u0432\u0441\u0435\u043c\u0438 \u0432\u0430\u0440\u0438\u0430\u0446\u0438\u044f\u043c\u0438 <i>gulpfile.js<\/i> \u0438\u0437 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 \u043c\u043e\u0436\u043d\u043e \u0430\u0440\u0445\u0438\u0432\u043e\u043c <a href=\"http:\/\/gulpfile.habrahabr.webulla.ru\/project.zip\">\u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0435<\/a>.<\/p>\n<p>  \u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0430:  <\/p>\n<pre><code class=\"bash\">gulpfile.habrahabr.webulla.ru\/ - assets\/ - - core\/ - - - components\/ - - - - woman.js - - - application.js - web\/ - - assets\/ - - index.html - gulpfile.js - package.json <\/code><\/pre>\n<p>  \u0420\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0438\u0439 <i>gulpfile.js<\/i>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u044f \u0431\u0443\u0434\u0443 \u0434\u043e\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u043d\u043d\u044b\u043c\u0438 \u0432 \u0441\u0442\u0430\u0442\u044c\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f\u043c\u0438 (\u0432 \u0430\u0440\u0445\u0438\u0432\u0435 \u2014 <i>gulpfile-0-original.js<\/i>):  <\/p>\n<pre><code class=\"javascript\">'use strict';  \/\/ \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b gulp var gulp = require('gulp'); var browserify = require('gulp-browserify');  \/\/ \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043f\u0443\u0442\u0435\u0439 \u043a \u0444\u0430\u0439\u043b\u0430\u043c var rootDir = '.'; var sourceDir = rootDir + '\/assets'; \/\/ \u0437\u0434\u0435\u0441\u044c \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u0432\u0441\u0435 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438 var destDir = rootDir + '\/web\/assets'; \/\/ \u0437\u0434\u0435\u0441\u044c \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u0432\u0441\u0435 \u043d\u0430 \u0432\u044b\u0445\u043e\u0434\u0435  \/\/ \u0431\u043b\u043e\u043a \u0441 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u043c\u0438 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432 \/\/ \u0437\u0434\u0435\u0441\u044c \u044f \u0445\u0440\u0430\u043d\u044e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0434\u043b\u044f \u0437\u0430\u0434\u0430\u0447 \/\/ \u0443\u0434\u0430\u043b\u0438\u043b \u043e\u0442\u0441\u044e\u0434\u0430 \u0432\u0441\u0435 \u043a\u0440\u043e\u043c\u0435 scripts \u0434\u043b\u044f \u043d\u0430\u0433\u043b\u044f\u0434\u043d\u043e\u0441\u0442\u0438 var components = {   scripts: {     source: sourceDir + '\/core\/application.js',     dest: destDir,     watch: sourceDir + '\/core\/**\/*.js',     options: {       paths: ['.\/node_modules', sourceDir],       debug: false,       fullPaths: true     }   } };  \/\/ \u0437\u0430\u0434\u0430\u0447\u0430 \u0434\u043b\u044f \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432 gulp.task('scripts', function () {   gulp.src(components.scripts.source)     .pipe(browserify(components.scripts.options))     .pipe(gulp.dest(components.scripts.dest)); });  \/\/ \u0437\u0430\u0434\u0430\u0447\u0430 \u0434\u043b\u044f \u0441\u043b\u0435\u0436\u0435\u043d\u0438\u044f \u0437\u0430 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f\u043c\u0438 \u0432 \u0441\u043a\u0440\u0438\u043f\u0442\u0430\u0445 gulp.task('watch:scripts', ['scripts'], function () {   \/\/ \u0435\u0441\u043b\u0438 \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0435\u043c\u044b\u0435 \u0444\u0430\u0439\u043b\u044b \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u0438\u0441\u044c, \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0437\u0430\u0434\u0430\u0447\u0443 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432   gulp.watch(components.scripts.watch, ['scripts']); });  gulp.task('default', ['scripts']); gulp.task('watch', ['watch:scripts']); <\/code><\/pre>\n<p>  \u0421\u0431\u043e\u0440\u043a\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0438\u0437 \u043a\u043e\u043d\u0441\u043e\u043b\u0438:  <\/p>\n<pre><code class=\"bash\">gulp <\/code><\/pre>\n<p>  \u0417\u0430\u043f\u0443\u0441\u043a \u0437\u0430\u0434\u0430\u0447\u0438 \u0434\u043b\u044f \u0441\u043b\u0435\u0436\u0435\u043d\u0438\u044f \u0437\u0430 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f\u043c\u0438 \u0432 \u0444\u0430\u0439\u043b\u0430\u0445:  <\/p>\n<pre><code class=\"bash\">gulp watch <\/code><\/pre>\n<h3>\u0413\u043b\u0430\u0432\u0430 1 \u2014 \u0421\u0431\u043e\u0440\u043a\u0430 compressed (production) \u0438 uncompressed \u0432\u0435\u0440\u0441\u0438\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430<\/h3>\n<p>  <\/p>\n<h4>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430<\/h4>\n<p>  \u0427\u0442\u043e\u0431\u044b \u0443\u043c\u0435\u043d\u044c\u0448\u0438\u0442\u044c \u0440\u0430\u0437\u043c\u0435\u0440 \u0441\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e <i>application.js<\/i> \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e \u043f\u0430\u043a\u0435\u0442 <a href=\"https:\/\/www.npmjs.com\/package\/gulp-uglify\">gulp-uglify<\/a>. \u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0438\u0441\u043a\u0430\u0442\u044c \u043a\u043e\u0441\u044f\u043a\u0438 \u0438 \u0434\u0435\u0431\u0430\u0436\u0438\u0442\u044c \u043a\u043e\u0434 \u043c\u043d\u0435 \u0443\u0434\u043e\u0431\u043d\u0435\u0435 \u0432 \u043d\u0435 \u0441\u0436\u0430\u0442\u043e\u043c \u043a\u043e\u0434\u0435 (\u0431\u0435\u0437 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f <i>gulp-uglify<\/i>). \u0412 \u043e\u0431\u0449\u0435\u043c, \u043a\u0430\u043a \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u0431\u0435\u0437 \u043f\u0440\u0430\u0432\u043e\u043a \u0432 <i>gulpfile.js<\/i> \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u043a\u0430\u043a <u>uncompressed<\/u> \u0432\u0435\u0440\u0441\u0438\u044e \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0434\u043b\u044f \u043e\u0442\u043b\u0430\u0434\u043a\u0438, \u0442\u0430\u043a \u0438 <u>compressed<\/u> \u0432\u0435\u0440\u0441\u0438\u044e \u0434\u043b\u044f \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u0435\u043d\u0430?<\/p>\n<h4>\u0420\u0435\u0448\u0435\u043d\u0438\u0435<\/h4>\n<p>  \u042f \u043d\u0435 \u043f\u043e\u043c\u043d\u044e, \u0433\u0434\u0435 \u043f\u043e\u0434\u0441\u043c\u043e\u0442\u0440\u0435\u043b \u044d\u0442\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u0435, \u043d\u043e \u043e\u043d\u043e \u043c\u043d\u0435 \u043f\u043e\u043d\u0440\u0430\u0432\u0438\u043b\u043e\u0441\u044c \u0438 \u0445\u043e\u0447\u0443 \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0441 \u0432\u0430\u043c\u0438. \u041e\u043d\u043e \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0435 <i>gulp<\/i> \u0438\u0437 \u043a\u043e\u043d\u0441\u043e\u043b\u0438, \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0439 \u0444\u043b\u0430\u0433:  <\/p>\n<pre><code class=\"bash\"># \u0441\u0431\u043e\u0440\u043a\u0430 uncompressed \u0432\u0435\u0440\u0441\u0438\u0438 gulp  # \u0441\u0431\u043e\u0440\u043a\u0430 compressed \u0432\u0435\u0440\u0441\u0438\u0438 gulp --production <\/code><\/pre>\n<p>  \u0414\u043b\u044f \u0442\u0430\u043a\u043e\u0439 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u044f \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0441\u044f:  <\/p>\n<ul>\n<li>\u043f\u0430\u043a\u0435\u0442\u043e\u043c <a href=\"https:\/\/www.npmjs.com\/package\/yargs\">yargs<\/a> \u0434\u043b\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u044b;<\/li>\n<li>\u043f\u0430\u043a\u0435\u0442\u043e\u043c <a href=\"https:\/\/www.npmjs.com\/package\/gulp-uglify\">gulp-uglify<\/a> \u0434\u043b\u044f \u0441\u0436\u0430\u0442\u0438\u044f \u043a\u043e\u0434\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0430;<\/li>\n<li>\u043f\u0430\u043a\u0435\u0442\u043e\u043c <a href=\"https:\/\/www.npmjs.com\/package\/gulp-if\">gulp-if<\/a>, \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c <i>gulp-uglify<\/i> \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u043e\u0433\u0434\u0430 \u044d\u0442\u043e \u043d\u0443\u0436\u043d\u043e.<\/li>\n<\/ul>\n<p>  \u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u043b \u0432\u0441\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u043f\u0430\u043a\u0435\u0442\u044b:  <\/p>\n<pre><code class=\"bash\">npm install --save-dev yargs gulp-uglify gulp-if <\/code><\/pre>\n<p>  \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u043b \u043f\u0430\u043a\u0435\u0442\u044b \u0432 <i>gulpfile.js<\/i>:  <\/p>\n<pre><code class=\"javascript\">var argv = require('yargs').argv; var gulpif = require('gulp-if'); var uglify = require('gulp-uglify'); <\/code><\/pre>\n<p>  \u0414\u043e\u0431\u0430\u0432\u0438\u043b pipe \u0432 \u0437\u0430\u0434\u0430\u0447\u0443 scripts:  <\/p>\n<pre><code class=\"javascript\">gulp.src(components.scripts.source)     .pipe(browserify(components.scripts.options))     .pipe(gulpif(argv.production, uglify())) \/\/ &lt;- \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432\u043e\u0442 \u044d\u0442\u0443 \u0441\u0442\u0440\u043e\u0447\u043a\u0443     .pipe(gulp.dest(components.scripts.dest)); <\/code><\/pre>\n<p>  \u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u044d\u0442\u043e\u0439 \u0441\u0442\u0440\u043e\u0447\u043a\u0438 \u044d\u043a\u0432\u0438\u0432\u0430\u043b\u0435\u043d\u0442\u043d\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c\u0443 \u043a\u043e\u0434\u0443:  <\/p>\n<pre><code class=\"javascript\">var src = gulp.src(components.scripts.source)     .pipe(browserify(components.scripts.options));  \/\/ \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c, \u043f\u0435\u0440\u0435\u0434\u0430\u043d \u043b\u0438 \u0444\u043b\u0430\u0433 production if(argv.production) {     src.pipe(uglify()); }  src.pipe(gulp.dest(components.scripts.dest)); <\/code><\/pre>\n<p>  <i>\u041f\u043e\u044f\u0441\u043d\u0435\u043d\u0438\u0435:<\/i> \u0432 \u0441\u043b\u0443\u0447\u0430\u0435, \u043a\u043e\u0433\u0434\u0430 <i>argv.production == true<\/i>, \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d <i>uglify<\/i>. <\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0441\u0431\u043e\u0440\u043a\u0443 <u>uncompressed<\/u> \u0432\u0435\u0440\u0441\u0438\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439:  <\/p>\n<pre><code class=\"bash\">gulp <\/code><\/pre>\n<p>  \u0410 \u0441\u0431\u043e\u0440\u043a\u0443 <u>compressed<\/u> \u0432\u0435\u0440\u0441\u0438\u0438:  <\/p>\n<pre><code class=\"bash\">gulp --production <\/code><\/pre>\n<p>  \u0423\u0441\u043b\u043e\u0432\u0438\u0435 <i>if(argv.production) {&#8230;}<\/i> \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e \u0438 \u0432 \u0434\u0440\u0443\u0433\u0438\u0445 \u043c\u0435\u0441\u0442\u0430\u0445, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u0440\u0438 \u0441\u0431\u043e\u0440\u043a\u0435 \u0441\u0442\u0438\u043b\u0435\u0439 \u0434\u043b\u044f \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u0435\u043d\u0430.<\/p>\n<h4>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442<\/h4>\n<p>  \u0414\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u043d\u044b\u0439 \u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c \u0438\u0437 \u044d\u0442\u043e\u0439 \u0433\u043b\u0430\u0432\u044b gulpfile.js \u043b\u0435\u0436\u0438\u0442 <a href=\"http:\/\/gulpfile.habrahabr.webulla.ru\/\">\u0432 \u0430\u0440\u0445\u0438\u0432\u0435<\/a> \u0438 \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f <i>gulpfile-1-production.js<\/i>.<\/p>\n<h3>\u0413\u043b\u0430\u0432\u0430 2 \u2014 \u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0432\u043a\u043b\u0430\u0434\u043a\u0438 \u0441 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u043c \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435 \u043f\u043e\u0441\u043b\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439<\/h3>\n<p>  <\/p>\n<h4>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430<\/h4>\n<p>  \u041a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437, \u043f\u043e\u0441\u043b\u0435 \u0432\u043d\u0435\u0441\u0435\u043d\u0438\u044f \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u0432 \u0444\u0430\u0439\u043b\u044b \u0438 \u043f\u0440\u0438 \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043d\u043e\u043c <i>gulp watch<\/i> \u043f\u0440\u043e\u0435\u043a\u0442 \u0437\u0430\u043d\u043e\u0432\u043e \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f, \u043d\u043e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u0441 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u043c \u043d\u0435 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442\u0441\u044f. \u041c\u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043d\u0430 chrome \u0438 \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u0432\u043a\u043b\u0430\u0434\u043a\u0443 \u043f\u0440\u043e\u0435\u043a\u0442\u0430. \u0423\u0434\u043e\u0431\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0442\u0430\u043a, \u043a\u043e\u0433\u0434\u0430 \u0432 \u0444\u0430\u0439\u043b\u044b \u0432\u043d\u043e\u0441\u044f\u0442\u0441\u044f \u043f\u0440\u0430\u0432\u043a\u0438, \u0430 \u043d\u0430 \u0434\u0440\u0443\u0433\u043e\u043c \u044d\u043a\u0440\u0430\u043d\u0435 \u043e\u043a\u043d\u043e \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430 \u0441 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u043c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442\u0441\u044f \u0441 \u043d\u043e\u0432\u044b\u043c \u043a\u043e\u0434\u043e\u043c.<\/p>\n<h4>\u0420\u0435\u0448\u0435\u043d\u0438\u0435<\/h4>\n<p>  \u042d\u0442\u0443 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u044f \u0440\u0435\u0448\u0438\u043b \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043f\u0430\u043a\u0435\u0442\u0430 <a href=\"https:\/\/www.npmjs.com\/package\/gulp-livereload\">gulp-livereload<\/a> \u0438 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f <a href=\"https:\/\/chrome.google.com\/webstore\/detail\/livereload\/jnihajbhpnppcggbcgedagnkighmdlei?hl=ru\">livereload<\/a> \u0434\u043b\u044f chrome. \u042d\u0442\u043e \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u0438 \u0434\u043b\u044f \u0434\u0440\u0443\u0433\u0438\u0445 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043e\u0432: <a href=\"http:\/\/livereload.com\/\">http:\/\/livereload.com\/<\/a>.<\/p>\n<p>  \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0439 \u043f\u0430\u043a\u0435\u0442:  <\/p>\n<pre><code class=\"bash\">npm install --save-dev gulp-livereload <\/code><\/pre>\n<p>  \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u043b \u043f\u0430\u043a\u0435\u0442:  <\/p>\n<pre><code class=\"javascript\">var livereload = require('gulp-livereload'); <\/code><\/pre>\n<p>  \u0414\u043e\u0431\u0430\u0432\u0438\u043b \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0432 \u0437\u0430\u0434\u0430\u0447\u0443 watch:scripts:  <\/p>\n<pre><code class=\"javascript\">  \/\/ \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0441\u0435\u0440\u0432\u0435\u0440   livereload.listen(); <\/code><\/pre>\n<p>  \u0414\u043e\u0431\u0430\u0432\u0438\u043b \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0432 \u0437\u0430\u0434\u0430\u0447\u0443 scripts:  <\/p>\n<pre><code class=\"javascript\">gulp.src(components.scripts.source)     .pipe(browserify(components.scripts.options))     .pipe(gulpif(argv.production, uglify()))     .pipe(gulp.dest(components.scripts.dest))     .pipe(livereload()); \/\/ &lt;- \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432\u043e\u0442 \u044d\u0442\u0443 \u0441\u0442\u0440\u043e\u0447\u043a\u0443 <\/code><\/pre>\n<p>  \u0417\u0430\u043f\u0443\u0441\u0442\u0438\u043b <i>gulp watch<\/i>:  <\/p>\n<pre><code class=\"bash\">gulp watch <\/code><\/pre>\n<p>  \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 <a href=\"https:\/\/chrome.google.com\/webstore\/detail\/livereload\/jnihajbhpnppcggbcgedagnkighmdlei?hl=ru\">chrome livereload<\/a>. \u0421\u043a\u0430\u0436\u0435\u043c, \u043f\u0430\u043f\u043a\u0430 web \u043c\u043e\u0435\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430 \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443 <a href=\"http:\/\/gulpfile.habrahabr.ru.local\/\">gulpfile.habrahabr.ru.local<\/a>. \u042f \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u044e \u0435\u0433\u043e \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435, \u043a\u043b\u0430\u0446\u0430\u044e \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0443 <i>Enable LiveReload<\/i> \u0432 \u0431\u0430\u0440\u0435 \u0438 \u0433\u043e\u0442\u043e\u0432\u043e! \u041f\u0440\u0438 \u043a\u0430\u0436\u0434\u043e\u043c \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0438 \u043a\u0430\u043a\u0438\u0445-\u043b\u0438\u0431\u043e \u0444\u0430\u0439\u043b\u043e\u0432, \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0435\u043c\u044b\u0445 \u0437\u0430\u0434\u0430\u0447\u0435\u0439 watch, \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442\u0441\u044f.<\/p>\n<h4>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442<\/h4>\n<p>  \u0414\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u043d\u044b\u0439 <i>gulpfile.js<\/i> \u0432 \u0430\u0440\u0445\u0438\u0432\u0435 \u2014 <i>gulpfile-2-livereload.js<\/i>.<\/p>\n<h3>\u0413\u043b\u0430\u0432\u0430 3 \u2014 \u041f\u0435\u0440\u0435\u0445\u0432\u0430\u0442 \u043e\u0448\u0438\u0431\u043e\u043a \u0434\u043e\u043f\u0443\u0449\u0435\u043d\u043d\u044b\u0445 \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u043f\u0440\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435<\/h3>\n<p>  <\/p>\n<h4>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430<\/h4>\n<p>  \u0415\u0441\u043b\u0438 \u044f \u0434\u043e\u043f\u0443\u0441\u043a\u0430\u043b \u043e\u0448\u0438\u0431\u043a\u0443 \u0432 \u0441\u043a\u0440\u0438\u043f\u0442\u0430\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u0430, \u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0430\u044f \u0437\u0430\u0434\u0430\u0447\u0430 gulp watch \u043e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u043b\u0430\u0441\u044c \u0441 \u043e\u0448\u0438\u0431\u043a\u043e\u0439 \u043f\u0440\u0438 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438. \u0425\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0447\u0442\u043e\u0431\u044b \u0442\u0430\u043a\u043e\u0433\u043e \u043d\u0435 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u043b\u043e \u0438 gulp watch \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u043b \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c.<\/p>\n<h4>\u0420\u0435\u0448\u0435\u043d\u0438\u0435<\/h4>\n<p>  \u0414\u043b\u044f \u0441\u0435\u0431\u044f \u044f \u0440\u0435\u0448\u0438\u043b \u043f\u0440\u0440\u0431\u043b\u0435\u043c\u0443 \u0442\u0430\u043a: \u0441\u043e\u0437\u0434\u0430\u043b \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u0445\u0432\u0430\u0442\u0430 \u043e\u0448\u0438\u0431\u043e\u043a \u0441 \u043b\u043e\u0433\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u044c.  <\/p>\n<pre><code class=\"javascript\">\/**  * \u041e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u043e\u0448\u0438\u0431\u043e\u043a.  * @param e  *\/ var error = function (e) {   console.error('Error in plugin &quot;' + e.plugin + '&quot;');   console.error('   &quot;' + e.message + '&quot;');   console.error('   In file &quot;' + e.fileName + '&quot;, line &quot;' + e.lineNumber + '&quot;.');   console.log('--------------------------------------');   console.log(e); }; <\/code><\/pre>\n<p>  \u0414\u043e\u0431\u0430\u0432\u0438\u043b \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u0432 \u0437\u0430\u0434\u0430\u0447\u0443 gulp scripts:  <\/p>\n<pre><code class=\"javascript\">  gulp.src(components.scripts.source)     .pipe(browserify(components.scripts.options).on('error', error)) \/\/ &lt;- \u0434\u043e\u0431\u0430\u0432\u0438\u043b .on('error', error) \u043d\u0430 \u044d\u0442\u043e\u0439 \u0441\u0442\u0440\u043e\u0447\u043a\u0435     .pipe(gulpif(argv.production, uglify()))     .pipe(gulp.dest(components.scripts.dest))     .pipe(livereload()); <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c, \u0434\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u044f \u0434\u043e\u043f\u0443\u0441\u043a\u0430\u044e \u043e\u0448\u0438\u0431\u043a\u0443 \u0432 \u043a\u043e\u0434\u0435, \u0442\u043e \u044f \u0432\u0438\u0436\u0443 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0435 \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u0438 \u0438 \u043c\u043d\u0435 \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u043d\u043e\u0432\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c gulp watch.<\/p>\n<h4>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442<\/h4>\n<p>  \u0414\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u043d\u044b\u0439 <i>gulpfile.js<\/i> \u0432 \u0430\u0440\u0445\u0438\u0432\u0435 \u2014 <i>gulpfile-3-error.js<\/i>.<\/p>\n<h3>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h3>\n<p>  \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u043d\u0435 \u0445\u043e\u0442\u0435\u043b \u043f\u0435\u0440\u0435\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e \u0438\u043b\u0438 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u0438\u043d\u043d\u043e\u0432\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0435, \u0430 \u043f\u043e\u0434\u0435\u043b\u0438\u043b\u0441\u044f \u0441\u0432\u043e\u0438\u043c \u043e\u043f\u044b\u0442\u043e\u043c \u0440\u0430\u0431\u043e\u0442\u044b \u0441 gulp \u0438 \u0432\u0430\u0436\u043d\u044b\u043c\u0438 \u0434\u043b\u044f \u0441\u0435\u0431\u044f \u0432\u044b\u0432\u043e\u0434\u0430\u043c\u0438. \u0412\u0441\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u043f\u043e \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u043c \u0432 \u0441\u0442\u0430\u0442\u044c\u0435 \u0441\u0441\u044b\u043b\u043a\u0430\u043c. <\/p>\n<p>  <u>\u0422\u0430\u043a\u0436\u0435 \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u0443\u0441\u043b\u044b\u0448\u0430\u0442\u044c \u043c\u043d\u0435\u043d\u0438\u0435 \u043e\u043f\u044b\u0442\u043d\u044b\u0445 \u0438 \u0437\u043d\u0430\u044e\u0449\u0438\u0445 \u043b\u044e\u0434\u0435\u0439 \u043a\u0430\u043a \u043f\u043e \u043f\u043e\u0432\u043e\u0434\u0443 \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0447\u0430\u0441\u0442\u0438, \u0442\u0430\u043a \u0438 \u043f\u043e \u043f\u043e\u0432\u043e\u0434\u0443 \u0442\u0435\u043a\u0441\u0442\u0430: \u043f\u043e\u043d\u044f\u0442\u0435\u043d \u043b\u0438 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b, \u043c\u043e\u0436\u0435\u0442 \u0433\u0434\u0435-\u0442\u043e \u0441\u0442\u043e\u0438\u0442 \u043f\u043e-\u0434\u0440\u0443\u0433\u043e\u043c\u0443 \u0441\u043a\u0430\u0437\u0430\u0442\u044c \u0438\u043b\u0438 \u0447\u0442\u043e-\u0442\u043e \u0435\u0449\u0435. \u042f \u0431\u044b \u0445\u043e\u0442\u0435\u043b \u043d\u0430\u0443\u0447\u0438\u0442\u044c\u0441\u044f \u0434\u043e\u043d\u043e\u0441\u0438\u0442\u044c \u0441\u0432\u043e\u044e \u043c\u044b\u0441\u043b\u044c \u0434\u043e \u043b\u044e\u0434\u0435\u0439 \ud83d\ude42<\/u> \u0421\u043f\u0430\u0441\u0438\u0431\u043e \u0437\u0430 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435!<\/p>\n<p>  <a href=\"http:\/\/gulpfile.habrahabr.webulla.ru\/\">\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043f\u0440\u0438\u043c\u0435\u0440<\/a>.<br \/>  <a href=\"http:\/\/gulpfile.habrahabr.webulla.ru\/project.zip\">\u0421\u043a\u0430\u0447\u0430\u0442\u044c \u043f\u0440\u0438\u043c\u0435\u0440 \u0430\u0440\u0445\u0438\u0432\u043e\u043c<\/a>.               <\/p>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/269673\/\"> http:\/\/habrahabr.ru\/post\/269673\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>       \u0425\u043e\u0447\u0443 \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0438\u0441\u0442\u043e\u0440\u0438\u0435\u0439 \u043c\u043e\u0435\u0433\u043e \u0437\u043d\u0430\u043a\u043e\u043c\u0441\u0442\u0432\u0430 \u0441 <i>gulp<\/i> \u0438 \u043a\u0430\u043a \u044f \u0440\u0435\u0448\u0430\u043b \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u043f\u0440\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435. \u041c\u0430\u0442\u0435\u0440\u0438\u0430\u043b \u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d \u043d\u0430 \u0442\u0435\u0445, \u043a\u0442\u043e \u0437\u043d\u0430\u043a\u043e\u043c \u0441 <a href=\"https:\/\/nodejs.org\/en\/\">nodejs<\/a> \u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u0437\u043d\u0430\u043a\u043e\u043c\u0438\u0442\u044c\u0441\u044f \u0441 <a href=\"http:\/\/gulpjs.com\/\">gulp<\/a>, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0438\u0449\u0443\u0449\u0438\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0441\u0445\u043e\u0436\u0435\u0439 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b. \u041a\u0430\u043a \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0438\u0437 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f, \u0441\u0442\u0430\u0442\u044c\u044f \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 \u0442\u0440\u0435\u0445 \u0433\u043b\u0430\u0432.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-267619","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/267619","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=267619"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/267619\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=267619"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=267619"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=267619"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}