Monorepo containing useful tools, plugins, and libraries. Created by the team, made for the community.
This project is structured as a monorepo. If you don't know what a monorepo is, you can learn more about it here.
Installation guides vary by package. Each package has its own README.md file you can refer to for installation and usage instructions. Preferably, head over to the docs to learn more about each package.
The monorepo uses Yarn Berry with Plug n Play (PnP). It doesn't have a node_modules
directory, nor does it require one. You can learn more about Yarn Berry here.
This package uses yarn workspaces
. You can learn more about workspaces here.
The following commands are available in this Monorepo:
yarn nx build [library-name] # Builds a library
yarn build # Builds all libraries
yarn nx lint [library-name] # Lints a library
yarn lint # Lints all libraries
yarn typecheck # Type checks whole repo
yarn move [destination] [options,...] # Move a project to another folder in the workspace.
yarn rm [projectName] [options,...] # Remove a project from the workspace.
yarn gen:lib [name] [options,...] # Create a TypeScript Library. Use --js to create a JavaScript library instead
yarn gen:library [name] [options,...] # Create a React Library for an Nx workspace.
yarn gen:component [name] [options,...] # Create a React Component for an Nx workspace.
yarn gen:hook [name] [options,...] # Create a React Hook or an Nx workspace.
yarn gen:story-conf [name] [options,...] # Set up Storybook for a React app or library.
yarn gen:comp-story [options,...] # Generate storybook story for a react component.
yarn gen:stories [options,...] # Generate stories/specs for all components declared in a project.
yarn gen:comp-story-spec [options,...] # Create a Cypress spec for a UI component that has a story.
yarn gen:cypress-conf [options,...] # Add a Cypress component testing configuration to an existing project.
yarn gen:comp-spec [options,...] # Add a Cypress component test for a component.
yarn gen:plugin [name] [options,...] # Create a Plugin for Nx.
yarn gen:migration [name] [options,...] # Create a Migration for an Nx Plugin.
yarn gen:generator [name] [options,...] # Create a Generator for an Nx Plugin.
yarn gen:executor [name] [options,...] # Create an Executor for an Nx Plugin.
Run any of the above commands followed by --help
to get information on the options and usage of the command
Example:
yarn gen:library --help
To contribute to this library, please refer to the CONTRIBUTING.md file. Also, don't forget to checkout our CODE_OF_CONDUCT.md
This project was generated using Nx.