This document is useful for developers of TeXMe.
To set up the development environment for TeXMe, follow these steps:
-
Install Node. Here are example commands for macOS and Debian-based distributions:
# On macOS brew install node # On Debian sudo make install_node_deb -
Install dependencies by running this command at the top-level directory of the project:
npm install -
Run the tests:
npm test -
Open
examples/get-started.htmlandexamples/demo.htmlwith a web browser.
- Update Markdown renderer version in texme.js.
- Update Markdown renderer version in Makefile.
- Update Markdown renderer version in package.json.
- Update MathJax version in texme.js.
- Update MathJax version in Makefile.
Perform the following tasks for every release:
-
Update version in README.md.
-
Update version in package.json.
-
Update copyright notice in LICENSE.md.
-
Update copyright notice in texme.js.
-
Update CHANGES.md.
-
Run tests.
npm test -
Update minified script.
npm run min -
Push demo, examples, and documentation.
make live -
Optional: Wait for website to update and take screenshot in light mode. Upload it to Imgur. Then replace Imgur URL in README.md
-
Commit changes.
git status git add -p -
Tag the release.
VERSION=<VERSION> git commit -em "Set version to $VERSION" git tag $VERSION -m "TeXMe $VERSION" git push origin main $VERSION -
Publish package.
npm login npm publish
Perform the following tasks after every release:
-
Update version in package.json to the next dev version (
X.Y.Z-devformat). -
Commit.
git add -p git status VERSION=$(sed -n 's/.*version.*: "\(.*\)",/\1/p' package.json) echo VERSION: $VERSION git add -p git commit -em "Set version to $VERSION" git push origin main