/** * Bud file for fragment */ 'use strict' const { Templates } = require('apeman-asset-templates') const { spinalcase, snakecase } = require('stringcase') const path = require('path') const fragments = [ 'Main', 'Toast', 'aside/Aside', 'ad/AmazonAd', 'stack/Stack', 'stack/StackView', 'cards/Card', 'cards/ThreadCard', 'cards/ThreadCardCollection', 'cards/PostCard', 'dev/DevKit', 'blockers/CommentBlocker', 'blockers/PostBannedBlocker', 'blockers/PostDeletedBlocker', 'header/Header', 'header/HeaderNotice', 'header/HeaderDropdown', 'header/HeaderMenu', 'header/HeaderLogo', 'header/HeaderTab', 'footer/Footer', 'fields/TextField', 'fields/ColorSelectField', 'fields/PasswordField', 'fields/SubmitField', 'fields/SelectField', 'fields/UploadField', 'fields/ValueField', 'forms/LangForm', 'forms/AccountProfileForm', 'forms/AccountPasswordForm', 'forms/AccountEmailForm', 'forms/SignupForm', 'forms/SigninForm', 'forms/ResignLeadForm', 'forms/ResignReasonForm', 'forms/RecoverSendForm', 'forms/RecoverResetForm', 'forms/ThreadForm', 'forms/PostForm', 'forms/ReportForm', 'forms/CommentForm', 'forms/TagForm', 'forms/BanForm', 'forms/ShareForm', 'forms/NichanCrawlForm', 'forms/CrawlApplyForm', 'labels/IconLabel', 'labels/TagLabel', 'lists/PostList', 'lists/PostListItem', 'lists/TagList', 'lists/TagListItem', 'lists/ThreadList', 'lists/ThreadListItem', 'lists/CommentList', 'lists/CommentListItem', 'lists/NewsList', 'lists/NewsListItem', 'lists/ReportList', 'lists/ReportListItem', 'links/Link', 'links/TagLink', 'links/ThreadLink', 'links/OtherViewLink', 'images/ProfileImage', 'images/ThreadImage', 'buttons/PostStarButton', 'buttons/PostCommentsButton', 'buttons/PostShareButton', 'buttons/PostReportButton', 'buttons/PostBanButton', 'buttons/PostDestroyButton', 'buttons/PostThreadButton', 'buttons/EllipsisButton', 'buttons/TwitterButton', 'buttons/FacebookButton', 'buttons/HatebuButton', 'selects/ColorSelect', 'panels/ThreadPanel', 'panels/PostPanel', 'styles/ThreadDetailStyle', 'styles/ThreadCardStyle', 'styles/PostCardStyle', 'styles/ThreadListItemStyle', 'styles/PostDetailStyle', 'scripts/TwitterScript', 'scripts/FacebookScript', 'scripts/HatebuScript', 'tips/ThreadTip', 'jumbotron/LandingJumbotron' ] module.exports = fragments.map((name) => ({ force: false, mode: '644', mkdirp: true, tmpl: Templates.webUiFragment, path: `${path.dirname(name)}/${snakecase(path.basename(name))}.jsx`, data: { name: path.basename(name) } })) if (!module.parent) { require('coz').render(__filename) }