diff --git a/README.md b/README.md index 1d2ea701c..ab0c51018 100644 --- a/README.md +++ b/README.md @@ -88,7 +88,16 @@ Thank you to all the people who contributed to Lucide! DigitalOcean Referral Badge +[//]: <> (Open Collective backers) ### Awesome backers 🍺 -pdfme sponsor badge -Fina Money sponsor badge +pdfme – Open-source PDF generation library built with TypeScript and React. +Pax Historia – An alternate history sandbox game + +### Backers ☕ + +Fina Money – Modular Finance Tracker + +### Other contributors 💸 + +You can find all our past and non-recurring financial contributors at [our Open Collective page](https://opencollective.com/lucide-icons). diff --git a/docs/public/sponsors/paxhistoria.svg b/docs/public/sponsors/paxhistoria.svg new file mode 100644 index 000000000..8ad7999ad --- /dev/null +++ b/docs/public/sponsors/paxhistoria.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/package.json b/package.json index 31b44d1fe..dc10fd703 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,7 @@ "addjsons": "node ./scripts/addMissingIconJsonFiles.mts", "checkIcons": "node ./scripts/checkIconsAndCategories.mts", "generate:changelog": "node ./scripts/generateChangelog.mts", + "generate:backers": "node scripts/updateOpenCollectiveBackers.mts", "generate:contributors": "node ./scripts/updateContributors.mts icons/*.svg", "generate:nextJSAliases": "node ./scripts/generateNextJSAliases.mts", "suggest:tags": "node ./scripts/suggestTags.mts", diff --git a/packages/astro/README.md b/packages/astro/README.md index e5dd39c64..ee104b6cb 100644 --- a/packages/astro/README.md +++ b/packages/astro/README.md @@ -68,7 +68,16 @@ Lucide is licensed under the ISC license. See [LICENSE](https://lucide.dev/licen DigitalOcean Referral Badge +[//]: <> (Open Collective backers) ### Awesome backers 🍺 -Scipress sponsor badge -pdfme sponsor badge +pdfme – Open-source PDF generation library built with TypeScript and React. +Pax Historia – An alternate history sandbox game + +### Backers ☕ + +Fina Money – Modular Finance Tracker + +### Other contributors 💸 + +You can find all our past and non-recurring financial contributors at [our Open Collective page](https://opencollective.com/lucide-icons). diff --git a/packages/lucide-angular/README.md b/packages/lucide-angular/README.md index 729588e2d..412ca7614 100644 --- a/packages/lucide-angular/README.md +++ b/packages/lucide-angular/README.md @@ -67,7 +67,16 @@ Lucide is licensed under the ISC license. See [LICENSE](https://lucide.dev/licen DigitalOcean Referral Badge +[//]: <> (Open Collective backers) ### Awesome backers 🍺 -Scipress sponsor badge -pdfme sponsor badge +pdfme – Open-source PDF generation library built with TypeScript and React. +Pax Historia – An alternate history sandbox game + +### Backers ☕ + +Fina Money – Modular Finance Tracker + +### Other contributors 💸 + +You can find all our past and non-recurring financial contributors at [our Open Collective page](https://opencollective.com/lucide-icons). diff --git a/packages/lucide-preact/README.md b/packages/lucide-preact/README.md index 0bca38c27..caaf88c9f 100644 --- a/packages/lucide-preact/README.md +++ b/packages/lucide-preact/README.md @@ -67,7 +67,16 @@ Lucide is licensed under the ISC license. See [LICENSE](https://lucide.dev/licen DigitalOcean Referral Badge +[//]: <> (Open Collective backers) ### Awesome backers 🍺 -Scipress sponsor badge -pdfme sponsor badge +pdfme – Open-source PDF generation library built with TypeScript and React. +Pax Historia – An alternate history sandbox game + +### Backers ☕ + +Fina Money – Modular Finance Tracker + +### Other contributors 💸 + +You can find all our past and non-recurring financial contributors at [our Open Collective page](https://opencollective.com/lucide-icons). diff --git a/packages/lucide-react-native/README.md b/packages/lucide-react-native/README.md index eef0a6322..33b43966d 100644 --- a/packages/lucide-react-native/README.md +++ b/packages/lucide-react-native/README.md @@ -67,7 +67,16 @@ Lucide is licensed under the ISC license. See [LICENSE](https://lucide.dev/licen DigitalOcean Referral Badge +[//]: <> (Open Collective backers) ### Awesome backers 🍺 -Scipress sponsor badge -pdfme sponsor badge +pdfme – Open-source PDF generation library built with TypeScript and React. +Pax Historia – An alternate history sandbox game + +### Backers ☕ + +Fina Money – Modular Finance Tracker + +### Other contributors 💸 + +You can find all our past and non-recurring financial contributors at [our Open Collective page](https://opencollective.com/lucide-icons). diff --git a/packages/lucide-react/README.md b/packages/lucide-react/README.md index 8d02efe96..b0a625a3f 100644 --- a/packages/lucide-react/README.md +++ b/packages/lucide-react/README.md @@ -67,7 +67,16 @@ Lucide is licensed under the ISC license. See [LICENSE](https://lucide.dev/licen DigitalOcean Referral Badge +[//]: <> (Open Collective backers) ### Awesome backers 🍺 -Scipress sponsor badge -pdfme sponsor badge +pdfme – Open-source PDF generation library built with TypeScript and React. +Pax Historia – An alternate history sandbox game + +### Backers ☕ + +Fina Money – Modular Finance Tracker + +### Other contributors 💸 + +You can find all our past and non-recurring financial contributors at [our Open Collective page](https://opencollective.com/lucide-icons). diff --git a/packages/lucide-solid/README.md b/packages/lucide-solid/README.md index 0c9a8a62f..9cbd6cf5e 100644 --- a/packages/lucide-solid/README.md +++ b/packages/lucide-solid/README.md @@ -67,7 +67,16 @@ Lucide is licensed under the ISC license. See [LICENSE](https://lucide.dev/licen DigitalOcean Referral Badge +[//]: <> (Open Collective backers) ### Awesome backers 🍺 -Scipress sponsor badge -pdfme sponsor badge +pdfme – Open-source PDF generation library built with TypeScript and React. +Pax Historia – An alternate history sandbox game + +### Backers ☕ + +Fina Money – Modular Finance Tracker + +### Other contributors 💸 + +You can find all our past and non-recurring financial contributors at [our Open Collective page](https://opencollective.com/lucide-icons). diff --git a/packages/lucide-static/README.md b/packages/lucide-static/README.md index 41f3434d2..9abb24382 100644 --- a/packages/lucide-static/README.md +++ b/packages/lucide-static/README.md @@ -81,7 +81,16 @@ Lucide is licensed under the ISC license. See [LICENSE](https://lucide.dev/licen DigitalOcean Referral Badge +[//]: <> (Open Collective backers) ### Awesome backers 🍺 -Scipress sponsor badge -pdfme sponsor badge +pdfme – Open-source PDF generation library built with TypeScript and React. +Pax Historia – An alternate history sandbox game + +### Backers ☕ + +Fina Money – Modular Finance Tracker + +### Other contributors 💸 + +You can find all our past and non-recurring financial contributors at [our Open Collective page](https://opencollective.com/lucide-icons). diff --git a/packages/lucide-svelte/README.md b/packages/lucide-svelte/README.md index 6ca96ea77..d9d6f79b5 100644 --- a/packages/lucide-svelte/README.md +++ b/packages/lucide-svelte/README.md @@ -67,7 +67,16 @@ Lucide is licensed under the ISC license. See [LICENSE](https://lucide.dev/licen DigitalOcean Referral Badge +[//]: <> (Open Collective backers) ### Awesome backers 🍺 -Scipress sponsor badge -pdfme sponsor badge +pdfme – Open-source PDF generation library built with TypeScript and React. +Pax Historia – An alternate history sandbox game + +### Backers ☕ + +Fina Money – Modular Finance Tracker + +### Other contributors 💸 + +You can find all our past and non-recurring financial contributors at [our Open Collective page](https://opencollective.com/lucide-icons). diff --git a/packages/lucide-vue-next/README.md b/packages/lucide-vue-next/README.md index ad4c3e7ed..782cd7b44 100644 --- a/packages/lucide-vue-next/README.md +++ b/packages/lucide-vue-next/README.md @@ -67,7 +67,16 @@ Lucide is licensed under the ISC license. See [LICENSE](https://lucide.dev/licen DigitalOcean Referral Badge +[//]: <> (Open Collective backers) ### Awesome backers 🍺 -Scipress sponsor badge -pdfme sponsor badge +pdfme – Open-source PDF generation library built with TypeScript and React. +Pax Historia – An alternate history sandbox game + +### Backers ☕ + +Fina Money – Modular Finance Tracker + +### Other contributors 💸 + +You can find all our past and non-recurring financial contributors at [our Open Collective page](https://opencollective.com/lucide-icons). diff --git a/packages/lucide-vue/README.md b/packages/lucide-vue/README.md index 447029d15..4a117bfa7 100644 --- a/packages/lucide-vue/README.md +++ b/packages/lucide-vue/README.md @@ -71,7 +71,16 @@ Lucide is licensed under the ISC license. See [LICENSE](https://lucide.dev/licen DigitalOcean Referral Badge +[//]: <> (Open Collective backers) ### Awesome backers 🍺 -Scipress sponsor badge -pdfme sponsor badge +pdfme – Open-source PDF generation library built with TypeScript and React. +Pax Historia – An alternate history sandbox game + +### Backers ☕ + +Fina Money – Modular Finance Tracker + +### Other contributors 💸 + +You can find all our past and non-recurring financial contributors at [our Open Collective page](https://opencollective.com/lucide-icons). diff --git a/packages/lucide/README.md b/packages/lucide/README.md index d034cd2c1..9ace2f6ff 100644 --- a/packages/lucide/README.md +++ b/packages/lucide/README.md @@ -77,7 +77,16 @@ Lucide is licensed under the ISC license. See [LICENSE](https://lucide.dev/licen DigitalOcean Referral Badge +[//]: <> (Open Collective backers) ### Awesome backers 🍺 -Scipress sponsor badge -pdfme sponsor badge +pdfme – Open-source PDF generation library built with TypeScript and React. +Pax Historia – An alternate history sandbox game + +### Backers ☕ + +Fina Money – Modular Finance Tracker + +### Other contributors 💸 + +You can find all our past and non-recurring financial contributors at [our Open Collective page](https://opencollective.com/lucide-icons). diff --git a/packages/svelte/README.md b/packages/svelte/README.md index 806eb3fa1..42c2a6736 100644 --- a/packages/svelte/README.md +++ b/packages/svelte/README.md @@ -67,7 +67,16 @@ Lucide is licensed under the ISC license. See [LICENSE](https://lucide.dev/licen DigitalOcean Referral Badge +[//]: <> (Open Collective backers) ### Awesome backers 🍺 -Scipress sponsor badge -pdfme sponsor badge +pdfme – Open-source PDF generation library built with TypeScript and React. +Pax Historia – An alternate history sandbox game + +### Backers ☕ + +Fina Money – Modular Finance Tracker + +### Other contributors 💸 + +You can find all our past and non-recurring financial contributors at [our Open Collective page](https://opencollective.com/lucide-icons). diff --git a/scripts/updateOpenCollectiveBackers.mts b/scripts/updateOpenCollectiveBackers.mts new file mode 100644 index 000000000..f01b0fffd --- /dev/null +++ b/scripts/updateOpenCollectiveBackers.mts @@ -0,0 +1,34 @@ +import { readdirSync } from 'node:fs'; +import { join } from 'node:path'; +import { existsSync, readFileSync, writeFileSync } from 'fs'; + +function updateOpenCollectiveBackers() { + const packagesPath = join(import.meta.dirname, '../packages'); + const mainReadme = readFileSync(join(import.meta.dirname, '../README.md'), 'utf8'); + const awesomeRegex = /(\[\/\/]: <> \(Open Collective backers\).+)$/s; + const awesomeBlock = awesomeRegex.exec(mainReadme); + if (awesomeBlock?.[1]) { + const packageAwesomeBlock = awesomeBlock[1].replaceAll('src="docs/public/sponsors', 'src="https://lucide.dev/sponsors') + readdirSync(packagesPath).forEach((packagePath) => { + if (['lucide-figma', 'shared'].includes(packagePath) || packagePath.startsWith('.')) { + return; + } + const readmePath = join(packagesPath, packagePath, 'README.md'); + if (existsSync(readmePath)) { + const readmeContent = readFileSync(readmePath, 'utf8'); + if (awesomeRegex.test(readmeContent)) { + writeFileSync(readmePath, readmeContent.replace(awesomeRegex, packageAwesomeBlock)); + console.log(`Upgraded Awesome backers block in ${readmePath}`); + } else { + console.error(`Could not find Awesome backers block in ${readmePath}`) + } + } else { + console.warn(`No readme found at ${readmePath}`); + } + }) + } else { + console.error('Could not identify Awesome backers block') + } +} + +updateOpenCollectiveBackers();