Skip to content

Commit

Permalink
Add vendor dirs, exclude them from linting
Browse files Browse the repository at this point in the history
  • Loading branch information
arturkot committed May 11, 2017
1 parent 2c2092b commit 85087e6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions generators/app/templates/gulp/tasks/lint.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ var path = require('path');

var lintTask = function (gulp, plugins, config) {
gulp.task('lint-js', function() {
return gulp.src([path.join(config.src.base, config.src.scripts), '!node_modules/**'])
return gulp.src([path.join(config.src.base, config.src.scripts), '!node_modules/**', '!src/scripts/vendor/**'])
.pipe(plugins.eslint())
.pipe(plugins.eslint.format())
.pipe(plugins.eslint.failAfterError());
});

gulp.task('lint-css', function() {
return gulp.src(path.join(config.src.base, config.src.styles))
return gulp.src([path.join(config.src.base, config.src.styles), '!src/styles/vendor/**'])
.pipe(plugins.stylelint({
reporters: [
{formatter: 'string', console: true}
Expand Down
Empty file.
Empty file.
2 changes: 2 additions & 0 deletions generators/app/utils/generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,12 @@ var Generator = {
},

stylesheets: function () {
helpers.copy.call(this, 'styles/vendor/.keep', 'src/styles/vendor/.keep');
helpers.copy.call(this, 'styles/itcss/**/*', 'src/styles/', this.prompts);
},

javascripts: function () {
helpers.copy.call(this, 'scripts/vendor/.keep', 'src/scripts/vendor/.keep');
helpers.copy.call(this, 'scripts/browserify/**/*', 'src/scripts/', this.prompts);
}
};
Expand Down

0 comments on commit 85087e6

Please sign in to comment.