If you would like to modify ImportMesh package yourself or contribute back to the original repository, then the following instructions can help you. First you need to install Git and clone the project from its GitHub homepage to your local computer.
Essential:
- Mathematica version 11.1 or later
Recommended:
- WolframScript for building the
.paclet
file from command line. On most systems it already comes bundled with Mathematica installation.
It is considered good practice that every (public) function in this package includes its own set of unit tests.
A bunch of them is collected in Tests/Tests.wl
file, using the Mathematica testing
framework.
It is recommended that you run them periodically during development and especially before every commit.
This can be done by calling script file Tests/RunTests.wls
in command line
(first change directory to project root directory) or by evaluating whole notebook Tests/RunTests.nb
.
Unit test can be run automatically before every commit via Git client-side
hooks.
File pre-commit
should contain call to Tests/RunTests.wls
script,
which exits with value 0 if all tests pass and aborts the commit otherwise.
Minimal example of pre-commit
file content is:
#!/bin/sh
./Tests/RunTests.wls
Package currently has no documentation in notebook format (.nb). To build the package source files just need to be packaged into a .paclet
file.
Open terminal window (command line) in ImportMesh root directory and run file Build.wls
.
This will leave you with a ImportMesh-X.Y.Z.paclet file in the build folder.