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

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

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 36 37 38 39 40                                                                               
/**
 * Configuration for available content templates.
 *
 * Each template provides a different structure for specification markdown files.
 * The assets/ and static/ directories remain the same across all templates
 * and are always sourced from the original boilerplate.
 *
 * - id: unique identifier used in env var SPEC_UP_T_TEMPLATE and GitHubUi
 * - name: human-readable name shown during selection
 * - description: brief explanation of the template structure
 * - directory: folder name inside boilerplate-templates/, or null for default
 */
 
 
/**
 * IMPORTANT: When adding new templates, also update the template selection logic in the GitHubUi file `CreateSpecUpProject.vue`.
 */
const templates = [
    {
        id: 'default',
        name: 'Default (Starter Pack)',
        description: 'Standard boilerplate with head, body, and example markup files',
        directory: null
    },
    {
        id: 'boilerplate-template-01',
        name: 'Trust over IP Specification (Intro, Body, Coda)',
        description: 'Structured with introduction, body, and concluding sections',
        directory: 'boilerplate-template-01'
    },
    {
        id: 'boilerplate-template-02',
        name: 'Multi-Part Specification (Part 1, 2, 3)',
        description: 'Organized in sequential parts for longer specifications',
        directory: 'boilerplate-template-02'
    }
];
 
module.exports = { templates };