LaTeX-Workshop/CONTRIBUTING.md

71 lines
1.9 KiB
Markdown
Raw Normal View History

2019-04-16 17:37:06 +03:00
# Contributing to LaTeX-Workshop
2021-03-08 06:46:47 +03:00
Please notice that we can reject any kinds of pull requests.
## Quickstart
```bash
git clone https://github.com/James-Yu/LaTeX-Workshop.git
cd ./LaTeX-Workshop
npm ci
code -n .
```
Press <kbd>F5</kbd> in vscode to start the development version in debug mode.
2019-04-16 17:37:06 +03:00
## Prerequisites for building the extension
Make sure you have installed:
- [`node.js`](https://nodejs.org/) v12
2019-04-16 17:37:06 +03:00
- `npm`
2019-08-02 01:04:38 +03:00
- the [`eslint`](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint) extension for VS Code (recommended)
2019-04-16 17:37:06 +03:00
Then run
npm ci
2019-04-16 17:37:06 +03:00
inside the extension workspace to download the node modules needed to build the extension.
2019-09-14 05:33:34 +03:00
## Development
To lint changes, run
npm run lint
To compile, run
npm run compile
To build a release image, run
npm run release
2020-03-08 05:15:13 +03:00
To run tests, run
npm run test
To run a specific test, run
npm run test build/fixture001
2020-03-08 05:15:13 +03:00
2019-11-30 11:25:24 +03:00
## Testing and debugging the extension
2019-04-16 17:37:06 +03:00
In VS Code, simply press <kbd>F5</kbd> (or run `Debug: Start Debugging` from the command palette) and a new window will pop up where you can test the extension.
2019-11-30 11:25:24 +03:00
### Debugging PDF viewer
To debug the internal PDF viewer, select `View LaTeX PDF > View in web browser,` and view a PDF file in Google Chrome. You can debug the viewer with [Chrome DevTools](https://developers.google.com/web/tools/chrome-devtools/) as a general web application.
2020-08-16 03:02:32 +03:00
## Documents
You can refer to:
- https://github.com/James-Yu/LaTeX-Workshop/wiki
- https://github.com/James-Yu/LaTeX-Workshop/blob/master/src/README.md
- https://github.com/James-Yu/LaTeX-Workshop/blob/master/viewer/README.md
- https://github.com/James-Yu/LaTeX-Workshop/blob/master/data/README.md
- https://github.com/James-Yu/LaTeX-Workshop/blob/master/resources/snippetpanel/README.md
- https://github.com/James-Yu/LaTeX-Workshop/blob/master/test/README.md
- https://github.com/James-Yu/LaTeX-Workshop/blob/master/.github/workflows/README.md