kittn / generator-kittn

The Yeoman Kittn Generator
http://kittn.de
MIT License
61 stars 5 forks source link

New Questionare #59

Closed gisu closed 7 years ago

gisu commented 7 years ago

First, only the idea how to rebuild the prompts to shorten the set of questions. Some questions like repository URL may even be superfluous. The respective answer could therefore also note later in the package.json.

01. (string)  Projectname
02. (list)    Projecttype [
                html, 
                craft,                         // Set $cmsInstall Var 
                wordpress,                     // Set $cmsInstall Var
                craft with contentbuilder,     // Set $cmsInstall Var Set $cmsContentbuilder Var
                wordpress with contentbuilder  // Set $cmsInstall Var Set $cmsContentbuilder Var
              ]

// ------ if $cmsInstall and $cmsContentbuilder is true --------

03. (bool)    Craft / Wordpress Install
04. (bool)    Craft / Wordpress Environment Credentials
  -> 04.01.   (list)   Credentials HTTP or HTTPS (needed?)
  -> 04.02.   (string) Credentials Domain
  -> 04.04.   (string) Credentials DB Host (needed? Normaly localhost)
  -> 04.05.   (string) Credentials DB User
  -> 04.06.   (string) Credentials DB Pass
  -> 04.07.   (string) Credentials DB Name
  -> 04.08.   (bool)   Credentials Create DB
  -> 04.09.   (bool)   Credentials Use Mamp Socket

// ------ if $cmsInstall is true --------

03. (list)    Normalize [custom, regular, no]
04. (bool)    Container Queries
05. (list)    CSS Methodologies [own, atomic, itcss]
06. (bool)    Craft / Wordpress Install
07. (bool)    Craft / Wordpress Environment Credentials
  -> 07.01.   (list)   Credentials HTTP or HTTPS (needed?)
  -> 07.02.   (string) Credentials Domain
  -> 07.04.   (string) Credentials DB Host (needed? Normaly localhost)
  -> 07.05.   (string) Credentials DB User
  -> 07.06.   (string) Credentials DB Pass
  -> 07.07.   (string) Credentials DB Name
  -> 07.08.   (bool)   Credentials Create DB
  -> 07.09.   (bool)   Credentials Use Mamp Socket

// ------ if Projecttype is html --------

03. (list)    Normalize [custom, regular, no]
04. (bool)    Container Queries
05. (list)    CSS Methodologies [own, atomic, itcss]

// ------ Last General Questions  --------

01. (string)  CSS Filename
02. (list)    Media Query Unit  [em, px]           
03. (string)  Theme Color
04. (bool)    Activate Stylelint
05. (bool)    CriticalCSS 
06. (list)    jQuery [nope, slim, fullpackage]
07. (list)    JS Reactive Frameworks [none, vue, react]
08. (check)   Documentation [
                Astrum Pattern Lib,
                SassDoc
              ]

09. (string) Description (needed?)
10. (string) Project Version
11. (string) Project Author
12. (string) Project Mail
13. (string) Project Repository URL (needed?)
DotCoyote commented 7 years ago

I'd like to strip it down a bit... The following questions could be handled via arguments:

03. (list)    Normalize [custom, regular, no]           "--normalize=custom"
04. (bool)    Container Queries                         "--usecq"
05. (list)    CSS Methodologies [own, atomic, itcss]    "--css=itcss"

// ------ Last General Questions  --------
02. (list)    Media Query Unit  [em, px]    "--mqpx"
04. (bool)    Activate Stylelint:           "--nostylelint"
05. (bool)    CriticalCSS                   "--criticalcss

Also we could delete Description.

gisu commented 7 years ago

However, the first three arguments must be ignored when the user selects a contentbuilder. ThemeColor could also be an argument.

gisu commented 7 years ago

HTTPS or HTTP Question is dropped