{"id":18609822,"url":"https://github.com/unlight/nx-workspace","last_synced_at":"2025-06-13T22:37:13.200Z","repository":{"id":138161117,"uuid":"353805870","full_name":"unlight/nx-workspace","owner":"unlight","description":"Create and develop Nx Workspace with nest preset","archived":false,"fork":false,"pushed_at":"2022-05-08T23:19:39.000Z","size":3863,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-27T01:25:44.763Z","etag":null,"topics":["nx"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/unlight.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-04-01T19:29:41.000Z","updated_at":"2022-08-06T17:44:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"d0b177e6-9058-422e-8602-083df350ffb4","html_url":"https://github.com/unlight/nx-workspace","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unlight%2Fnx-workspace","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unlight%2Fnx-workspace/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unlight%2Fnx-workspace/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unlight%2Fnx-workspace/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/unlight","download_url":"https://codeload.github.com/unlight/nx-workspace/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239400596,"owners_count":19632049,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["nx"],"created_at":"2024-11-07T03:07:22.117Z","updated_at":"2025-02-18T03:15:22.283Z","avatar_url":"https://github.com/unlight.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nx-workspace\n\n- Upgrade `nx migrate latest`\n- Run `nx.js run [project][:target][:configuration][options, ...]`\n- Generate app `nx generate @nrwl/node:application \u003cnode-app\u003e`\n- Rename `nx g @nrwl/workspace:mv --project api-test --destination api-spec`\n- Run `nx g @nrwl/react:app my-app` to generate an application\n- Run `nx g @nrwl/react:lib my-lib` to generate a library\n- Libraries are shareable across libraries and applications. They can be imported from `@nx-workspace/mylib`\n- Run `nx serve my-app` for a dev server. Navigate to http://localhost:4200/.\n  The app will automatically reload if you change any of the source files\n- Run `nx g @nrwl/react:component my-component --project=my-app` to generate a new component\n- Run `nx build my-app` to build the project. The build artifacts will be stored in the `dist/` directory\n  Use the `--prod` flag for a production build\n- Run `nx test my-app` to execute the unit tests via [Jest](https://jestjs.io)\n- Run `nx affected:test` to execute the unit tests affected by a change\n- Run `ng e2e my-app` to execute the end-to-end tests via [Cypress](https://www.cypress.io)\n- Run `nx affected:e2e` to execute the end-to-end tests affected by a change\n- Run `nx dep-graph` to see a diagram of the dependencies of your projects\n- General generate `nx generate [collection:][generator] [options, ...]`\n- Format `npm run format`\n- Remove project `nx g remove project`\n- Info about nx plugin `nx list @nrwl/react`\n- Generate UI lib `nx g @nrwl/react:lib ui`\n- Generate other something `nx g @nrwl/workspace:application`\n- Add a component `nx g @nrwl/react:component xyz --project ui`\n- Build production `nx run frontend:build --prod` or `nx run frontend:build:production`\n- Debug nx run `ndb node_modules/@nrwl/cli/bin/nx.js run frontend:build`\n- You need set env `NODE_ENV=development | production` when serve or build:production (nx does not do it)\n- Generate library `nx generate @nrwl/workspace:library`\n- Run test for all `nx run-many --all --target=test`\n- Run custom build cmd `nx run --verbose vite:build`\n\n## Resources\n\n- https://getpocket.com/my-list/tags/nx\n- Nx Documentation https://nx.dev\n- Community plugins https://nx.dev/community\n- https://www.youtube.com/watch?v=bvzXuAu7XHk Full Stack Type Safety with Angular, Nest, Nx, and Prisma https://github.com/chenkie/shirt-shop\n- [How to programmatically enforce boundaries between applications and libraries in an Nx monorepo](https://medium.com/showpad-engineering/how-to-programmatically-enforce-boundaries-between-applications-and-libraries-in-an-nx-monorepo-39bf8fbec6ba)\n- [How to organize and name applications and libraries in an Nx monorepo for immediate team-wide…](https://medium.com/showpad-engineering/how-to-organize-and-name-applications-and-libraries-in-an-nx-monorepo-for-immediate-team-wide-9876510dbe28)\n- Nx Workspaces Course https://www.youtube.com/watch?v=2mYLe9Kp9VM\u0026list=PLakNactNC1dH38AfqmwabvOszDmKriGco\u0026ab_channel=Nrwl-NarwhalTechnologiesInc.\n- https://nx.dev/latest/angular/executors/run-commands-builder\n- https://github.com/nrwl/nx/blob/master/packages/workspace/docs/run-commands-examples.md\n- https://nx.dev/latest/react/workspace/run-commands-executor\n- https://medium.com/angular-in-depth/the-shell-library-patterns-with-nx-and-monorepo-architectures-d7ec5713c8a6\n- https://github.com/briebug/cypress-schematic\n- https://nx.dev/latest/node/workspace/run-commands-executor\n- https://github.com/nhaancs/realworld-nx-nestjs-angular\n- https://github.com/wlucha/angular-nest-nx\n- https://github.com/Sairyss/full-stack-application-example\n\n## Todo\n\n- purgecss https://tailwindcss.com/docs/optimizing-for-production#removing-unused-css\n- integrate react-typescript-vite-app (custom command)\n- configure nx boundaries for workspace\n- configure eslint plugin boundraries eslint-plugin-boundaries\n- lefthook\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funlight%2Fnx-workspace","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funlight%2Fnx-workspace","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funlight%2Fnx-workspace/lists"}