Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
module.exports = function (gulp, plugins, config) { return function () {
// Root dir '.tmp' is for any template engine, 'app' is for disabled it
var rootDir = 'app';
return require('merge-stream')(
gulp.src([
'app/*',
'!app/test',
'!app/*.jade'
], {
dot: true
}).pipe(gulp.dest('dist')),
gulp.src([
'bower_components/**/*.{css,html,js}',
'!bower_components/**/{demo,index,metadata}.html'
])
.pipe(gulp.dest('dist/bower_components')),
gulp.src([
rootDir + '/elements/**/*.{html,js}',
module.exports = function (gulp, plugins, config) { return function () {
// Root dir '.tmp' is for any template engine, 'app' is for disabled it
var rootDir = 'app';
return require('merge-stream')(
gulp.src([
'app/*',
'!app/test',
'!app/*.jade'
], {
dot: true
}).pipe(gulp.dest('dist')),
gulp.src([
'bower_components/**/*.{css,html,js}',
'!bower_components/**/{demo,index,metadata}.html'
])
.pipe(gulp.dest('dist/bower_components')),
gulp.src([
rootDir + '/elements/**/*.{html,js}',
module.exports = function (gulp, plugins, config) { return function () {
return require('merge-stream')(
gulp.src('app/scripts/**/*.js')
.pipe(plugins.babel())
.pipe(gulp.dest('dist/scripts'))
).pipe(plugins.size({title: 'babel'}));
};};