All files / src/install-from-boilerplate config-scripts-keys.js

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

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 29 30 31 32 33 34 35 362x                                   2x                                 2x
const configScriptsKeys = {
    "edit": "node -e \"require('spec-up-t')()\"",
    "render": "node --no-warnings -e \"require('spec-up-t/index.js')({ nowatch: true })\"",
    "dev": "node -e \"require('spec-up-t')({ dev: true })\"",
    "collectExternalReferences": "node --no-warnings -e \"require('spec-up-t/src/pipeline/references/collect-external-references.js').collectExternalReferences()\"",
    "topdf": "node -e \"require('spec-up-t/src/create-pdf.js')\"",
    "todocx": "node -e \"require('spec-up-t/src/create-docx.js')\"",
    "freeze": "node -e \"require('spec-up-t/src/freeze-spec-data.js')\"",
    "references": "node -e \"require('spec-up-t/src/pipeline/references/external-references-service.js')\"",
    "help": "node -e \"process.stdout.write(require('fs').readFileSync('./node_modules/spec-up-t/src/install-from-boilerplate/help.txt','utf8'))\"",
    "menu": "node ./menu-wrapper.js",
    "addremovexrefsource": "node --no-warnings -e \"require('spec-up-t/src/add-remove-xref-source.js')\"",
    "configure": "node --no-warnings -e \"require('spec-up-t/src/configure.js')\"",
    "healthCheck": "node --no-warnings ./node_modules/spec-up-t/src/health-check.js",
    "custom-update": "node ./node_modules/spec-up-t/src/install-from-boilerplate/custom-update.js"
};
 
// Defines which script keys to overwrite. If a key is not present, it will not be overwritten
const configOverwriteScriptsKeys = {
    "edit": true,
    "render": true,
    "dev": true,
    "collectExternalReferences": true,
    "topdf": true,
    "todocx": true,
    "freeze": true,
    "references": true,
    "help": true,
    "menu": true,
    "addremovexrefsource": true,
    "configure": true,
    "healthCheck": true,
    "custom-update": true
};
 
module.exports = { configScriptsKeys, configOverwriteScriptsKeys };