Skip to content

Commit

Permalink
docs: Updated sponsors section
Browse files Browse the repository at this point in the history
  • Loading branch information
m2a2x committed Jul 1, 2024
1 parent d7268bd commit 786bfc5
Show file tree
Hide file tree
Showing 11 changed files with 69 additions and 38 deletions.
2 changes: 1 addition & 1 deletion packages/angular
Submodule angular updated 1 files
+17 −0 README.md
2 changes: 1 addition & 1 deletion packages/react
Submodule react updated 1 files
+17 −0 README.md
2 changes: 1 addition & 1 deletion packages/svelte
Submodule svelte updated 1 files
+17 −0 README.md
2 changes: 1 addition & 1 deletion packages/vue2
Submodule vue2 updated 1 files
+17 −0 README.md
2 changes: 1 addition & 1 deletion packages/vue3
Submodule vue3 updated 1 files
+17 −0 README.md
17 changes: 17 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,23 @@ This version features new component loading, ESM modules, Bootstrap support, and



## Sponsors

We would like to extend our heartfelt gratitude to our sponsor for their generous support. Their contributions help us maintain and develop RevoGrid, ensuring continuous improvements and updates. If you are using RevoGrid in your project and would like to support its development, consider becoming a sponsor.

### Our Sponsors

[![Altruistiq](https://cdn.prod.website-files.com/62cd69e08130a1a33f5ef900/6310b4d500e971695db5e9c3_615b5db69ce8931a276e5ed2_Social_Icons_AQ_3_32x32.png)](https://altruistiq.com)


### Become a Sponsor

If you or your company would like to support the ongoing development of RevoGrid, please consider becoming a sponsor. Your support will help us continue to improve the project and provide the best possible tool for the community.

[![Sponsor Us](https://img.shields.io/badge/Sponsor%20Us-%F0%9F%92%96-brightgreen)](https://opencollective.com/revogrid)

Thank you for supporting RevoGrid! 🙏

## Contributing

We invite you to join our vibrant community and contribute to the growth and success of RevoGrid. By getting involved, you'll have the opportunity to enhance your skills, gain valuable experience, and make a significant impact on an innovative project.
Expand Down
16 changes: 16 additions & 0 deletions readme/sponsors.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
## Sponsors

We would like to extend our heartfelt gratitude to our sponsor for their generous support. Their contributions help us maintain and develop RevoGrid, ensuring continuous improvements and updates. If you are using RevoGrid in your project and would like to support its development, consider becoming a sponsor.

### Our Sponsors

[![Altruistiq](https://cdn.prod.website-files.com/62cd69e08130a1a33f5ef900/6310b4d500e971695db5e9c3_615b5db69ce8931a276e5ed2_Social_Icons_AQ_3_32x32.png)](https://altruistiq.com)


### Become a Sponsor

If you or your company would like to support the ongoing development of RevoGrid, please consider becoming a sponsor. Your support will help us continue to improve the project and provide the best possible tool for the community.

[![Sponsor Us](https://img.shields.io/badge/Sponsor%20Us-%F0%9F%92%96-brightgreen)](https://opencollective.com/revogrid)

Thank you for supporting RevoGrid! 🙏
2 changes: 1 addition & 1 deletion scripts/generate_readme.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function main() {
break;
}

files.push('version.md', 'contribute.md', 'LICENSE.md');
files.push('version.md', 'sponsors.md', 'contribute.md', 'LICENSE.md');
generateReadme(files, output);
});
}
Expand Down
29 changes: 29 additions & 0 deletions scripts/package-commit.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import { execa } from 'execa';
import chalk from 'chalk';
import { packageDirs } from './package-dirs.mjs';

async function commitAndPushChanges(packageDir) {
try {

// Add changes
await execa('git', ['add', '.'], { cwd: packageDir, stdio: 'inherit' });

// Commit changes
await execa('git', ['commit', '-m', `chore(update): packages synced.`], { cwd: packageDir, stdio: 'inherit' });

// Push changes
await execa('git', ['push'], { cwd: packageDir, stdio: 'inherit' });

console.log(chalk.green(`Successfully committed and pushed version updates for ${packageDir} to GitHub`));
} catch (error) {
console.error(chalk.red(`Failed to commit and push changes for ${packageDir}`));
console.error(error);
}
}

(async () => {
for (const packageDir of packageDirs) {
await commitAndPushChanges(packageDir);
}
console.log(chalk.blue('All changes committed and pushed.'));
})();
31 changes: 0 additions & 31 deletions scripts/package-version.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -32,41 +32,10 @@ async function updateVersionInPackage(packageDir) {
}
}

async function commitAndPushChanges(packageDir, newVersion) {
const githubToken = process.env.GITHUB_TOKEN;

if (!githubToken) {
console.error(chalk.red('GitHub token is not set'));
process.exit(1);
}

try {
// Configure Git to use the GitHub token
await execa('git', ['config', '--global', 'credential.helper', 'store'], { cwd: packageDir });
await execa('git', ['config', '--global', 'user.name', '"github-actions[bot]"'], { cwd: packageDir });
await execa('git', ['config', '--global', 'user.email', '"github-actions[bot]@users.noreply.github.com"'], { cwd: packageDir });
await execa('git', ['config', '--global', `url.https://${githubToken}:x-oauth-basic@github.com/.insteadOf`, 'https://github.com/'], { cwd: packageDir });

// Add changes
await execa('git', ['add', '.'], { cwd: packageDir, stdio: 'inherit' });

// Commit changes
await execa('git', ['commit', '-m', `chore(release): update versions to ${newVersion}`], { cwd: packageDir, stdio: 'inherit' });

// Push changes
await execa('git', ['push'], { cwd: packageDir, stdio: 'inherit' });

console.log(chalk.green(`Successfully committed and pushed version updates for ${packageDir} to GitHub`));
} catch (error) {
console.error(chalk.red(`Failed to commit and push changes for ${packageDir}`));
console.error(error);
}
}

(async () => {
for (const packageDir of packageDirs) {
await updateVersionInPackage(packageDir);
await commitAndPushChanges(packageDir, newVersion);
}
console.log(chalk.blue('All versions updated.'));
})();

0 comments on commit 786bfc5

Please sign in to comment.