1.0.30 • Published 5 months ago
@evergis/uilib-gl v1.0.30
🛴 Evergis UI
Contributing
🏆 Before start:
yarnUpdate webstorm to >2017.3.3
Install Styled Components plugin Jetbrains plugins
🛠️ Start dev:
yarn storybookOpen in browser localhost:6006
✅ Start tests:
yarn testHow to release
- Создать временную ветку (например,
publish) - Изменить версию пакета в
package.json yarn- освежить все зависимостиyarn lint:fix- автопоправка eslint ошибокyarn build- сборкаnpm publish- паблиш- Создать МР из временной ветки в
master
How to link
For testing uilib locally in client (or other projects) without rebuilding after every update use linking:
yarn build- сборкаyarn link- создаём глобальную ссылку на uilib- Открываем client или другой проект
yarn link "@evergis/uilib-gl"- привязываем uilib к проектуyarn start- запускаем проект с привязанной uilibyarn build- после изменений в uilib делаем его пересборку
How to manage icons
- https://icomoon.io/app/#/projects
- Import Project из
src/fonts/selection.json - Load
- Клик по гамбургер набора EverCloud в правом верхнем углу Import to Set
- Generate Font в правом нижнем углу
- Замена файлов
src/fontsна загруженные из архива (папка fonts и selection.json)
Used libraries, languages and tools
Style Guide
- Every component in separate directory
- Test file in same directory, with name *.test.tsx
- Do not write snapshot tests for components, for snapshot testing used stories, test only specific behavior and functions
- Story file in same directory, with name *.story.tsx
- Write stories for every possible component state
- Every component must be working without any props
- Do not create pull request with any linters or ts errors
File naming convention:
- PascalCase for file exporting classes and Components
- camelCase for file exporting objects and functions
- kebab-case for module replacements
Do not use default exports
- Write component description in source file
Completed Component must include the following:
- Stories for every possible component state
- Tests for specific behaviors and functions
- Declared Theme variables
- Props type
- Component description
Project structure
- Import "styled-components" maps to styled-with-theme.ts
- theme is theme folder 🚢
- Simple reusable styled components and html tags with style are located in atoms folder
- Groups of atoms are located in molecules folder
- Groups of atoms, molecules and other are located in organisms folder
Todo
- Upgrade tippy (tooltip) package version
- Upgrade imask & react-imask packages version
1.0.19
7 months ago
1.0.18
7 months ago
1.0.17
8 months ago
1.0.16
9 months ago
1.0.9
12 months ago
1.0.22
6 months ago
1.0.21
6 months ago
1.0.20
6 months ago
1.0.26
5 months ago
1.0.25
5 months ago
1.0.24
6 months ago
1.0.23
6 months ago
1.0.29
5 months ago
1.0.28
5 months ago
1.0.27
5 months ago
1.0.11
12 months ago
1.0.10
12 months ago
1.0.30
5 months ago
1.0.15
9 months ago
1.0.14
9 months ago
1.0.13
11 months ago
1.0.12
11 months ago
1.0.8
1 year ago
1.0.7
2 years ago
1.0.6
2 years ago
1.0.5
2 years ago
1.0.3
2 years ago
1.0.2
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago