This file is still Work in Progress
Before you can start making changes, it's mandatory to run a lerna bootstrap for installing all the dependencies.
After that, you can start coding. Here is the folder layout
componentsis where all the third party components are present (React, Vue, etc.)demois where all the demo apps are present.editoris the source of the GUI editor.engineis the main source folder.interactionscontains some additional interaction plugins.pathscontains some additional path plugins.pluginscontains some additional plugins (for now, just infection, but more will be coming).presetscontains some option presets with their bundle, ready to be used.shapescontains some additional shape plugins.updaterscontains some additional updater plugins.websitecontains the website source.
The components folder contains all the javascript frameworks & components built around tsParticles: Angular, jQuery, Preact, React, Vue.
The plugins folder contains all external presets and shapes.
Once done editing, you can check if everything builds running lerna run build.
The difference is, the first does not create the docs folder, and it might be unnecessary while coding.
For building the first time:
Unix
yarn && npx lerna bootstrap && npx lerna run buildWindows
yarn
npx lerna bootstrap
npx lerna run buildFor building local packages it's possible to run only yarn build in every folder with a package.json file
For running demos
yarn startor
yarn servewhere the start commands returns an error (this could be another improvement)
The components and plugins all plugins, components and engines have a demo app or page.
A demo folder has been created with all the demo apps needed.
Before opening any pull request, check that lerna run build completes
The build task will be performed automatically by the CI\CD, but a first local check should be done
If you want to contribute to the project, please use dev as the base branch.
Use main branch ONLY for critical bug fixes.
Once done, create the Pull Request to dev branch. If it's a critical bug fix, use staging.
This branch is the main development branch, and it has the lowest priority branch under CI.
This branch should always build. Sometimes it can be necessary to break this rule. This is why it is should and not must.
This branch is for testing the product before a new release.
This branch is the one used to make PR to main, so this branch MUST build.
This is the production branch.
This must be used for PR only for critical bug fixes and always MUST build.
Changes to README.md or other markdown files are not priorities. So for these changes, use dev or staging, and they will be implemented in the next release.
You can create any branch you want to push & any kind of commits.
There are no rules in the CI for all the other branches.
Once ready, if you need to implement the product.Follow the rules below.
Remember to keep the backward compatibility with previous versions. If a change breaks this rule it must be discussed.
You can mark them as obsolete old methods, but they must work too. Deprecating is not breaking.
Feel free to join the Slack community to talk about the project. It's easier to share ideas if we can talk directly.
Happy coding to everyone!