- Run
pnpm install
in the repository's root directory to install everything you need for development. - Run
pnpm build
in the root directory to build the modules.
DFlex contains multiple packages that shapes the final product. All Packages are decoupled and work separately. Each package has it own universe including test and playground or at lease this is the initial plan.
DFlex is written entirely in plain JavaScript/TypeScript and doesn't depend on any specific framework. However, it's using the React for playground, Cypress and Playwright for end to end testing. It's also using Jest for unit testing and PNPM to manage the packages.
Clone the repository
git clone https://github.com/dflex-js/dflex.git
cd dflex
pnpm install
To start development you can use the following command:
pnpm start
This will run the development playground for the DnD package. Open the browser http://localhost:3001 to see the playground. You can check the code in the packages/dnd/playgrounds to see the available components and implementation.
1- Fork DFlex then clone the repository.
2- Create a new branch: git checkout -b my-branch-name
.
3- Make your change.
4- Push to your fork and submit a pull request when ready.
- Check types
pnpm check-types
- Check unit test
pnpm jest
- Check linter
pnpm lint
- Run playground
pnpm start
then:
a. Check smoke testpnpm playwright test
b. Check essential mechanismpnpm cy:run:vertical:chrome
c. Check migrating between containerspnpm cy:run:vertical:chrome