Created
March 19, 2019 15:52
-
-
Save anthonyLukes/98d4e41818b2450f93a7c93529c4f384 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('fs'); | |
const prependFile = require('prepend-file'); | |
const files = [ | |
'lib/Components/Cells/WorkOrderCondition.jsx', | |
'lib/Components/Construction/DataTable/TableFooter.jsx', | |
'lib/Components/Construction/NotificationBand/Action.jsx', | |
'lib/Components/Construction/ScrollableNav/ArrowButton.jsx', | |
'lib/Components/Experiments/WorkOrderCreate/ClientDocuments.jsx', | |
'lib/Components/Feature/BlockRatingsList.jsx', | |
'lib/Components/Feature/Campaigns/CampaignList.jsx', | |
'lib/Components/Feature/Company/AddCoverageTiers.jsx', | |
'lib/Components/Feature/CounterOffer/ExpenseForm.jsx', | |
'lib/Components/Feature/EditNetworkSettings.jsx', | |
'lib/Components/Feature/Globals/ReviewDeliverables/ReviewDeliverables.jsx', | |
'lib/Components/Feature/Integrations/Directional/index.jsx', | |
'lib/Components/Feature/List/ListMasthead/ListMastheadIcon.jsx', | |
'lib/Components/Feature/Navigation/Create/CreateMd/CreateMd.jsx', | |
'lib/Components/Feature/Navigation/Hamburger/HamburgerIcon/HamburgerIcon.jsx', | |
'lib/Components/Feature/Navigation/IconBubble/IconBubble.jsx', | |
'lib/Components/Feature/Navigation/LightMenu/LightMenuItem.jsx', | |
'lib/Components/Feature/Navigation/NavActionMenu/MainNavActionMenu.jsx', | |
'lib/Components/Feature/Navigation/Search/SearchScreenMd.jsx', | |
'lib/Components/Feature/Navigation/User/User.jsx', | |
'lib/Components/Feature/Screenings/LearnMore.jsx', | |
'lib/Components/Feature/SkillSet/TermList.jsx', | |
'lib/Components/Feature/Talent/PoolList.jsx', | |
'lib/Components/Feature/User/EditPreferred.jsx', | |
'lib/Components/Feature/WorkOrder/DeliverablesMultisite/DeliverablesMultisiteThumb.jsx', | |
'lib/Components/Feature/WorkOrder/Description.jsx', | |
'lib/Components/Feature/WorkOrder/LocationMultiSite.jsx', | |
'lib/Components/Feature/WorkOrder/Overview.jsx', | |
'lib/Components/Navigation/HeaderSearch.jsx', | |
'lib/Components/Navigation/Top/Top.jsx', | |
]; | |
files.forEach((file) => { | |
prependFile(file, '/* eslint-disable react/button-has-type */\n', function (err) { | |
if (err) { | |
// Error | |
} | |
// Success | |
console.log('The "data to prepend" was prepended to file!'); | |
}); | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment