@@ -18,19 +18,6 @@ module.exports = function(grunt) {
18
18
// Project configuration.
19
19
grunt . initConfig ( {
20
20
pkg,
21
- watch : {
22
- lang : {
23
- files : [ 'lang/**/*.json' ] ,
24
- tasks : [ 'vjslanguages' ]
25
- }
26
- } ,
27
- vjslanguages : {
28
- defaults : {
29
- files : {
30
- 'build/temp/lang' : [ 'lang/*.json' ]
31
- }
32
- }
33
- } ,
34
21
concurrent : {
35
22
options : {
36
23
logConcurrentOutput : true
@@ -41,7 +28,6 @@ module.exports = function(grunt) {
41
28
dev : [
42
29
'shell:sass' ,
43
30
'shell:babel' ,
44
- 'watch:lang' ,
45
31
'shell:copy-dist' ,
46
32
'shell:karma-server'
47
33
] ,
@@ -68,14 +54,8 @@ module.exports = function(grunt) {
68
54
preferLocal : true
69
55
}
70
56
} ,
71
- 'copy-lang' : {
72
- command : 'npm run copy-lang' ,
73
- options : {
74
- preferLocal : true
75
- }
76
- } ,
77
- 'copy-a11y' : {
78
- command : 'npm run copy-a11y' ,
57
+ 'lang' : {
58
+ command : 'npm run build:lang' ,
79
59
options : {
80
60
preferLocal : true
81
61
}
@@ -146,48 +126,35 @@ module.exports = function(grunt) {
146
126
preferLocal : true
147
127
}
148
128
} ,
129
+ a11y : {
130
+ command : 'npm run test:a11y' ,
131
+ options : {
132
+ preferLocal : true
133
+ }
134
+ } ,
149
135
noderequire : {
150
- command : 'node test/require/ node.js ' ,
136
+ command : 'npm run test: node-require ' ,
151
137
options : {
152
- failOnError : true
138
+ preferLocal : true
153
139
}
154
140
} ,
155
141
browserify : {
156
- command : 'browserify test/require/browserify.js -o build/temp/ browserify.js ' ,
142
+ command : 'npm run build: browserify-test ' ,
157
143
options : {
158
144
preferLocal : true
159
145
}
160
146
} ,
161
147
webpack : {
162
- command : 'webpack --hide-modules test/require/webpack.js build/temp/ webpack.js ' ,
148
+ command : 'npm run build: webpack-test ' ,
163
149
options : {
164
150
preferLocal : true
165
151
}
166
152
}
167
153
} ,
168
- accessibility : {
169
- options : {
170
- accessibilityLevel : 'WCAG2AA' ,
171
- reportLevels : {
172
- notice : false ,
173
- warning : true ,
174
- error : true
175
- } ,
176
- ignore : [
177
- // Ignore warning about contrast of the "vjs-no-js" fallback link
178
- 'WCAG2AA.Principle1.Guideline1_4.1_4_3.G18.BgImage'
179
- ]
180
-
181
- } ,
182
- test : {
183
- src : [ 'sandbox/descriptions.test-a11y.html' ]
184
- }
185
- }
186
154
} ) ;
187
155
188
156
// load all the npm grunt tasks
189
157
require ( 'load-grunt-tasks' ) ( grunt ) ;
190
- grunt . loadNpmTasks ( 'grunt-accessibility' ) ;
191
158
192
159
grunt . registerTask ( 'build' , [
193
160
'shell:lint' ,
@@ -199,8 +166,7 @@ module.exports = function(grunt) {
199
166
'shell:cssmin' ,
200
167
201
168
'shell:copy-fonts' ,
202
- 'shell:copy-lang' ,
203
- 'vjslanguages'
169
+ 'shell:lang'
204
170
] ) ;
205
171
206
172
grunt . registerTask ( 'dist' , [
@@ -222,7 +188,7 @@ module.exports = function(grunt) {
222
188
'shell:browserify' ,
223
189
'shell:webpack' ,
224
190
'shell:karma-run' ,
225
- 'test- a11y'
191
+ 'shell: a11y'
226
192
] ;
227
193
228
194
if ( process . env . TRAVIS ) {
@@ -238,7 +204,6 @@ module.exports = function(grunt) {
238
204
// Run while developing
239
205
grunt . registerTask ( 'dev' , [ 'sandbox' , 'concurrent:dev' ] ) ;
240
206
grunt . registerTask ( 'watchAll' , [ 'build' , 'concurrent:watchAll' ] ) ;
241
- grunt . registerTask ( 'test-a11y' , [ 'shell:copy-a11y' , 'accessibility' ] ) ;
242
207
243
208
// Pick your testing, or run both in different terminals
244
209
grunt . registerTask ( 'test-ui' , [ 'shell:karma-server' ] ) ;
0 commit comments