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
| var fs = require('fs')
const components = ['Accordion', 'ActionSheet', 'ActivityIndicator', 'Badge', 'Button', 'Calendar', 'Card', 'Carousel', 'Checkbox', 'DatePicker', 'DatePickerView', 'Drawer', 'Flex', 'Grid', 'Icon', 'ImagePicker', 'InputItem', 'List', 'ListView', 'LocaleProvider', 'Menu', 'Modal', 'NavBar', 'NoticeBar', 'Pagination', 'Picker', 'PickerView', 'Popover', 'Progress', 'PullToRefresh', 'Radio', 'Range', 'Result', 'SearchBar', 'SegmentedControl', 'Slider', 'Stepper', 'Steps', 'SwipeAction', 'Switch', 'TabBar', 'Tabs', 'Tag', 'TextareaItem', 'Toast', 'WhiteSpace', 'WingBlank']
components.forEach(function(e){ fs.mkdir(e,0777,function(err){ if(err){ console.log(err) } else { console.log(e + 'is created') } }) })
components.forEach(function(e){ fs.appendFile(e+'/README.md','',function(err){ if(err){ console.log(err) } else { console.log(e + '/README.md is created') } }) })
components.forEach(function(e){ fs.appendFile(e+'/index.js','',function(err){ if(err){ console.log(err) } else { console.log(e + '/index.js is created') } }) })
components.forEach(function(e) { fs.appendFile(e + '/' + e + '.vue', '', function(err) { if (err) { console.log(err) } else { console.log(e + '/' + e + '.vue is created') } }) })
|