* [build] don't copy unwanted files * [build] condense mkdir/touch tasks * [i18n] verifyTranslations task has nothing to do with the build, just run in tests
14 lines
598 B
JavaScript
14 lines
598 B
JavaScript
module.exports = function (grunt) {
|
|
grunt.registerTask('_build:createEmptyDirsAndFiles', function () {
|
|
// force the plugins directory to exist
|
|
grunt.file.mkdir('build/kibana/plugins');
|
|
|
|
// force the data directory to exist
|
|
grunt.file.mkdir('build/kibana/data');
|
|
|
|
// When running from built packages, if a plugin is installed before babelcache
|
|
// exists it can become owned by root. This causes server startup to fail because
|
|
// the optimization process can't write to .babelcache.json.
|
|
grunt.file.write('build/kibana/optimize/.babelcache.json', '{}\n');
|
|
});
|
|
};
|