Skip to content

Commit

Permalink
Create .gitignore on postBuild (#18045)
Browse files Browse the repository at this point in the history
  • Loading branch information
hashishaw committed Nov 18, 2022
1 parent 820d6ba commit 17bad82
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
15 changes: 15 additions & 0 deletions ui/lib/keep-gitkeep/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
'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', '');
},
};
6 changes: 6 additions & 0 deletions ui/lib/keep-gitkeep/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"name": "keep-gitkeep",
"keywords": [
"ember-addon"
]
}
1 change: 1 addition & 0 deletions ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@
"paths": [
"lib/core",
"lib/css",
"lib/keep-gitkeep",
"lib/kmip",
"lib/open-api-explorer",
"lib/pki",
Expand Down

0 comments on commit 17bad82

Please sign in to comment.