Skip to content

Latest commit

 

History

History
52 lines (35 loc) · 1.86 KB

shared_frontend.md

File metadata and controls

52 lines (35 loc) · 1.86 KB

Shared Frontend Shared Frontend

It contains the shared components, enums, hooks, interfaces, utils, and styles for the language and translator services of the Finnish National Agency for Education.

Available Scripts

In this project directory, you can run:

  yarn shared:eslint     :  Run eslint checks

  yarn shared:format     :  Format

  yarn shared:lint       :  Run all linters

  yarn shared:stylelint  :  Run Stylelint checks

  yarn shared:test:jest  :  Run Jest tests

  yarn shared:tslint     :  Run Tslint checks

Top-level directory layout

.
├── ...
├── src
│   ├── components          # React components
│   ├── enums               # TS Enums
│   └── hooks               # React hooks
│   └── interfaces          # TS Interfaces
│   └── styles              # SCSS styles
│   └── utils               # Utils
└── ...

How to install the package?

  1. Create an access token as instructed here, and select ONLY read:packages as the scope (must create classic token, not fine grained).

  2. Add created token to your bash profile:

     PROFILE_ADDRESS=~/.zshrc  # Depends on your current active profile. ~/.zshrc or ~/.bashrc
     echo 'export GITHUB_REGISTRY_TOKEN="created_token_here"' >> $PROFILE_ADDRESS
  3. Reload bash profile configs

      source $PROFILE_ADDRESS
  4. (Optional) Run yarn add shared@npm:@opetushallitus/kieli-ja-kaantajatutkinnot.shared@version to install the package