-
Notifications
You must be signed in to change notification settings - Fork 406
/
Copy pathstarterkit.js
50 lines (49 loc) · 1.42 KB
/
starterkit.js
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
41
42
43
44
45
46
47
48
49
50
'use strict';
const inquirer = require('inquirer');
const CUSTOM_STARTERKIT = Symbol('CUSTOM_STARTERKIT');
/** starterkitSetup {Array} - Inquirer question logic for regarding starterkits */
const starterkitSetup = [
{
type: 'list',
name: 'starterkit',
message: 'What initial patterns do you want included in your project?',
choices: [
{
name:
'Handlebars base patterns (some basic patterns to get started with)',
value: '@pattern-lab/starterkit-handlebars-vanilla',
},
{
name: 'Handlebars demo patterns (full demo website and patterns)',
value: '@pattern-lab/starterkit-handlebars-demo',
},
{
name: 'Twig (PHP) demo patterns (full demo website and patterns)',
value: '@pattern-lab/starterkit-twig-demo',
},
new inquirer.Separator(),
{
name: 'Custom starterkit',
value: CUSTOM_STARTERKIT,
},
new inquirer.Separator(),
{
name: 'Blank project (no patterns)',
value: false,
},
],
default: {
name: 'Handlebars demo patterns (full demo website and patterns)',
value: '@pattern-lab/starterkit-handlebars-demo',
},
},
{
name: 'starterkit',
message: 'Type the name of the custom starterkit to use:',
type: 'input',
when(answers) {
return answers.starterkit === CUSTOM_STARTERKIT;
},
},
];
module.exports = starterkitSetup;