perf-lens
Version:
AI-powered frontend performance optimizer
20 lines (19 loc) • 610 B
JavaScript
import { config } from 'dotenv';
config();
import { Command } from 'commander';
import { createConfigCommand, createScanCommand } from './cli/commands/index.js';
export { loadConfig } from './utils/config.js';
const program = new Command();
program
.name('perf-lens')
.description('Performance analysis tool combining Lighthouse audits with static code analysis')
.version('1.1.0');
// Add commands
program.addCommand(createConfigCommand());
program.addCommand(createScanCommand());
// Default command
program.action(() => {
program.help();
});
program.parse(process.argv);