PR's, ideas and discussions are welcome.
This project uses the Nx CLI with Yarn 1.x.
This project is built with Nx and follows the OSS project structure. The Getting Started guide shows how to work with Nx workspaces.
After cloning the project, to install the dependencies, run:
To build a plugin, run:
yarn build [plugin]
Run the Unit Tests
Run unit tests for a specific plugin with:
yarn test [plugin]
Run the e2e Tests
Run e2e tests for a specific plugin with:
yarn e2e [plugin]
Create a playground Nx repository:
This will create a playground repository inside the Nxext repository directory. You'll find it here:
It is a regular Nx repository and you're able to do everything like create projects and libraries.
To update the playground with changes on the plugins without rebuilding a new playground, run:
Publishing to a local registry
To test if your changes will actually work once the changes are published, it can be useful to publish to a local registry.
# Starts the local registry. Keep this running in a separate terminal. yarn local-registry start # Set npm and yarn to use the local registry. # Note: This reroutes your installs to your local registry yarn local-registry enable # Revert npm and yarn to use their default registries yarn local-registry disable
To publish packages to a local registry, do the following:
yarn local-registry startin Terminal 1 (keep it running)
npm adduser --registry http://localhost:4873in Terminal 2 (real credentials are not required, you just need to be logged in. You can use firstname.lastname@example.org.)
yarn local-registry enablein Terminal 2
yarn local-release 999.9.9in Terminal 2
Happy coding 😃