/nx-project

Project using NX

Primary LanguageTypeScript

simples dev container

Instalar dependencias globais

npm install -g @nrwl/cli
npm install -g eslint @angular/cli @nrwl/cli;
npm install; npm audit fix; npm audit fix --force;

Criar uma library

nx g @nrwl/angular:lib --directory=ng models --dry-run
nx generate library assets --directory=shared --tags="scope:shared,type:assets" --style=scss

Criar um module

nx g @nrwl/angular:module (pasta-opcional)/nome-do-modulo --project library-onde-sera-criado  --dry-run
nx g @nrwl/angular:module  layoutOne --project ng-shared  --dry-run
nx g @nrwl/angular:component layoutOne --project ng-shared  --dry-run

Criar um componente

nx g @nrwl/angular:component nome-componente --project library-onde-sera-criado  --dry-run

rodando a app de dentro do container do VSCode

nx serve --host 0.0.0.0 --disableHostCheck --disable-host-check --port 4300 --project apps-sig-app
git add . ; git commit -m "Rodando via VSCode Container :-)"; git push

Verificar o que sua alteração impactou no projetop

nx affected:dep-graph --host 0.0.0.0

Verificar dependencias do projeto

nx dep-graph --host 0.0.0.0 --port 4212

BUILD

node --max_old_space_size=4096  /usr/local/bin/nx build --prod --named-chunks=true --vendor-chunk=true --build-optimizer --progress  --project=apps-sig-app