1.0.30 • Published 11 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
12 months ago
1.0.18
12 months ago
1.0.17
1 year ago
1.0.16
1 year ago
1.0.9
1 year ago
1.0.22
11 months ago
1.0.21
11 months ago
1.0.20
11 months ago
1.0.26
11 months ago
1.0.25
11 months ago
1.0.24
11 months ago
1.0.23
11 months ago
1.0.29
11 months ago
1.0.28
11 months ago
1.0.27
11 months ago
1.0.11
1 year ago
1.0.10
1 year ago
1.0.30
11 months ago
1.0.15
1 year ago
1.0.14
1 year ago
1.0.13
1 year ago
1.0.12
1 year ago
1.0.8
1 year ago
1.0.7
3 years ago
1.0.6
3 years ago
1.0.5
3 years ago
1.0.3
3 years ago
1.0.2
3 years ago
1.0.1
3 years ago
1.0.0
3 years ago