-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhygen-bash.sh
executable file
·131 lines (128 loc) · 2.19 KB
/
hygen-bash.sh
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
#!/usr/bin/env bash
## TODO: read this array from folder structure
declare -a arr=(
"AppBar"
"Avatar"
"Backdrop"
"Badge"
"BottomNavigation"
"BottomNavigationAction"
"Box"
"Breadcrumbs"
"Button"
"ButtonBase"
"ButtonGroup"
"Card"
"CardActionArea"
"CardActions"
"CardContent"
"CardHeader"
"CardMedia"
"Checkbox"
"Chip"
"CircularProgress"
"ClickAwayListener"
"Collapse"
"Container"
"CssBaseline"
"Dialog"
"DialogActions"
"DialogContent"
"DialogContentText"
"DialogTitle"
"Divider"
"Drawer"
"ExpansionPanel"
"ExpansionPanelActions"
"ExpansionPanelDetails"
"ExpansionPanelSummary"
"Fab"
"Fade"
"FilledInput"
"FormControl"
"FormControlLabel"
"FormGroup"
"FormHelperText"
"FormLabel"
"Grid"
"GridList"
"GridListTile"
"GridListTileBar"
"Grow"
"Hidden"
"Icon"
"IconButton"
"Input"
"InputAdornment"
"InputBase"
"InputLabel"
"LinearProgress"
"Link"
"List"
"ListItem"
"ListItemAvatar"
"ListItemIcon"
"ListItemSecondaryAction"
"ListItemText"
"ListSubheader"
"Menu"
"MenuItem"
"MenuList"
"MobileStepper"
"Modal"
"NativeSelect"
"NoSsr"
"OutlinedInput"
"Paper"
"Popover"
"Popper"
"Portal"
"Radio"
"RadioGroup"
"RootRef"
"Select"
"Slide"
"Slider"
"Snackbar"
"SnackbarContent"
"Step"
"StepButton"
"StepConnector"
"StepContent"
"StepIcon"
"StepLabel"
"Stepper"
"SvgIcon"
"SwipeableDrawer"
"Switch"
"Tab"
"Table"
"TableBody"
"TableCell"
"TableContainer"
"TableFooter"
"TableHead"
"TablePagination"
"TableRow"
"TableSortLabel"
"Tabs"
"TabScrollButton"
"TextField"
"TextareaAutosize"
"Toolbar"
"Tooltip"
"Typography"
# "Unstable_TrapFocus"
"useMediaQuery"
"useScrollTrigger"
"withMobileDialog"
"withWidth"
"Zoom"
)
## Loop through the above array
for i in "${arr[@]}"
do
echo "$i"
yarn hygen ui new --name "$i"
done
# NOTE: You can access them using echo "${arr[0]}", "${arr[1]}" also