File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -11,8 +11,12 @@ module.exports = function(grunt) {
1111 'template/_footer.js'
1212 ] ;
1313
14+ var excludedPlugins = [
15+ 'react-native'
16+ ] ;
17+
1418 var plugins = grunt . option ( 'plugins' ) ;
15- // Create plugin paths and verify hey exist
19+ // Create plugin paths and verify they exist
1620 plugins = _ . map ( plugins ? plugins . split ( ',' ) : [ ] , function ( plugin ) {
1721 var path = 'plugins/' + plugin + '.js' ;
1822
@@ -35,6 +39,15 @@ module.exports = function(grunt) {
3539 }
3640 } ;
3741
42+ var excluded = _ . map ( excludedPlugins , function ( plugin ) {
43+ return 'plugins/' + plugin + '.js' ;
44+ } ) ;
45+
46+ // Remove the plugins that we don't want to build
47+ a = _ . filter ( a , function ( n ) {
48+ return excluded . indexOf ( n ) === - 1 ;
49+ } ) ;
50+
3851 var all = [ a ] ;
3952
4053 for ( var i = 0 ; i < a . length ; i ++ ) {
You can’t perform that action at this time.
0 commit comments