Skip to content

Latest commit

 

History

History
39 lines (25 loc) · 1.74 KB

README.md

File metadata and controls

39 lines (25 loc) · 1.74 KB

React Map Demos

Team responsible: Engineering Enablement

Aims of this repo

This project uses Storybook to provide demos and examples of common use-cases of maps for Gemeente Amsterdam. The preferred map library is Leaflet implemented in the frontend library React.

How to use this repo?

This project is generated from a repository template.

Usage

The starter contains the following scripts:

  • start - starts dev server
  • build - generates the production bundle
  • test - starts vitest and runs all tests
  • test:coverage - starts vitest and run all tests with code coverage report
  • lint:scripts - lint .ts, .tsx and .json files with eslint
  • lint:styles - lint .css and .scss files with stylelint
  • format:scripts - format .ts, .html and .json files with prettier
  • format:styles - format .cs and .scss files with stylelint
  • format - format all with prettier and stylelint
  • prepare - script for setting up husky pre-commit hook
  • uninstall-husky - script for removing husky from repository

Settings

By default npm run start will fire up a dev server with a random port (often 5173). You can configure a constant port in the vite.config.ts file; there is commented code showing to configure the port. There are many other options available as documented in the vite docs.

How to contribute to this repo?

Simply create and submit a pull request. You can also contact us via Teams (DV - Engineering Enablement) or Slack (#engineering-enablement).

Acknowledgments

Original template repo