wesnoth/utils/wesnoth-map-diff/README.md

40 lines
810 B
Markdown
Raw Normal View History

2022-03-04 23:30:49 +00:00
# wesnoth-map-diff
> 🗺 Print the diff between two maps
## Setup
1 - Make sure you have Node on your system. If you don't have it, install it. If you are using macOS or Linux, you can install Node using [nvm](https://github.com/nvm-sh/nvm). On Windows, use [nvm-windows](https://github.com/coreybutler/nvm-windows).
2022-03-04 23:30:49 +00:00
2 - Open the terminal on `utils/wesnoth-map-diff` folder and run the following command to install the project dependencies:
2022-03-04 23:30:49 +00:00
```
npm i
```
3 - Then, run the following command to build it:
2022-03-04 23:30:49 +00:00
```
npm run build:dev
```
4 - Finally, run it using `node ./build/index.js [path for the old map] [path for the new map] [output filename]`. For instance:
2022-03-04 23:30:49 +00:00
```
node ./build/index.js old.map new.map output.png
```
## Contributing
Run tests:
```
npm run test
```
Run lint:
```
npm run lint
```