Skip to content

Instantly share code, notes, and snippets.

View gabynevada's full-sized avatar

Elvis Nieves gabynevada

View GitHub Profile
@eneajaho
eneajaho / analyze-components.js
Created March 25, 2025 20:45
Check components on project if they are OnPush
#!/usr/bin/env node
const fs = require('fs');
const path = require('path');
const ts = require('typescript'); // Requires 'npm install typescript'
// --- Configuration ---
const DEFAULT_PROJECT_PATH = '.'; // Default to current directory
const EXCLUDED_DIRS = ['node_modules', 'dist', '.angular', '.vscode', '.git']; // Directories to skip
const COMPONENT_FILE_SUFFIX = '.component.ts';