| RxJS 4 | RxJS 5 |
|---|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @NgModule({ | |
| bootstrap: [TestComponent], | |
| }) | |
| export class TestModule {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div (mouseover)="load = true">Hover to load TestModule</div> | |
| <lazy-af *ngIf="load" moduleName="src/app/test/test.module#TestModule"></lazy-af> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @NgModule({ | |
| imports: [LazyModule], | |
| }) | |
| export class AppModule {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "options": { | |
| ... | |
| "lazyModules": [ "src/app/test/test.module" ] | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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!'; |
NewerOlder