Common Libraries used in Entando frontend applications.
node 9.10.1
and npm 5.6.0
are the minimum requirements.
To install the dependencies use the command npm run bootstrap
every single script is executed using npm run <scriptName>
installs every dependency using lerna
cleans the node_modules
directories
tests every single package
lints every single package
command used to publish on npm
the latest versions of the libraries
router
: used for routing within reduxutils
: common utilitiesapimanager
: used to handle api callsddtable
: table with draggable rowsmenu
: core menu elements used across Entando applicationsmessages
: states used to manage toasts and errorspages
: common pages used across Entando applicationspagetreeselector
: table based view of pages that lets user to select frommfecommunication
: communication management mechanism for multiple mfes among each other on the same page
Due to hoisting tests in packages may no pass because the single package dependencies are installed both on the actual package and on the entire project, duplicating instances of React.
The recommended procedure is to run npm run clean
to purge the node_modules directories and npm run bootstrap
to regenerated them.
It is also considered bad practice committing lock files of the single packages.