runAndWatch(config.vendor.watch, function() {
   gulp.src(mainBowerFiles(), { base: 'bower_components' })
   .pipe(gulp.dest(config.vendor.dest));
 });
Example #2
0
pipes.builtVendorScriptsDev = function() {
    return gulp.src(bowerFiles())
        .pipe(gulp.dest('dist.dev/bower_components'));
};
Example #3
0
gulp.task('cssLib', function() {
    return gulp.src(mainBowerFiles().concat(['./bower_components/font-awesome/css/*']))
        .pipe(filter('**/*.css'))
        .pipe(concat(files.cssBundleLibDestFile))
        .pipe(gulp.dest(paths.bundleDestPath));
});
Example #4
0
gulp.task('font', function () {
    return gulp.src(mainBowerFiles({
        filter: '**/*.{eot,svg,ttf,woff,woff2}'
    }))
        .pipe(gulp.dest(config.outputPaths.fonts));
});
Example #5
0
gulp.task('bower:main', function (callback) {
    return gulp.src(mainBowerFiles()).pipe(gulp.dest('./Grafika.Web/wwwroot/js'))
});
gulp.task('fonts', function () {
  return gulp.src(mainBowerFiles())
    .pipe($.filter('**/*.{eot,svg,ttf,woff}'))
    .pipe($.flatten())
    .pipe(gulp.dest(paths.dist + '/fonts'));
});
Example #7
0
gulp.task('vendor-assets', function () {
  return gulp.src(bower(), { base: 'bower_components' })
    .pipe(gulp.dest(config.dest('app/assets')));
});
Example #8
0
gulp.task('libs', ["libs:npmfiles"], function() {
	return gulp.src(bowerfiles(), {base: "./bower_components/"}).pipe(gulp.dest("dist/lib"));  // {checkExistence: true}
});
Example #9
0
gulp.task('bower:styles', function(){
    return gulp.src(mainBowerFiles({filter: '**/*.css'}))
    .pipe(concat('lib.css'))
    .pipe(gulp.dest('./geek_feed/static/dist/css'));
});
Example #10
0
gulp.task('exampleBower', function () {
  return gulp.src(bower(), { base: './bower_components' })
    .pipe(gulp.dest(config.tasks.exampleBower.dest));
});
gulp.task('bower', function () {
    return gulp.src(mainBowerFiles(), {
        base: 'bower_components'
    })
        .pipe(gulp.dest('dist/lib'));
});
gulp.task('dist-assets', ['dist-index'], function () { // Move assets to the 'dist' folder
  return gulp.src(['./src/**/**/*.js', './src/**/**/*.css'].concat(mainBowerFiles()))
                .pipe(gulp.dest('./assets'));
});
Example #13
0
 gulp.task('bower', () => {
     return gulp.src(mainBowerFiles(mainBowerFilesConfig.options), { base: mainBowerFilesConfig.base })
         .pipe(gulp.dest(mainBowerFilesConfig.dest));
 });
gulp.task('fonts', function(){
	return gulp.src(mainBowerFiles({filter: '**/*.{eot,svg,ttf,woff,woff2}'}))
    	.pipe(gulp.dest('./app/assets/css/fonts'));
});
Example #15
0
var gulp = require('gulp'),
	less = require('gulp-less'),
	sourcemaps = require('gulp-sourcemaps'),
	watch = require('gulp-watch'),
	browserSync = require('browser-sync'),
	minifyCSS = require('gulp-minify-css'),
	mainBowerFiles = require('main-bower-files'),
	bowerFiles = mainBowerFiles(),
	uglify = require('gulp-uglify'),
	concat = require('gulp-concat'),
	autoprefixer = require('gulp-autoprefixer'),
	rename = require('gulp-rename'),
	plumber = require('gulp-plumber'),
	notify = require('gulp-notify');

console.info('********** Bower Files **********');
console.info(bowerFiles);

/******************************
 * Default task
 ******************************/
gulp.task('default', [
	'copyAssets',
	'copyViews',
	'browser-sync',
	'pluginsConcat',
	'jsConcat',
	'less',
	'watch'
]);
Example #16
0
gulp.task('inject-bower', function(){
  return gulp.src('./index.html')
    .pipe(inject(gulp.src(bowerFiles(), {read: false}), {name: 'bower'}))
    .pipe(gulp.dest('./'));
});
Example #17
0
gulp.task('bower-files', function() {
  gulp.src(bowerFiles(), {base: 'bower_components'})
    .pipe(gulp.dest(gulp.paths.dist+'/libs'))
    .pipe(reload({stream:true}));
});
Example #18
0
const clean           = require('gulp-clean');
const plumber         = require('gulp-plumber');
const mainBowerFiles  = require('main-bower-files');
const filter          = require('gulp-filter');
const order           = require('gulp-order');
const flatten         = require('gulp-flatten');

const destFolder = "./assets";
const bower      = mainBowerFiles({
  "overrides": {
    "bootstrap": {
      "main": [
        "dist/css/bootstrap.css",
        "dist/js/bootstrap.js"
      ]
    },
    "font-awesome": {
      "main": [
        "css/font-awesome.min.css",
        "fonts/*"
      ]
    }
  }
});

gulp.task('bower', [
  'bower:js',
  'bower:css',
  'bower:fonts',
]);

