Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SRC Variable - Array Capabilities #61

Open
SomethingNew71 opened this issue Mar 16, 2017 · 0 comments
Open

SRC Variable - Array Capabilities #61

SomethingNew71 opened this issue Mar 16, 2017 · 0 comments

Comments

@SomethingNew71
Copy link

Hey it would be wonderful if the SRC variable could accept an array of strings that then could be compared in the destination.

Example

'use strict';

const changed = require('gulp-changed');
const eslint = require('gulp-eslint');
const gulp = require('gulp');
const path = require('path');
const rootDir = path.join(__dirname, '..');

const changedOptions = {
  cwd: rootDir
};

gulp.task('lint:js', () => {
  const files = [
    'src/resources/base/**/*.js',
    'src/resources/components/**/*.js',
    'src/resources/data/**/*.js',
    'src/resources/layouts/**/*.js',
    'src/resources/pages/**/*.js',
    'src/resources/patterns/**/*.js',
    'src/resources/xml/**/*.js',
    'gulp-tasks/**/*.js'
  ];
  return gulp.src(files)
    .pipe(changed('build/resources/', changedOptions))
    .pipe(eslint())
    .pipe(eslint.format());
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant