All files / src/install-from-boilerplate config-system-files.js

100% Statements 5/5
100% Branches 0/0
100% Functions 0/0
100% Lines 5/5

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 292x                 2x           2x           2x           2x  
const systemFiles = [
    '.env.example',
    'menu-wrapper.js',
    'assets/test.json',
    'assets/test.text',
];
 
// Directories replaced 1:1 with the boilerplate. Extra files in the
// consuming project are removed so old GitHub Actions workflows do not linger.
const systemDirsReplace = [
    '.github/workflows',
];
 
// Files that are only copied when they do not already exist in the consuming
// project, so user customisations are never overwritten by updates.
const systemFilesNoOverwrite = [
    'README.md',
    'assets/custom.css',
];
 
// Stale files from previous boilerplate versions, removed on custom-update.
const systemFilesToRemove = [
    'menu-wrapper.sh',
    // Replaced by the Pages-source step in render-and-deploy.yml (no MY_PAT).
    '.github/workflows/set-gh-pages.yml',
];
 
module.exports = { systemFiles, systemDirsReplace, systemFilesNoOverwrite, systemFilesToRemove };