Git Product home page Git Product logo

trafimage-maps's Introduction

trafimage-maps

npm code style: prettier

unit tests e2e chrome e2e firefox e2e edge

About

This repo contains the web component used by the Trafimage Map Portal by Swiss Federal Railways SBB and other applications build on it.

Documentation

See demo.

Technologies

  • web-component
  • react
  • redux
  • enzyme
  • jest
  • cypress
  • react-spatial
  • mobility-toolbox-js
  • eslint with airbnb
  • prettier
  • sass

Getting Started

Install:

yarn install

Start:

yarn start

Publish as NPM package

Make sure you're on the good branch.

Usually, public version are only published from master, beta version can be published from every branches.

Using the following commands, the release version number is automatically updated depending on commit messages (tanks conventionnal commit!)

  • Always test the changelog content before publishing:
yarn publish:public:dryrun
  • Publish a public version:
yarn login # only if it's not already done.
yarn publish:public
  • Publish a beta version:
yarn login # only if it's not already done.
yarn publish:beta

Udpate dependencies problems

[email protected]: We can't update after 11.0.8. 11.0.9 and 11.0.10 have the CopyWebpackPlugin bug. 11.0.11 have fixed it but another errors occurs when we run yarn doc. It seems jsx code is not well parsed anymore.

[email protected]: React 17 is not well supported by material-ui. In the tarifverbundkarte topic, the select box used to update the import format crashes the app when we click on it. The search component also have troubles when dev tools are open and try to navigate in the results with the keyboard.

[email protected]: Fixpack 4.0.0 returns an exit code of 1 everytime, so it breaks the lint-staged hook. See bug.

[email protected]: The version 6.7.0 has some dependencies for the module geotiff like txml that the compiler can't find.

babel-preset-react-app@9: The version 10.0.0 doesn't compile the same way the files in the build/es folder, it removed the option modules: false for the preset-env. That double the size of the code when we compile in a parent project.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.