mirror of
https://github.com/maputnik/editor.git
synced 2025-12-06 06:10:00 +00:00
48 lines
671 B
Markdown
48 lines
671 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 install 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
|
|
```
|
|
|
|
## Pull Requests
|
|
|
|
- Pull requests should update `CHANGELOG.md` with a short description of the change.
|