Skip to content

Commit e680eef

Browse files
committed
Re-added connect and added a karma:debug task configuration
1 parent 0d09b8b commit e680eef

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

Gruntfile.js

+11-5
Original file line numberDiff line numberDiff line change
@@ -56,25 +56,31 @@ module.exports = function (grunt) {
5656
},
5757
watch: {
5858
files: ['src/*.js', 'test/**/*.js'],
59-
tasks: ['build','karma:unit']
59+
tasks: ['build','karma:debug']
60+
},
61+
connect: {
62+
server: {}
6063
},
61-
// connect: {
62-
// server: {}
63-
// },
6464
karma: {
6565
unit: {
6666
configFile: 'test/test-config.js',
6767
runnerPort: 9999,
6868
singleRun: true,
6969
browsers: ['PhantomJS']
70+
},
71+
72+
debug: {
73+
configFile: 'test/test-config.js',
74+
runnerPort: 9999,
75+
singleRun: true
7076
}
7177
}
7278
});
7379

7480
grunt.registerTask('default', ['build', 'jshint', 'karma:unit']);
7581
grunt.registerTask('build', 'Perform a normal build', ['concat', 'uglify']);
7682
grunt.registerTask('dist', 'Perform a clean build and generate documentation', ['clean', 'build', 'jsdoc']);
77-
grunt.registerTask('dev', 'Run dev server and watch for changes', ['build', 'watch']);
83+
grunt.registerTask('dev', 'Run dev server and watch for changes', ['build', 'connect', 'watch']);
7884

7985
// grunt.registerTask('test-server', 'Start testacular server', function () {
8086
// //Mark the task as async but never call done, so the server stays up

0 commit comments

Comments
 (0)