Skip to content

Commit bf01a71

Browse files
committed
Initial commit
0 parents  commit bf01a71

File tree

1,172 files changed

+36076
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,172 files changed

+36076
-0
lines changed

.config/husky/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

.config/husky/commit-msg

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
yarn commit message lint

.config/husky/pre-commit

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
yarn commit staged

.github/ISSUE_TEMPLATE/bug.md

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
name: Bug
3+
about: Что-то где-то сдохло
4+
labels: bug
5+
assignees: TorinAsakura
6+
---
7+
8+
### Описание бага
9+
10+
1. **@package/name@0.0.0**
11+
2. Затрагиваемые области
12+
13+
**_Например_**: @package/name@0.1.47 может нарушать работу **[@package/name-next@0.2.23](github.com/org-name/repo-name/backend/name-next/service/index.ts)**
14+
15+
### Воспроизведение
16+
17+
Шаги для воспроизведения бага:
18+
19+
1. Идём туда-то **package/name/src/main.js:561**
20+
2. Выполнить команду или что-то запустить
21+
3. Видим то-то и то-то
22+
23+
### Ожидаемое поведение
24+
25+
Чётко и понятно (без "я думал" или "ну, типа и так панятна же…не?") опишите ожидаемое поведение.
26+
27+
### Материалы
28+
29+
Прикладываем скриншоты – если ошибка относится к визуальной части и сбор логов не приемлем.
30+
31+
**_Например:_**
32+
Скриншот логов kubectl или console.log будет абсолютно бесполезным, человек потратит лишнее время на то, чтобы, разобрать мыло которое вы ему прислали (не забывайте, что у всех, как правило, разное разрешение)
33+
34+
Прикладываем логи — если ошибка относится к системной части и скриншот не поможет в анализе и решении проблемы
35+
36+
**_Например:_**
37+
Логи при попытке отдебажить графические артефакты или проблему с логикой UI элементов (у кнопки неправильной формы углы) или же когда речь идёт о логике поведения той или иной части приложения (тут лучше вообще делать схемы).
38+
39+
### Данные окружения
40+
41+
- OS и версия [например [email protected], [email protected], [email protected]]
42+
- Браузер и версия [например Chrome@64, Safari@13]

.github/ISSUE_TEMPLATE/chore.md

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
name: Chore
3+
about: Не фича и не баг
4+
labels: chore
5+
assignees: TorinAsakura
6+
---
7+
8+
### Какого рода задача?
9+
10+
Поменять значения или изменить логику
11+
12+
### Что и где будем менять?
13+
14+
**_Например:_**
15+
Нужно изменить условие функции
16+
17+
```javascript
18+
if (servicePayment === 1) {
19+
return
20+
}
21+
```
22+
23+
на
24+
25+
```javascript
26+
if (!servicePayment && !servicePaymentValue) {
27+
window.location.href = homePageUrl || userProfilePageUrl
28+
return null
29+
}
30+
```
31+
32+
### Укажите референс
33+
34+
В связи с чем было принято решение? Ссылка на другую задачу, ПР, в общем – нужен контекст

.github/ISSUE_TEMPLATE/config.yml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: Конвенция
4+
url: https://github.com/atls/convention
5+
about: О процессах и не только
6+
- name: Telegram
7+
url: https://t.me/atls_lab
8+
about: Складируем полезные статьи
9+
- name: Discord
10+
url: https://discord.gg/jmgjzSKgNg

.github/ISSUE_TEMPLATE/feature.md

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
name: Feature
3+
about: Изменение ломающее обратную совместимость
4+
labels: feature
5+
assignees: TorinAsakura
6+
---
7+
8+
### С чем связан запрос на фичу?
9+
10+
**_Например:_**
11+
В случае с @Injectable мы должны иметь возможность, также, пробрасывать события с eventbus через provider
12+
13+
### Расскажите как вы это себе видите
14+
15+
**_Например:_**
16+
17+
```javascript
18+
@Injectable({
19+
provider: 'IntlProvider',
20+
})
21+
export class IntlService {
22+
getIntl(object) {
23+
return object.string
24+
}
25+
}
26+
```
27+
28+
### Приложите примеры реализаций
29+
30+
Просто оставьте ссылку на репу, статью, gist, любой другой источник откуда почерпнули идею

