Thank you for your interest in contributing! FEAScript is in early development, with continuous additions of new features and improvements. To ensure a smooth and collaborative development process, please review and follow the guidelines below.
-
Respect the existing coding style: Observe the code near your intended changes and aim to preserve that style in your modifications.
-
Recommended tools:
We recommend using Visual Studio Code with the Prettier plugin for automatic code formatting. Additionally, use a 110-character line width to maintain consistent formatting. -
Naming conventions:
Use camelCase formatting for variable names throughout the code. -
Testing changes locally:
Before submitting a pull request, test your modifications by running the FEAScript library from a local directory. For example, you can load the library in your HTML file as follows:import { FEAScriptModel, plotSolution, printVersion } from "[USER_DIRECTORY]/FEAScript-core/src/index.js";
For security reasons, it is still recommended to use a local server to handle CORS policies correctly. You can use a Python HTTP Server by executing the following script to start a local server:
python3 corsHttpServer.py
The server will be available at:
http://127.0.0.1:8000/