open-vault/ui/lib/keep-gitkeep/index.js
2022-11-18 15:07:45 -06:00

16 lines
367 B
JavaScript

'use strict';
const fs = require('fs');
module.exports = {
name: require('./package').name,
isDevelopingAddon() {
return true;
},
postBuild(result) {
// We gitignore the contents of our output directory http/web_ui
// but we need to keep the folder structure for the Vault build
fs.writeFileSync(result.directory + '/.gitkeep', '');
},
};