Skip to content

Instantly share code, notes, and snippets.

View jorgeucano's full-sized avatar

Jorge Cano jorgeucano

View GitHub Profile
# Claude Code Setup Prompt
Copy and paste this in Claude Code at the root of your project:
---
```
I need you to analyze this project and generate the complete infrastructure to work efficiently with Claude Code following best practices. Do the following:
## 1. CLAUDE.md (project root)
Necesito que analices este proyecto y generes la infraestructura completa para trabajar eficientemente con Claude Code siguiendo las mejores prácticas. Hacé lo siguiente:
## 1. CLAUDE.md (raíz del proyecto)
Analizá el código, estructura, dependencias y patrones del proyecto. Generá un CLAUDE.md que incluya:
- Descripción del proyecto y su propósito de negocio
- Stack tecnológico y versiones principales
- Estructura de directorios con explicación de cada carpeta importante
- Convenciones de código (naming, patrones, arquitectura)
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// choose either `'stable'` for receiving highly polished,
// or `'canary'` for less polished but more frequent updates
updateChannel: 'stable',
@NgModule({
bootstrap: [TestComponent],
})
export class TestModule {}
<div (mouseover)="load = true">Hover to load TestModule</div>
<lazy-af *ngIf="load" moduleName="src/app/test/test.module#TestModule"></lazy-af>
@NgModule({
imports: [LazyModule],
})
export class AppModule {}
"options": {
...
"lazyModules": [ "src/app/test/test.module" ]
}
private mergeAllSnapshots(data: Array<any>) {
return combineLatest(...data)
.switchMap(allData => {
const combined = [];
combined.push([].concat(...allData));
return Observable.of(combined[0]);
}).map(actions => {
return actions.map(a => {
const data = a.payload.doc.data();
const id = a.payload.doc.id;
import { Component, OnInit, OnDestroy } from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent implements OnInit, OnDestroy {
title = 'app works!';
RxJS 4 RxJS 5