1- ' use strict'
1+ " use strict" ;
22
3- module . exports . cliCommand = [
4- {
5- type : 'list' ,
6- name : 'installation' ,
7- message : 'What would you like to install?' ,
8- choices : [
9- 'CustomPackageInstall' ,
10- 'CreateReactApp' ,
11- 'ReactComponent' ,
12- 'ReactRouter' ,
13- 'StylingPackages' ,
14- 'PropTypes' ,
15- 'StateManagement' ,
16- 'TypeScript'
17- ]
18- }
19- ]
20- module . exports . multiplePackageInstall = [
21- {
22- type : 'checkbox' ,
23- name : 'packages' ,
24- message : 'Select packages for your new React Project: ' ,
25- default : [ 'create-react-app' ] ,
26- pageSize : 9 ,
27- choices : [
28- 'create-react-app' ,
29- 'react-router react-router-dom' ,
30- 'redux react-redux' ,
31- 'redux-thunk' ,
32- 'prop-types' ,
33- 'node-sass' ,
34- 'styled-components' ,
35- 'unstated' ,
36- 'unstated-next' ,
37- 'typescript' ,
38- '@types/node' ,
39- '@types/react-redux' ,
40- '@types/react @types/react-dom' ,
41- '@types/react-router @types/react-router-dom' ,
42- '@types/jest'
43- ]
44- }
45- ]
46- module . exports . installOption = [
47- {
48- type : 'list' ,
49- name : 'decision' ,
50- message : 'Would you like to Install or Uninstall?' ,
51- choices : [ 'Install' , 'Uninstall' ]
52- }
53- ] // Add new package Yes/No
3+ module . exports . cliCommand = [ {
4+ type : 'list' ,
5+ name : 'installation' ,
6+ message : 'What would you like to install?' ,
7+ choices : [ 'CustomPackageInstall' , 'CreateReactApp' , 'ReactComponent' , 'ReactRouter' , 'StylingPackages' , 'PropTypes' , 'StateManagement' , 'TypeScript' , 'AccesibilityPackages' ]
8+ } ] ;
9+ module . exports . multiplePackageInstall = [ {
10+ type : 'checkbox' ,
11+ name : 'packages' ,
12+ message : 'Select packages for your new React Project: ' ,
13+ "default" : [ 'create-react-app' ] ,
14+ pageSize : 9 ,
15+ choices : [ 'create-react-app' , 'react-router react-router-dom' , 'redux react-redux' , 'redux-thunk' , 'prop-types' , 'node-sass' , 'styled-components' , 'unstated' , 'unstated-next' , 'typescript' , 'react-a11y' , 'react-axe' , '@types/node' , '@types/react-redux' , '@types/react @types/react-dom' , '@types/react-router @types/react-router-dom' , '@types/jest' ]
16+ } ] ;
17+ module . exports . installOption = [ {
18+ type : 'list' ,
19+ name : 'decision' ,
20+ message : 'Would you like to Install or Uninstall?' ,
21+ choices : [ 'Install' , 'Uninstall' ]
22+ } ] ; // Add new package Yes/No
5423
55- module . exports . addPackage = [
56- {
57- type : 'input' ,
58- name : 'packageAdd' ,
59- message : 'Would you like to add a package? (Y/N)'
60- }
61- ] // Input name for Install Folder
24+ module . exports . addPackage = [ {
25+ type : 'input' ,
26+ name : 'packageAdd' ,
27+ message : "Would you like to add a package? (Y/N)"
28+ } ] ; // Input name for Install Folder
6229
63- module . exports . installFolder = [
64- {
65- type : 'input' ,
66- name : 'folderName' ,
67- message : 'Please name your project folder '
68- } // Concise option menu
69- ] // Input name when creating new components for React project
30+ module . exports . installFolder = [ {
31+ type : 'input' ,
32+ name : 'folderName' ,
33+ message : 'Please name your project folder '
34+ } // Concise option menu
35+ ] ; // Input name when creating new components for React project
7036
71- module . exports . componentName = [
72- {
73- type : 'input' ,
74- name : 'componentName' ,
75- message :
76- 'Please enter the file name of the component you would like to create: '
77- }
78- ] // React Components selection: Functional/Class
37+ module . exports . componentName = [ {
38+ type : 'input' ,
39+ name : 'componentName' ,
40+ message : 'Please enter the file name of the component you would like to create: '
41+ } ] ; // React Components selection: Functional/Class
7942
80- module . exports . reactComponents = [
81- {
82- type : 'list' ,
83- name : 'component' ,
84- message : 'Function or Class Component?' ,
85- choices : [ 'function' , 'class' ]
86- }
87- ] // Styling Packages
43+ module . exports . reactComponents = [ {
44+ type : 'list' ,
45+ name : 'component' ,
46+ message : 'Function or Class Component?' ,
47+ choices : [ 'function' , 'class' ]
48+ } ] ; // Styling Packages
8849
89- module . exports . stylingPackages = [
90- {
91- type : 'list' ,
92- name : 'stylingTool' ,
93- message : 'Please select the Styling Package to add to your project: ' ,
94- choices : [ 'StyledComponents' , 'NodeSass' ]
95- }
96- ] // React State Management tools: More options soon! ('Unstated', Easy-Peasy')
50+ module . exports . stylingPackages = [ {
51+ type : 'list' ,
52+ name : 'stylingTool' ,
53+ message : 'Please select the Styling Package to add to your project: ' ,
54+ choices : [ 'StyledComponents' , 'NodeSass' ]
55+ } ] ; // React State Management tools: More options soon! ('Unstated', Easy-Peasy')
9756
98- module . exports . stateManagement = [
99- {
100- type : 'list' ,
101- name : 'state' ,
102- message :
103- 'Please select the tool to add to your project for state management: ' ,
104- choices : [ 'Redux' , 'Unstated' , 'Redux-Thunk' ]
105- }
106- ] // Unstated options
57+ module . exports . stateManagement = [ {
58+ type : 'list' ,
59+ name : 'state' ,
60+ message : 'Please select the tool to add to your project for state management: ' ,
61+ choices : [ 'Redux' , 'Unstated' , 'Redux-Thunk' ]
62+ } ] ; // Unstated options
10763
108- module . exports . unstatedOptions = [
109- {
110- type : 'list' ,
111- name : 'state' ,
112- message :
113- 'Please select the which version of Unstated you would like to add to your project: ' ,
114- choices : [ 'Unstated' , 'Unstated-next' ]
115- }
116- ] // TypeScript and Packages
64+ module . exports . unstatedOptions = [ {
65+ type : 'list' ,
66+ name : 'state' ,
67+ message : 'Please select the which version of Unstated you would like to add to your project: ' ,
68+ choices : [ 'Unstated' , 'Unstated-next' ]
69+ } ] ; // TypeScript and Packages
11770
118- module . exports . typescriptPackages = [
119- {
120- type : 'list' ,
121- name : 'typescriptPackage' ,
122- message : 'Please select the TypeScript module to add to your project: ' ,
123- choices : [
124- 'CustomInstall' ,
125- 'TypeScript' ,
126- '@types/node' ,
127- '@types/react @types/react-dom' ,
128- '@types/react-router @types/react-router-dom' ,
129- '@types/react-redux' ,
130- '@types/jest'
131- ]
132- }
133- ] // Package Manager Options
71+ module . exports . typescriptPackages = [ {
72+ type : 'list' ,
73+ name : 'typescriptPackage' ,
74+ message : 'Please select the TypeScript module to add to your project: ' ,
75+ choices : [ 'CustomInstall' , 'TypeScript' , '@types/node' , '@types/react @types/react-dom' , '@types/react-router @types/react-router-dom' , '@types/react-redux' , '@types/jest' ]
76+ } ] ;
77+ module . exports . accesibilityPackages = [ {
78+ type : 'list' ,
79+ name : 'access' ,
80+ message : 'Please select the accesibility package to add to your project: ' ,
81+ choices : [ 'Reacta11y' , 'Reactaxe' ]
82+ } ] ; // Package Manager Options
13483
135- module . exports . YarnOrNpm = [
136- {
137- type : 'list' ,
138- name : 'packageManager' ,
139- message : 'Would you like to install using Yarn or NPM?' ,
140- choices : [ 'Yarn' , 'NPM' ]
141- }
142- ]
84+ module . exports . YarnOrNpm = [ {
85+ type : 'list' ,
86+ name : 'packageManager' ,
87+ message : 'Would you like to install using Yarn or NPM?' ,
88+ choices : [ 'Yarn' , 'NPM' ]
89+ } ] ;
0 commit comments