Angular
Framework ActifFramework TypeScript complet par Google.
npm install -g webpack-bundle-analyzer && ng build --stats-json && npx webpack-bundle-analyzer dist/nom-projet/stats.json
Analyse la taille du bundle avec webpack-bundle-analyzer.
ng g c nom-composant --standalone
Génère un composant standalone sans NgModule.
ng generate component nom-composant
Génère un composant Angular avec ses fichiers associés.
ng serve --open
Lance le serveur et ouvre le navigateur automatiquement.
ng generate @angular/core:standalone
Migre automatiquement les composants vers le mode standalone.
ng g module nom-module --routing
Génère un module avec son fichier de routing.
ng generate @angular/core:control-flow
Migre les *ngIf/*ngFor vers la nouvelle syntaxe @if/@for (Angular 17+).
npm install -D tailwindcss postcss autoprefixer && npx tailwindcss init
Installe et initialise TailwindCSS dans le projet.
ng build --configuration=production
Build en spécifiant la configuration cible.
À propos
Framework TypeScript complet par Google.