Skip to main content
Glama

Angular Toolkit MCP

by push-based
nx-advanced-profile.bin.js1.28 kB
import { mkdirSync, writeFileSync } from 'node:fs'; import { parseArgs } from 'node:util'; import { nxRunWithPerfLogging } from './nx-advanced-profile.js'; const { values } = parseArgs({ options: { args: { type: 'string', }, verbose: { type: 'boolean', short: 'v', }, noPatch: { type: 'boolean', short: 'p', }, outDir: { type: 'string', short: 'd', }, outFile: { type: 'string', short: 'f', }, }, }); const { args = ['show', 'projects'].join(','), verbose, noPatch, outDir = '.nx-profiling', outFile = `nx-${args.split(',').join('-')}.${Date.now()}.profile.json`, } = values; // Run the function with arguments and write the collected timings to a JSON file. nxRunWithPerfLogging(args.split(','), { verbose, noPatch, onData: (perfProfileEvent) => { // console.log(perfProfileEvent); }, beforeExit: (profile) => { // @TODO figure out why profile directly does not show the flames but profile.traceEvents does const profileStdout = JSON.stringify(profile.traceEvents, null, 2); mkdirSync(outDir, { recursive: true }); writeFileSync(`${outDir}/${outFile}`, profileStdout); if (verbose) { console.log(profileStdout); } }, });

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/push-based/angular-toolkit-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server