File tree 1 file changed +14
-1
lines changed
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) {
11
11
'template/_footer.js'
12
12
] ;
13
13
14
+ var excludedPlugins = [
15
+ 'react-native'
16
+ ] ;
17
+
14
18
var plugins = grunt . option ( 'plugins' ) ;
15
- // Create plugin paths and verify hey exist
19
+ // Create plugin paths and verify they exist
16
20
plugins = _ . map ( plugins ? plugins . split ( ',' ) : [ ] , function ( plugin ) {
17
21
var path = 'plugins/' + plugin + '.js' ;
18
22
@@ -35,6 +39,15 @@ module.exports = function(grunt) {
35
39
}
36
40
} ;
37
41
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
+
38
51
var all = [ a ] ;
39
52
40
53
for ( var i = 0 ; i < a . length ; i ++ ) {
You can’t perform that action at this time.
0 commit comments