Skip to content

Commit

Permalink
chore: match order between task definition and execution
Browse files Browse the repository at this point in the history
  • Loading branch information
Krinkle committed Aug 27, 2018
1 parent 19551fd commit a5a2fc0
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,16 +85,6 @@ module.exports = function (grunt) {
}
]
},
background: {
background: true,
files: [
{
src: 'node_modules/expect.js/index.js'
}, {
src: 'test/**/*.js'
}
]
},
config: {
configFile: 'karma.conf.js',
singleRun: true
Expand All @@ -110,6 +100,16 @@ module.exports = function (grunt) {
}
]
},
background: {
background: true,
files: [
{
src: 'node_modules/expect.js/index.js'
}, {
src: 'test/**/*.js'
}
]
},
dev: {
reporters: 'dots',
background: true
Expand All @@ -134,7 +134,12 @@ module.exports = function (grunt) {
grunt.loadTasks('tasks')
require('load-grunt-tasks')(grunt)

grunt.registerTask('test', ['eslint', 'karma:single', 'karma:config', 'karma:merge'])
grunt.registerTask('test', [
'eslint',
'karma:single',
'karma:config',
'karma:merge'
])
grunt.registerTask('default', ['test'])
grunt.registerTask('bgtest', ['karma:background', 'watch:bgtest'])

Expand Down

0 comments on commit a5a2fc0

Please sign in to comment.