.github/workflows/checks.yml

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Checks
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
run:
7+
name: Run
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v1
12+
13+
- name: Setup Node
14+
uses: actions/setup-node@v1
15+
with:
16+
node-version: '14.7'
17+
18+
- name: Install
19+
run: yarn install
20+
21+
- name: Changes
22+
run: yarn files changed list
23+
env:
24+
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
25+
26+
- name: Lint
27+
run: yarn checks lint
28+
env:
29+
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
30+
31+
- name: TypeCheck
32+
run: yarn checks typecheck
33+
env:
34+
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
35+
36+
- name: TestUnit
37+
run: yarn checks test unit
38+
env:
39+
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
40+
41+
- name: TestIntegration
42+
run: yarn checks test integration
43+
env:
44+
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
45+
46+
- name: Release
47+
run: yarn checks release
48+
env:
49+
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'

.github/workflows/publish.yaml

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Publish
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
run:
8+
name: Publish
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v2
14+
with:
15+
ref: master
16+
17+
- name: Setup Node
18+
uses: actions/setup-node@v1
19+
with:
20+
node-version: '14.10'
21+
22+
- name: Install
23+
run: yarn install
24+
25+
- name: Npm Publish
26+
run: |
27+
yarn version apply --all
28+
yarn workspaces changed foreach --verbose --topological --no-private npm publish --access public
29+
env:
30+
YARN_NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
31+
32+
- name: Commit changes
33+
uses: EndBug/add-and-commit@v7
34+
env:
35+
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
36+
with:
37+
author_name: github-actions
38+
author_email: 41898282+github-actions[bot]@users.noreply.github.com
39+
message: 'chore(common): publish'
40+
branch: master

.github/workflows/version.yaml

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Version
2+
3+
on:
4+
pull_request:
5+
types: [closed]
6+
branches:
7+
- master
8+
9+
jobs:
10+
run:
11+
name: Version
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v2
17+
with:
18+
ref: master
19+
20+
- name: Setup Node
21+
uses: actions/setup-node@v1
22+
with:
23+
node-version: '14.10'
24+
25+
- name: Install
26+
run: yarn install
27+
env:
28+
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
29+
30+
- name: Changes
31+
run: yarn files changed list
32+
env:
33+
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
34+
35+
- name: Version
36+
run: yarn workspaces changed foreach --no-private --verbose version patch --deferred
37+
env:
38+
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
39+
40+
- name: Commit changes
41+
uses: EndBug/add-and-commit@v7
42+
env:
43+
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
44+
with:
45+
author_name: github-actions
46+
author_email: 41898282+github-actions[bot]@users.noreply.github.com
47+
message: 'chore(common): versions'
48+
branch: master

.gitignore

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-error.log
6+
7+
# Runtime data
8+
pids
9+
*.pid
10+
*.seed
11+
12+
# Directory for instrumented libs generated by jscoverage/JSCover
13+
lib-cov
14+
15+
# Coverage directory used by tools like istanbul
16+
coverage
17+
18+
# node-waf configuration
19+
.lock-wscript
20+
21+
# Compiled binary addons (http://nodejs.org/api/addons.html)
22+
build/Release
23+
24+
# Dependency directory
25+
node_modules
26+
.yarn-cache
27+
28+
# Optional npm cache directory
29+
.npm
30+
31+
# Optional REPL history
32+
.node_repl_history
33+
34+
# MacOS temporary files
35+
.DS_Store
36+
37+
# This is the Yarn build state; it's local to each clone
38+
/.yarn/build-state.yml
39+
40+
# This is the Yarn install state cache, it can be rebuilt anytime
41+
/.yarn/install-state.gz
42+
43+
dist/

0 commit comments

Comments
 (0)