@@ -62,10 +62,6 @@ module.exports = function (grunt) {
6262 grunt . initConfig ( {
6363 package : grunt . file . readJSON ( 'package.json' ) ,
6464
65- clean : {
66- docs : [ 'docs/_site' ]
67- } ,
68-
6965 concat : {
7066 'dist' : {
7167 options : {
@@ -124,88 +120,10 @@ module.exports = function (grunt) {
124120 }
125121 } ,
126122
127- 'saucelabs-qunit' : {
128- all : {
129- options : {
130- build : testBuildNumber ,
131- tags : [ 'tests' , 'qunit' ] ,
132- urls : testUrls ,
133- testTimeout : 8000 ,
134- testname : 'QUnit test for Select2' ,
135- browsers : [
136- {
137- browserName : 'internet explorer' ,
138- version : '8' ,
139- platform : 'Windows 7'
140- } ,
141- {
142- browserName : 'internet explorer' ,
143- version : '9' ,
144- platform : 'Windows 7'
145- } ,
146- {
147- browserName : 'internet explorer' ,
148- version : '10' ,
149- platform : 'Windows 7'
150- } ,
151-
152- {
153- browserName : 'internet explorer' ,
154- version : '11' ,
155- platform : 'Windows 10'
156- } ,
157-
158- {
159- browserName : 'firefox' ,
160- platform : 'linux'
161- } ,
162-
163- {
164- browserName : 'chrome' ,
165- platform : 'linux'
166- } ,
167-
168- {
169- browserName : 'opera' ,
170- version : '12' ,
171- platform : 'linux'
172- }
173- ]
174- }
175- }
176- } ,
177-
178- 'gh-pages' : {
179- options : {
180- base : 'docs' ,
181- branch : 'master' ,
182- clone : 'node_modules/grunt-gh-pages/repo' ,
183- message : 'Updated docs with master' ,
184- push : true ,
185- repo : 'git@github.com:select2/select2.github.io.git'
186- } ,
187- src : '**'
188- } ,
189-
190- jekyll : {
191- options : {
192- src : 'docs' ,
193- dest : 'docs/_site'
194- } ,
195- build : {
196- d : null
197- } ,
198- serve : {
199- options : {
200- serve : true ,
201- watch : true
202- }
203- }
204- } ,
205-
206123 jshint : {
207124 options : {
208- jshintrc : true
125+ jshintrc : true ,
126+ reporterOutput : ''
209127 } ,
210128 code : {
211129 src : [ 'src/js/**/*.js' ]
@@ -240,19 +158,6 @@ module.exports = function (grunt) {
240158 }
241159 } ,
242160
243- symlink : {
244- docs : {
245- cwd : 'dist' ,
246- expand : true ,
247- overwrite : false ,
248- src : [
249- '*'
250- ] ,
251- dest : 'docs/dist' ,
252- filter : 'isDirectory'
253- }
254- } ,
255-
256161 requirejs : {
257162 'dist' : {
258163 options : {
@@ -331,19 +236,14 @@ module.exports = function (grunt) {
331236 }
332237 } ) ;
333238
334- grunt . loadNpmTasks ( 'grunt-contrib-clean' ) ;
335239 grunt . loadNpmTasks ( 'grunt-contrib-concat' ) ;
336240 grunt . loadNpmTasks ( 'grunt-contrib-connect' ) ;
337241 grunt . loadNpmTasks ( 'grunt-contrib-jshint' ) ;
338242 grunt . loadNpmTasks ( 'grunt-contrib-qunit' ) ;
339243 grunt . loadNpmTasks ( 'grunt-contrib-requirejs' ) ;
340- grunt . loadNpmTasks ( 'grunt-contrib-symlink' ) ;
341244 grunt . loadNpmTasks ( 'grunt-contrib-uglify' ) ;
342245 grunt . loadNpmTasks ( 'grunt-contrib-watch' ) ;
343246
344- grunt . loadNpmTasks ( 'grunt-gh-pages' ) ;
345- grunt . loadNpmTasks ( 'grunt-jekyll' ) ;
346- grunt . loadNpmTasks ( 'grunt-saucelabs' ) ;
347247 grunt . loadNpmTasks ( 'grunt-sass' ) ;
348248
349249 grunt . registerTask ( 'default' , [ 'compile' , 'test' , 'minify' ] ) ;
@@ -356,25 +256,5 @@ module.exports = function (grunt) {
356256 grunt . registerTask ( 'minify' , [ 'uglify' , 'sass:dist' ] ) ;
357257 grunt . registerTask ( 'test' , [ 'connect:tests' , 'qunit' , 'jshint' ] ) ;
358258
359- var ciTasks = [ ] ;
360-
361- ciTasks . push ( 'compile' ) ;
362- ciTasks . push ( 'connect:tests' ) ;
363-
364- /*
365- // grunt-saucelabs appears to be broken with Travis altogether now.
366- // Can't run Sauce Labs tests in pull requests
367- if (process.env.TRAVIS_PULL_REQUEST == 'false') {
368- ciTasks.push('saucelabs-qunit');
369- }
370- */
371-
372- ciTasks . push ( 'qunit' ) ;
373- ciTasks . push ( 'jshint' ) ;
374-
375- grunt . registerTask ( 'ci' , ciTasks ) ;
376-
377- grunt . registerTask ( 'docs' , [ 'symlink:docs' , 'jekyll:serve' ] ) ;
378-
379- grunt . registerTask ( 'docs-release' , [ 'default' , 'clean:docs' , 'gh-pages' ] ) ;
259+ grunt . registerTask ( 'ci' , [ 'compile' , 'test' ] ) ;
380260} ;
0 commit comments