|
This project requires the following minimal engine versions: link:package.json[role=include] |
The r2d2bzh product stack is composed of multiple NodeJS micro-services.
The projects hosting these micro-services need to be structured with the same rules.
As anyone can easily forget these many rules, js-backend-rules
comes to the rescue.
📎
|
Some of these rules are already taken care of by |
You need to add the following NPM development dependency to the project that needs to be ruled (which means here scaffolded/structured/checked/…):
npm install --save-dev @r2d2bzh/js-backend-rules
Once installed, @r2d2bzh/js-rules
provides the r2d2bzh-js-backend-rules
executable from the node_modules executables.
To ensure that the rules are enforced, call this executable by issuing npx r2d2bzh-js-backend-rules
, this will:
-
ensure that the rules are enforced over time by launching
r2d2bzh-js-backend-rules
during thepostinstall
step of npm -
immediately apply all the rules to the whole project
🔥
|
You should preferably commit your project’s current content to ensure nothing is lost in the process. |