mirror of
https://github.com/maputnik/editor.git
synced 2026-04-19 16:00:01 +00:00
This file is read by LLM agents when working on the codebase: https://agentsmd.net/ With this file you don't need to copy paste these instructions in every prompt.
44 lines
563 B
Markdown
44 lines
563 B
Markdown
Maputnik is a MapLibre style editor written using React and TypeScript.
|
|
|
|
To get started, install all npm packages:
|
|
|
|
```
|
|
npm install
|
|
```
|
|
|
|
Verify code correctness by running ESLint:
|
|
|
|
```
|
|
npm run lint
|
|
```
|
|
|
|
Or try fixing lint issues with:
|
|
|
|
```
|
|
npm run lint -- --fix
|
|
```
|
|
|
|
The project type checked and built with:
|
|
|
|
```
|
|
npm run build
|
|
```
|
|
|
|
To run the tests make sure that xvfb is installed:
|
|
|
|
```
|
|
apt run xvfb
|
|
```
|
|
|
|
Run the development server in the background with Vite:
|
|
|
|
```
|
|
nohup npm run start &
|
|
```
|
|
|
|
Then start the Cypress tests with:
|
|
|
|
```
|
|
xvfb-run -a npm run test
|
|
```
|