kibana/tasks/build/create_empty_dirs_and_files.js
Spencer acd74a2b6b
[6.x] Condense build task (#16687) (#16689)
* [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
2018-02-12 17:46:12 -07:00

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');
});
};