gulp.task('bower:js', () => {
Example #19
0
gulp.task('fonts-libs', function() {
    return gulp.src(mainBowerFiles({
            filter: /\.(eot)|(svg)|(ttf)|(woff)|(woff2)$/
        }))
        .pipe(gulp.dest(path.join(output_directory, 'fonts')));
});
gulp.task('concat-bower', function() {
    return gulp.src(bower())
        .pipe(concat('script.js'))
        .pipe(gulp.dest('./dist/'));
});
Example #21
0
gulp.task('bower', function() {
    return gulp.src(mainBowerFiles())
    .pipe(gulp.dest('dist/assets'));
});
Example #22
0
gulp.task('bower', function(){
     gulp.src(mainBowerFiles(),{base: config.bowerPath})
        .pipe(concat('bower.js'))
        .pipe(gulp.dest('public'));
});
Example #23
0
gulp.task('vendor-js', function () {
    return gulp.src(mainBowerFiles('**/*.js'))
        .pipe(concat('vendor.js'))
        .pipe(gulp.dest('./tmp/'));
});
Example #24
0
import less from 'gulp-less';
import sourcemaps from 'gulp-sourcemaps';
import watch from 'gulp-watch';
import browserSync from 'browser-sync';
import cleanCSS from 'gulp-clean-css';
import uglify from 'gulp-uglify';
import concat from 'gulp-concat';
import autoprefixer from 'gulp-autoprefixer';
import handlebars from 'gulp-compile-handlebars';
import rename from 'gulp-rename';
import plumber from 'gulp-plumber';
import notify from 'gulp-notify';
import babel from 'gulp-babel';
import templateData from './app/data/data.json';
import mainBowerFiles from 'main-bower-files';
let bowerFiles = mainBowerFiles();

console.info(`
********** Bower Files **********
${bowerFiles}
`);

/******************************
 * Default task
 ******************************/
gulp.task('default', [
	'copyAssets',
	'browser-sync',
	'handlebars',
	'pluginsConcat',
	'jsConcat',
Example #25
0
gulp.task("bower-files", function () {
    return gulp.src(mainBowerFiles('*/**/*.*'))
        .pipe(gulp.dest('./app/bower'));
});
Example #26
0
gulp.task('vendor-build', function() {
	return gulp.src(mainBowerFiles(), { base: './bower_components' })
		.pipe(newer(paths.vendorDir))
		.pipe(gulp.dest(paths.vendorDir));
});
Example #27
0
gulp.task('bower', () => {
  let cssStream = gulp.src(mainBowerFiles({
    base: 'bower_components',
    paths: {
      bowerDirectory: './bower_components',
      bowerJson: './bower.json'
    }}))
    .pipe(plugins.filter('**/*.css'))
    .pipe(plugins.rename((path) => {
      path.dirname = path.dirname.slice(0, path.dirname.indexOf('/') + 1)
    }))
    .pipe(gulp.dest(CSS_PATH + 'vendor/'))
    .pipe(map((code, filename) => {
      plugins.util.log('Bower CSS ' +
      plugins.util.colors.green(filename))
    }))

  let jsStream = gulp.src(mainBowerFiles({
    base: 'bower_components',
    paths: {
      bowerDirectory: './bower_components',
      bowerJson: './bower.json'
    }}))
    .pipe(plugins.filter(['**/*.js', '**/*.map']))
    .pipe(plugins.rename((path) => {
      path.dirname = ''
    }))
    .pipe(plugins.if(/ru.js|en-gb.js$/,
      gulp.dest(JS_PATH + 'vendor/locale/')
        .pipe(map((code, filename) => {
          plugins.util.log('Bower JS ' +
          plugins.util.colors.green(filename))
        }))))
    .pipe(plugins.filter(['**', '!**/locale/*']))
    .pipe(gulp.dest(JS_PATH + 'vendor/'))
    .pipe(map((code, filename) => {
      plugins.util.log('Bower JS ' +
      plugins.util.colors.green(filename))
    }))

  let imgStream = gulp.src(mainBowerFiles({
    base: 'bower_components',
    paths: {
      bowerDirectory: './bower_components',
      bowerJson: './bower.json'
    }}))
    .pipe(plugins.filter(['**/*.png', '**/*.jpg', '**/*.gif', '**/*.svg']))
    .pipe(plugins.rename((path) => {
      path.dirname = path.dirname.slice(0, path.dirname.indexOf('/') + 1)
    }))
    .pipe(gulp.dest(IMG_PATH + 'vendor/'))
    .pipe(map((code, filename) => {
      plugins.util.log('Bower Images ' +
      plugins.util.colors.green(filename))
    }))

  let fontStream = gulp.src(mainBowerFiles({
    base: 'bower_components',
    paths: {
      bowerDirectory: './bower_components',
      bowerJson: './bower.json'
    }}))
    .pipe(plugins.filter(['**/*.eot', '**/*.otf', '**/*.svg', '**/*.ttf', '**/*.woff', '**/*.woff2']))
    .pipe(plugins.rename((path) => {
      path.dirname = path.dirname.slice(0, path.dirname.indexOf('/') + 1)
    }))
    .pipe(gulp.dest(FONT_PATH))
    .pipe(map((code, filename) => {
      plugins.util.log('Bower Fonts ' +
      plugins.util.colors.green(filename))
    }))

  return merge(cssStream, jsStream, imgStream, fontStream)
})
Example #28
0
gulp.task('bower', function(){
    return gulp.src(bowerFiles())
        .pipe( gulp.dest('public/bower/') );
});
Example #29
0
gulp.task('fonts', function() {
    return gulp.src(mainBowerFiles())
        .pipe(filter(['**/*.woff2','**/*.woff','**/*.ttf']))
        .pipe(gulp.dest(paths.fontDestPath));
});
Example #30
0
gulp.task("inject-ts", ["compile-ts"], function() {
   return gulp.src('index.html')
   	.pipe(inject(gulp.src(bowerFiles(), {read: false}), {name: 'bower'}))
    .pipe(inject(gulp.src(config.allGeneratedJs, {read: false})))
    .pipe(gulp.dest('./'));
});