Thanks for taking the time to contribute!
The following is a set of guidelines for contributing to LIA.
LIA app is built on top of React. If you are new to React, please head over to this great article.
-
Only use NPM (^6.4.1) as package manager.
-
Comment every util’s function and, optionally, comment any behavior that you think needs a documentation using jsdoc's guide (http://usejsdoc.org/index.html).
-
Write descriptive commits for each file you modify, create or delete.
-file /folder
/lia
/public
/build
/docs
/src
/client
/__tests__
/__snapshots__
-testName.test.js
/redux
-initialState.js
-actions.js
/reducers
/boundedActions
/router
-index.js
/utils
-utilName.js
/components
-componentName.js
/server
/config
/controllers
/errors
/models
/routes
/utils
-server.js
-
The whole LIA documentation, such as setting up a development environment, setting up with the LIA webapp project, and testing, can be read here.
-
If you have any questions regarding LIA, open an issue.
Ensure the bug was not already reported by searching on GitHub under issues. If you're unable to find an open issue addressing the bug, open a new issue.
Please pay attention to the following points while opening an issue.
Detailed information is very helpful to understand an issue.
Consider providing the following information:
- How to reproduce the issue step-by-step.
- The expected behavior (or what is wrong).
- Screenshots for GUI issues.
- The application version.
- The operating system.
LIA performs Unit Testing for each component and function inside the application in order to ensure code quality and minimize bugs.
The following libraries are used to performs LIA's tests:
-
Jest
-
Enzyme + enzyme-adapter-react-16
Run tests with: npm run test
Pull Requests are always welcome.
- When you edit the code, please run
tests
to check the formatting of your code before yougit commit
. - Ensure the PR description clearly describes the problem and solution. It should include:
- The operating system on which you tested.
- The relevant issue number, if applicable.