mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
[vis_details_spy] don't include in the build
This commit is contained in:
parent
de813c4342
commit
6d069c04a3
3 changed files with 10 additions and 3 deletions
|
@ -21,6 +21,8 @@ module.exports = function (grunt) {
|
|||
testUtilsDir: __dirname + '/test/utils',
|
||||
bowerComponentsDir: __dirname + '/src/kibana/bower_components',
|
||||
|
||||
devPlugins: 'vis_details_spy',
|
||||
|
||||
meta: {
|
||||
banner: '/*! <%= package.name %> - v<%= package.version %> - ' +
|
||||
'<%= grunt.template.today("yyyy-mm-dd") %>\n' +
|
||||
|
@ -33,7 +35,10 @@ module.exports = function (grunt) {
|
|||
grunt.config.merge(config);
|
||||
|
||||
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) {
|
||||
return 'plugins/' + dirname(fileName) + '/index';
|
||||
});
|
||||
|
|
|
@ -6,6 +6,7 @@ module.exports = function (grunt) {
|
|||
'require_css_deps:copy',
|
||||
'less',
|
||||
'copy:kibana_src',
|
||||
'clean:dev_only_plugins',
|
||||
'touch_config',
|
||||
'replace:build_props',
|
||||
'requirejs',
|
||||
|
|
|
@ -17,8 +17,9 @@ module.exports = function (grunt) {
|
|||
'<%= build %>/kibana/public/**/*.less',
|
||||
'<%= build %>/kibana/public/config',
|
||||
'<%= 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…
Add table
Add a link
Reference in a new issue