Skip to content

Commit 4e6e6e2

Browse files
committed
Change test target to run the default one too.
Also tweak the dev target.
1 parent daf34fa commit 4e6e6e2

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

Gruntfile.js

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -113,16 +113,24 @@ module.exports = function(grunt) {
113113
},
114114

115115
connect: {
116-
server: {
116+
options: {
117+
hostname: 'localhost',
118+
livereload: 35729,
119+
port: 3000
120+
},
121+
livereload: {
117122
options: {
118-
base: 'tests',
119-
port: 3000
123+
base: 'dist/',
124+
open: true // Automatically open the webpage in the default browser
120125
}
121126
}
122127
},
123128

124129
watch: {
125-
files: ['Gruntfile.js', 'tasks/**/*.js', 'test/**/*.*'],
130+
options: {
131+
livereload: '<%= connect.options.livereload %>'
132+
},
133+
files: ['Gruntfile.js', 'tasks/**/*.js', 'tests/**/*.*'],
126134
tasks: ['jshint', 'test']
127135
}
128136

@@ -137,7 +145,8 @@ module.exports = function(grunt) {
137145
'uncss:testMany',
138146
'uncss:testUncssrc',
139147
'uncss:testUrl',
140-
'simplemocha'
148+
'simplemocha',
149+
'default'
141150
]);
142151

143152
grunt.registerTask('dev', [

0 commit comments

Comments
 (0)