To set up the environment, follow these steps:
-
Clone this repository:
git clone git@github.com:can-it/can-it.git
-
Navigate to the project directory:
cd can-it
-
Install the required dependency packages:
pnpm i
📂 apps
└── examples <!-- Used for testing the libraries -->
📂 libs
├── core
└── operators
├── exact
├── nested
├── relation
└── ...
You can find the code for the core functionality in the libs/core
folder.
To build the core, run the following command:
npx nx build core
To run tests for the core, use the following command:
npx nx test core
The operators allow you to perform specific tasks. Follow the steps below to create and work with operators.
To create a new operator, run the following command:
npx nx g @nx/js:lib operators-[name] --directory=libs/operators/[name] --publishable=true --import-path=@can-it/operators-[name]
Replace [name]
with the desired name for your operator.
To build the operator, use the following command:
npx nx build operators-[name]
Replace [name]
with the name of your operator.
To run tests for the operator, use the following command:
npx nx test operators-[name]
Replace [name]
with the name of your operator.