Skip to content

tony-rivas/osd-ng-monorepo

Repository files navigation

OsdNgMonorepo

This workspace has been generated by Nx, Smart Monorepos · Fast CI.

Integrate with editors

Enhance your Nx experience by installing Nx Console for your favorite editor. Nx Console provides an interactive UI to view your projects, run tasks, generate code, and more! Available for VSCode, IntelliJ and comes with a LSP for Vim users.

Start the application

Run npx nx serve one-stop to start the development server. Happy coding!

Build for production

Run npx nx build one-stop to build the application. The build artifacts are stored in the output directory (e.g. dist/ or build/), ready to be deployed.

Running tasks

To execute tasks with Nx use the following syntax:

npx nx <target> <project> <...options>

You can also run multiple targets:

npx nx run-many -t <target1> <target2>
# ex: npx nx run-many -t test lint e2e --skip-nx-cache

..or add -p to filter specific projects

npx nx run-many -t <target1> <target2> -p <proj1> <proj2>

Running e2e in parallel seems to not be working locally due to port overriding

npx nx run-many -t <target1> <target2> --parallel=false --skip-nx-cache
# ex: npx nx run-many -t e2e --parallel=false --skip-nx-cache

Targets can be defined in the package.json or projects.json. Learn more in the docs.

Misc

After adding a port the app project.json serving section, may need to re-run npm install for changes to take effect.

Set up CI!

Nx comes with local caching already built-in (check your nx.json). On CI you might want to go a step further.

Explore the project graph

Run npx nx graph to show the graph of the workspace. It will show tasks that you can run with Nx.

Connect with us!