@@ -3,6 +3,7 @@ module.exports = function( grunt ) {
33"use strict" ;
44
55var
6+ glob = require ( "glob" ) ,
67
78 // files
89 coreFiles = [
@@ -93,7 +94,7 @@ function mapMinFile( file ) {
9394}
9495
9596function expandFiles ( files ) {
96- return grunt . util . _ . pluck ( grunt . file . expandMapping ( files ) , "src" ) . map ( function ( values ) {
97+ return grunt . util . _ . map ( grunt . file . expandMapping ( files ) , "src" ) . map ( function ( values ) {
9798 return values [ 0 ] ;
9899 } ) ;
99100}
@@ -133,7 +134,7 @@ function createBanner( files ) {
133134 "<%= pkg.homepage ? '* ' + pkg.homepage + '\\n' : '' %>" +
134135 ( files ? "* Includes: " + fileNames . join ( ", " ) + "\n" : "" ) +
135136 "* Copyright <%= pkg.author.name %>;" +
136- " Licensed <%= _.pluck (pkg.licenses, 'type').join(', ') %> */\n" ;
137+ " Licensed <%= _.map (pkg.licenses, 'type').join(', ') %> */\n" ;
137138}
138139
139140grunt . initConfig ( {
@@ -202,17 +203,18 @@ grunt.initConfig( {
202203 ignore : [
203204 / T h e t e x t c o n t e n t o f e l e m e n t “ s c r i p t ” w a s n o t i n t h e r e q u i r e d f o r m a t : E x p e c t e d s p a c e , t a b , n e w l i n e , o r s l a s h b u t f o u n d “ .” i n s t e a d /
204205 ] } ,
205- src : [ "demos/**/*.html" , " tests/**/*.html" ] . concat ( htmllintBad . map ( function ( file ) {
206- return "!" + file ;
207- } ) )
206+ src : glob . sync ( "{demos, tests} /**/*.html", {
207+ ignore : htmllintBad
208+ } )
208209 } ,
209210 bad : {
210211 options : {
211212 ignore : [
212213 / S t a r t t a g s e e n w i t h o u t s e e i n g a d o c t y p e f i r s t / ,
213214 / E l e m e n t “ h e a d ” i s m i s s i n g a r e q u i r e d i n s t a n c e o f c h i l d e l e m e n t “ t i t l e ” / ,
214215 / E l e m e n t “ o b j e c t ” i s m i s s i n g o n e o r m o r e o f t h e f o l l o w i n g / ,
215- / T h e “ c o d e b a s e ” a t t r i b u t e o n t h e “ o b j e c t ” e l e m e n t i s o b s o l e t e /
216+ / T h e “ c o d e b a s e ” a t t r i b u t e o n t h e “ o b j e c t ” e l e m e n t i s o b s o l e t e / ,
217+ / C o n s i d e r a d d i n g a “ l a n g ” a t t r i b u t e t o t h e “ h t m l ” s t a r t t a g /
216218 ]
217219 } ,
218220 src : htmllintBad
0 commit comments