Create .gitignore on postBuild (#18045)

This commit is contained in:
Chelsea Shaw 2022-11-18 15:07:45 -06:00 committed by GitHub
parent 99408e3372
commit 0378bf766f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 22 additions and 0 deletions

View File

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

View File

@ -0,0 +1,6 @@
{
"name": "keep-gitkeep",
"keywords": [
"ember-addon"
]
}

View File

@ -239,6 +239,7 @@
"paths": [
"lib/core",
"lib/css",
"lib/keep-gitkeep",
"lib/kmip",
"lib/open-api-explorer",
"lib/pki",