feat: initial commit

This commit is contained in:
Carlos
2024-08-12 22:57:35 -04:00
commit 6f68ae8259
13140 changed files with 1104801 additions and 0 deletions

25
pre-files/check-format.js Normal file
View File

@@ -0,0 +1,25 @@
const { exec } = require('child_process');
const { promisify } = require('util');
const execPromise = promisify(exec);
async function run() {
// Dynamically import the ES Module
const ora = (await import('ora')).default;
const spinner = ora('✨ Checking code formatting...').start();
try {
const { stdout } = await execPromise(
'npm run pretty-quick --check . --config .prettierrc'
);
spinner.succeed('✅ Code formatting check passed.');
console.log(stdout);
} catch (error) {
spinner.fail('❌ Code formatting check failed.');
console.error(error.message);
process.exit(1);
}
}
run();