@@ -22,21 +22,8 @@ module.exports = function(grunt) {
22
22
var browserOption = grunt . option ( 'browser' ) ;
23
23
var testsOption = grunt . option ( 'tests' ) ;
24
24
var jqueryOption = grunt . option ( 'jquery' ) ;
25
- var skipStylesheets = grunt . option ( 'skip-styles' ) ;
26
25
var jquery = 'src/jquery.js' ;
27
26
28
- if ( skipStylesheets ) {
29
- grunt . log . writeln ( "Skipping styles" ) ;
30
- for ( var i = 0 ; i < TESTS . afterTestFiles . length ; i ++ ) {
31
- var item = TESTS . afterTestFiles [ i ] ;
32
- if ( typeof item === "string" ) {
33
- if ( item . match ( / l e s s \. j s / ) ) {
34
- TESTS . afterTestFiles . splice ( i , 1 ) ;
35
- }
36
- }
37
- }
38
- }
39
-
40
27
if ( testsOption ) {
41
28
tests = [ testsOption ] ;
42
29
}
@@ -118,7 +105,6 @@ module.exports = function(grunt) {
118
105
browsers : browsers ,
119
106
120
107
files : [ ] . concat (
121
- TESTS . compiledStyleSheets ,
122
108
TESTS . beforeTestFiles ,
123
109
TESTS . ciFiles ,
124
110
TESTS . afterTestFiles ,
@@ -135,7 +121,6 @@ module.exports = function(grunt) {
135
121
browsers : [ 'bs_chrome' ] ,
136
122
137
123
files : [ ] . concat (
138
- TESTS . compiledStyleSheets ,
139
124
TESTS . beforeTestFiles ,
140
125
TESTS . ciFiles ,
141
126
TESTS . afterTestFiles ,
@@ -158,7 +143,6 @@ module.exports = function(grunt) {
158
143
browsers : [ ] ,
159
144
160
145
files : [ ] . concat (
161
- TESTS . compiledStyleSheets ,
162
146
TESTS . beforeTestFiles ,
163
147
allKendoFiles ,
164
148
TESTS . afterTestFiles . filter ( function ( x ) {
@@ -260,7 +244,7 @@ module.exports = function(grunt) {
260
244
261
245
// Default task(s).
262
246
grunt . registerTask ( 'default' , [ 'karma:unit' ] ) ;
263
- grunt . registerTask ( 'tests' , [ 'karma:unit' ] ) ;
247
+ grunt . registerTask ( 'tests' , [ 'styles' , ' karma:unit' ] ) ;
264
248
grunt . registerTask ( 'styles' , [ 'copy:css_assets' , 'less' ] ) ;
265
249
grunt . registerTask ( 'all' , [ 'kendo' , 'download_builder' , 'copy:jquery' , 'copy:timezones' ] ) ;
266
250
grunt . registerTask ( 'build' , [ 'kendo' , 'copy:jquery' , 'styles' , 'license' ] ) ;
0 commit comments