Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More β†’
Socket
Sign inDemoInstall
Socket

@evergis/ui

Package Overview
Dependencies
Maintainers
4
Versions
389
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@evergis/ui

πŸ† **Before start:**

  • 2.0.116-alpha.103
  • npm
  • Socket score

Version published
Weekly downloads
156
increased by12.23%
Maintainers
4
Weekly downloads
Β 
Created
Source

πŸ›΄ Evergis UI

Contributing

πŸ† Before start:

yarn

Update webstorm to >2017.3.3

Install Styled Components plugin Jetbrains plugins

πŸ› οΈ Start dev:

yarn storybook

Open in browser localhost:6006

βœ… Start tests:

yarn test

How to release

  1. Π‘ΠΎΠ·Π΄Π°Ρ‚ΡŒ Π²Ρ€Π΅ΠΌΠ΅Π½Π½ΡƒΡŽ Π²Π΅Ρ‚ΠΊΡƒ (Π½Π°ΠΏΡ€ΠΈΠΌΠ΅Ρ€, publish)
  2. Π˜Π·ΠΌΠ΅Π½ΠΈΡ‚ΡŒ Π²Π΅Ρ€ΡΠΈΡŽ ΠΏΠ°ΠΊΠ΅Ρ‚Π° Π² package.json
  3. yarn - ΠΎΡΠ²Π΅ΠΆΠΈΡ‚ΡŒ всС зависимости
  4. yarn lint:fix - Π°Π²Ρ‚ΠΎΠΏΠΎΠΏΡ€Π°Π²ΠΊΠ° eslint ошибок
  5. yarn build - сборка
  6. npm publish - паблиш
  7. Π‘ΠΎΠ·Π΄Π°Ρ‚ΡŒ МР ΠΈΠ· Π²Ρ€Π΅ΠΌΠ΅Π½Π½ΠΎΠΉ Π²Π΅Ρ‚ΠΊΠΈ Π² master

For testing uilib locally in client (or other projects) without rebuilding after every update use linking:

  1. yarn build - сборка
  2. yarn link - создаём Π³Π»ΠΎΠ±Π°Π»ΡŒΠ½ΡƒΡŽ ссылку Π½Π° uilib
  3. ΠžΡ‚ΠΊΡ€Ρ‹Π²Π°Π΅ΠΌ client ΠΈΠ»ΠΈ Π΄Ρ€ΡƒΠ³ΠΎΠΉ ΠΏΡ€ΠΎΠ΅ΠΊΡ‚
  4. yarn link "@evergis/ui" - привязываСм uilib ΠΊ ΠΏΡ€ΠΎΠ΅ΠΊΡ‚Ρƒ
  5. yarn start - запускаСм ΠΏΡ€ΠΎΠ΅ΠΊΡ‚ с привязанной uilib
  6. yarn build - послС ΠΈΠ·ΠΌΠ΅Π½Π΅Π½ΠΈΠΉ Π² uilib Π΄Π΅Π»Π°Π΅ΠΌ Π΅Π³ΠΎ пСрСсборку

How to manage icons

  1. https://icomoon.io/app/#/projects
  2. Import Project ΠΈΠ· src/fonts/selection.json
  3. Load
  4. Клик ΠΏΠΎ Π³Π°ΠΌΠ±ΡƒΡ€Π³Π΅Ρ€ Π½Π°Π±ΠΎΡ€Π° EverCloud Π² ΠΏΡ€Π°Π²ΠΎΠΌ Π²Π΅Ρ€Ρ…Π½Π΅ΠΌ ΡƒΠ³Π»Ρƒ Import to Set
  5. Generate Font Π² ΠΏΡ€Π°Π²ΠΎΠΌ Π½ΠΈΠΆΠ½Π΅ΠΌ ΡƒΠ³Π»Ρƒ
  6. Π—Π°ΠΌΠ΅Π½Π° Ρ„Π°ΠΉΠ»ΠΎΠ² src/fonts Π½Π° Π·Π°Π³Ρ€ΡƒΠΆΠ΅Π½Π½Ρ‹Π΅ ΠΈΠ· Π°Ρ€Ρ…ΠΈΠ²Π° (ΠΏΠ°ΠΏΠΊΠ° fonts ΠΈ selection.json)

Used libraries, languages and tools

  1. Typescript Docs
  2. React Docs
  3. Styled-components Docs
  4. Jest Docs
  5. Storybook Docs

Style Guide

  1. Every component in separate directory

  2. Test file in same directory, with name *.test.tsx

  3. Do not write snapshot tests for components, for snapshot testing used stories, test only specific behavior and functions

  4. Story file in same directory, with name *.story.tsx

  5. Write stories for every possible component state

  6. Every component must be working without any props

  7. Do not create pull request with any linters or ts errors

  8. File naming convention:

    1. PascalCase for file exporting classes and Components
    2. camelCase for file exporting objects and functions
    3. kebab-case for module replacements
  9. Do not use default exports

  10. Write component description in source file

Completed Component must include the following:

  1. Stories for every possible component state
  2. Tests for specific behaviors and functions
  3. Declared Theme variables
  4. Props type
  5. Component description

Project structure

  1. Import "styled-components" maps to styled-with-theme.ts
  2. theme is theme folder 🚒
  3. Simple reusable styled components and html tags with style are located in atoms folder
  4. Groups of atoms are located in molecules folder
  5. Groups of atoms, molecules and other are located in organisms folder

Todo

  1. Upgrade tippy (tooltip) package version
  2. Upgrade imask & react-imask packages version

FAQs

Package last updated on 31 May 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚑️ by Socket Inc