Skip to content

Commit

Permalink
Gruntfile: 'all' task: Also build eslint.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
nicjansma committed May 4, 2020
1 parent e2d40b7 commit 271fe9a
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
module.exports = function(grunt) {
"use strict";

var SOURCE_FILES = [
"Gruntfile.js",
"src/**/*.js",
"test/*.js"
];

// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON("package.json"),
Expand Down Expand Up @@ -54,23 +60,15 @@ module.exports = function(grunt) {
},
eslint: {
console: {
src: [
"Gruntfile.js",
"src/**/*.js",
"test/*.js"
]
src: SOURCE_FILES
},
build: {
options: {
outputFile: "eslint.xml",
format: "jslint-xml",
silent: true
},
src: [
"Gruntfile.js",
"src/**/*.js",
"test/*.js"
]
src: SOURCE_FILES
}
},
mochaTest: {
Expand Down Expand Up @@ -134,5 +132,5 @@ module.exports = function(grunt) {
//
grunt.registerTask("default", ["lint", "build"]);
grunt.registerTask("travis", ["clean", "lint", "build", "test"]);
grunt.registerTask("all", ["clean", "lint:console", "build", "test"]);
grunt.registerTask("all", ["clean", "lint:console", "lint:build", "build", "test"]);
};

0 comments on commit 271fe9a

Please sign in to comment.