Skip to content
Snippets Groups Projects
Commit 20e533c8 authored by RomanSteinberg's avatar RomanSteinberg
Browse files

Add twig components copying to gulp

parent 285cb491
Branches
Tags
No related merge requests found
......@@ -59,7 +59,8 @@ var paths = new (function () {
js: media + '/js/**/*.js',
config: src + '/deploy/phpConfig/**/*',
css_components: media + '/components/**/*.css',
js_components: media + '/components/**/*.js'
js_components: media + '/components/**/*.js',
twig_components: media + '/components/**/*.twig'
};
......@@ -69,7 +70,8 @@ var paths = new (function () {
js: stat + '/js/',
config: dst + '/application/config/',
css_components: stat + '/components/',
js_components: stat + '/components/'
js_components: stat + '/components/',
twig_components: stat + '/components/'
};
})();
......@@ -91,13 +93,15 @@ var pipes = (function () {
var jsPipe = lazypipe()
.pipe(options.opt ? uglify : prettify);
var twigPipe = empty;
return {
css: cssPipe,
less: lessPipe,
js: jsPipe,
css_components: cssPipe,
js_components: jsPipe
js_components: jsPipe,
twig_components: twigPipe
}
})();
......@@ -106,7 +110,8 @@ var ext = {
less: '.css',
js: '.js',
'css_components': '.css',
'js_components': '.js'
'js_components': '.js',
'twig_components': '.twig'
};
......@@ -190,6 +195,7 @@ gulp.task('config:copy', function () {
gulp.task('components:copy', function () {
constructTask(getConfig('css_components'));
constructTask(getConfig('twig_components'));
return constructTask(getConfig('js_components'));
});
......@@ -227,6 +233,7 @@ gulp.task('watch', function (event) {
constructWatch(getConfig('js', event.path));
constructWatch(getConfig('css_components', event.path));
constructWatch(getConfig('js_components', event.path));
constructWatch(getConfig('twig_components', event.path));
});
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment