[vis_details_spy] don't include in the build
This commit is contained in:
parent
de813c4342
commit
6d069c04a3
|
@ -21,6 +21,8 @@ module.exports = function (grunt) {
|
||||||
testUtilsDir: __dirname + '/test/utils',
|
testUtilsDir: __dirname + '/test/utils',
|
||||||
bowerComponentsDir: __dirname + '/src/kibana/bower_components',
|
bowerComponentsDir: __dirname + '/src/kibana/bower_components',
|
||||||
|
|
||||||
|
devPlugins: 'vis_details_spy',
|
||||||
|
|
||||||
meta: {
|
meta: {
|
||||||
banner: '/*! <%= package.name %> - v<%= package.version %> - ' +
|
banner: '/*! <%= package.name %> - v<%= package.version %> - ' +
|
||||||
'<%= grunt.template.today("yyyy-mm-dd") %>\n' +
|
'<%= grunt.template.today("yyyy-mm-dd") %>\n' +
|
||||||
|
@ -33,7 +35,10 @@ module.exports = function (grunt) {
|
||||||
grunt.config.merge(config);
|
grunt.config.merge(config);
|
||||||
|
|
||||||
var dirname = require('path').dirname;
|
var dirname = require('path').dirname;
|
||||||
var indexFiles = grunt.file.expand({ cwd: 'src/kibana/plugins' }, '*/index.js');
|
var indexFiles = grunt.file.expand({ cwd: 'src/kibana/plugins' }, [
|
||||||
|
'*/index.js',
|
||||||
|
'!' + config.devPlugins + '/index.js'
|
||||||
|
]);
|
||||||
var moduleIds = indexFiles.map(function (fileName) {
|
var moduleIds = indexFiles.map(function (fileName) {
|
||||||
return 'plugins/' + dirname(fileName) + '/index';
|
return 'plugins/' + dirname(fileName) + '/index';
|
||||||
});
|
});
|
||||||
|
|
|
@ -6,6 +6,7 @@ module.exports = function (grunt) {
|
||||||
'require_css_deps:copy',
|
'require_css_deps:copy',
|
||||||
'less',
|
'less',
|
||||||
'copy:kibana_src',
|
'copy:kibana_src',
|
||||||
|
'clean:dev_only_plugins',
|
||||||
'touch_config',
|
'touch_config',
|
||||||
'replace:build_props',
|
'replace:build_props',
|
||||||
'requirejs',
|
'requirejs',
|
||||||
|
|
|
@ -17,8 +17,9 @@ module.exports = function (grunt) {
|
||||||
'<%= build %>/kibana/public/**/*.less',
|
'<%= build %>/kibana/public/**/*.less',
|
||||||
'<%= build %>/kibana/public/config',
|
'<%= build %>/kibana/public/config',
|
||||||
'<%= build %>/kibana/public/{css-builder,normalize}.js',
|
'<%= build %>/kibana/public/{css-builder,normalize}.js',
|
||||||
'<%= app %>/public/{css-builder,normalize}.js',
|
'<%= app %>/public/{css-builder,normalize}.js'
|
||||||
]
|
]
|
||||||
}
|
},
|
||||||
|
dev_only_plugins: '<%= build %>/src/plugins/<%= devPlugins %>'
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue