Skip to content

davinciagf/icho

 
 

Repository files navigation

Catalogue

This project was generated using Nx.

Adding capabilities to your workspace

Nx supports many plugins which add capabilities for developing different types of applications and different tools.

Generate an application

Run nx g @nrwl/react:app webcomponents to generate an application.

Generate a library

Run nx g @nrwl/react:lib ui/search to generate a library.

You can also use any of the plugins above to generate libraries as well.

Libraries are shareable across libraries and applications. They can be imported from @catalogue/mylib.

Development server

Run nx serve catalogue for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Code scaffolding

cd libs/ui/search/
nx g @nrwl/react:component search-graph --export

to generate a new component.

Build

Run nx build my-app to build the project. The build artifacts will be stored in the dist/ directory. Use the --prod flag for a production build.

For custom public path, update .env properties and then use:

nx serve --baseHref=/browsing/

NX_CATALOGUE_API_ENDPOINT=https://apps.org/geonetwork/srv NX_BASE_URL=/hub/ nx build catalogue --baseHref=/hub/

Analyze bundle:

nx run catalogue:build:production --statsJson
npm analyze:app

Linting:

npm lint-all

Running unit tests

Run nx test catalogue to execute the unit tests via Jest.

Run nx affected:test to execute the unit tests affected by a change.

Running end-to-end tests

Run ng e2e catalogue to execute the end-to-end tests via Cypress.

nx e2e catalogue-e2e --watch

Run nx affected:e2e to execute the end-to-end tests affected by a change.

Understand your workspace

Run nx dep-graph to see a diagram of the dependencies of your projects.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 98.2%
  • HTML 1.4%
  • Other 0.4%