Skip to content

Commit 17e3431

Browse files
committed
Exclude plugins from build process
1 parent 28c4c7f commit 17e3431

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

Gruntfile.js

+14-1
Original file line numberDiff line numberDiff 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++) {

0 commit comments

Comments
 (0)