How to use the gulp.paths function in gulp

To help you get started, we’ve selected a few gulp examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github JKHeadley / rest-hapi / gulp / jshint.js View on Github external
gulp.task('jshint', [], function(){
  return gulp.src([
      gulp.paths.src + '**/*.js',
      //gulp.paths.src + '/models/**/*.js',
      //gulp.paths.src + '/routes/**/*.js'
  ])
    // .pipe(jshint())
    // .pipe(jshint.reporter('default'))
    // .pipe(jshint.reporter('fail'));
});
github yhtml5 / yhtml5-tutorial / tutorials / angular / demo / angular-material-dashboard / gulp / styles.js View on Github external
'use strict';

var gulp = require('gulp');

var paths = gulp.paths;

var $ = require('gulp-load-plugins')();

gulp.task('styles', function () {

  var sassOptions = {
    style: 'expanded'
  };

  var injectFiles = gulp.src([
    paths.src + '/{app,components}/**/*.scss',
    '!' + paths.src + '/app/index.scss',
    '!' + paths.src + '/app/vendor.scss'
  ], { read: false });

  var injectOptions = {
github vega / voyager / gulpfile.js View on Github external
'use strict';

var gulp = require('gulp');

gulp.paths = {
  src: 'src',
  dist: 'dist',
  tmp: '.tmp',
  e2e: 'e2e',
  vlui: '../polestar/'
};

require('require-dir')('./gulp');

gulp.task('default', ['clean'], function () {
    gulp.start('build');
});
github JKHeadley / rest-hapi / gulp / compile.js View on Github external
gulp.task('compile', ['jshint', 'clean'], function () {

  return gulp.src([
    gulp.paths.src + '/**/*',
    "!" + gulp.paths.src + '/tests/**',
    "!" + gulp.paths.src + "/**/config.local.js",
    "!" + gulp.paths.src + "/**/config.development.js",
    "!" + gulp.paths.src + "/**/config.production.js",
  ])
  .pipe(gulp.dest(gulp.paths.build))
  .on('error', gutil.log);

});
github JKHeadley / appy-backend / gulpfile.js View on Github external
'use strict';

const Gulp = require('gulp');

Gulp.paths = {
  src: './api',
  build: './build',
  tmp: './tmp',
  dev: 'dev'
};

require('require-dir')('./gulp');

Gulp.task('default', function () {
  Gulp.start('serve:local');
});
github Heigvd / Wegas / wegas-app / src / main / webapp / wegas-lobby / gulp / styles.js View on Github external
'use strict';

var gulp = require('gulp');

var paths = gulp.paths;

var $ = require('gulp-load-plugins')();
var BROWSERLIST = ['last 2 versions', '> 1%', 'Firefox ESR', 'Firefox >= 18'];

gulp.task('styles', function() {

    var sassOptions = {
        outputStyle: 'expanded'
    };

    var injectFiles = gulp.src([
        paths.src + '/{app,components}/**/*.scss',
        '!' + paths.src + '/app/index.scss',
        '!' + paths.src + '/app/vendor.scss'
    ], {
        read: false
github JKHeadley / rest-hapi / gulp / compile.js View on Github external
gulp.task('compile', ['jshint', 'clean'], function () {

  return gulp.src([
    gulp.paths.src + '/**/*',
    "!" + gulp.paths.src + '/tests/**',
    "!" + gulp.paths.src + "/**/config.local.js",
    "!" + gulp.paths.src + "/**/config.development.js",
    "!" + gulp.paths.src + "/**/config.production.js",
  ])
  .pipe(gulp.dest(gulp.paths.build))
  .on('error', gutil.log);

});
github dtpublic / malhar-angular-dashboard / gulpfile.js View on Github external
'use strict';

var gulp = require('gulp');

gulp.paths = {
  src: 'src',
  dist: 'dist',
  demo: 'demo',
  tmp: '.tmp',
  e2e: 'e2e',
  bower: 'bower_components'
};

require('require-dir')('./gulp');

gulp.task('default', ['clean'], function () {
    gulp.start('build');
});
github Flexget / Flexget / flexget / ui / gulp / inject.js View on Github external
'use strict';

var gulp = require('gulp');

var paths = gulp.paths;

var $ = require('gulp-load-plugins')();

var wiredep = require('wiredep').stream;


gulp.task('inject', ['styles'], function () {

  var injectStyles = gulp.src(paths.tmp + '/serve/**/*.css', { read: false });
  var injectScripts = gulp.src([
    paths.src + '/**/*.js',
    '!' + paths.src + '/app.module.js',
	'!' + paths.src + '/app.utils.js',
    '!' + paths.src + '/app.loading.js',
    '!' + paths.src + '/**/*.spec.js'
  ]).pipe($.angularFilesort()).pipe($.angularFilesort());
github codenvy-legacy / che-dashboard / gulp / styles.js View on Github external
/*******************************************************************************
 * Copyright (c) 2015 Codenvy, S.A.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *   Codenvy, S.A. - initial API and implementation
 *******************************************************************************/

'use strict';

var gulp = require('gulp');

var paths = gulp.paths;

var $ = require('gulp-load-plugins')();

gulp.task('styles', function () {


  var injectFiles = gulp.src([
    paths.src + '/{app,components}/**/*.styl',
    '!' + paths.src + '/app/index.styl',
    '!' + paths.src + '/app/vendor.styl'
  ], { read: false });

  var injectOptions = {
    transform: function(filePath) {
      filePath = filePath.replace(paths.src + '/app/', '');
      filePath = filePath.replace(paths.src + '/components/', '../components/');