Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

Full refactoring #114

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"env": {},
"plugins": [
["styled-components", { "displayName": true, "ssr": true }],
["effector/babel-plugin", { "addLoc": true }]
]
}
3 changes: 3 additions & 0 deletions .commitlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": ["@commitlint/config-conventional"]
}
1 change: 0 additions & 1 deletion .cz-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ module.exports = {
globMap("src/ui/*/", (path) => path.replace(/^src\//, "")),
"lib",
globMap("src/lib/*/", (path) => path.replace(/^src\//, "")),
"docz",
),
allowCustomScopes: true,
allowBreakingChanges: ["feat", "fix", "revert"],
Expand Down
139 changes: 0 additions & 139 deletions .docz/app/db.json

This file was deleted.

14 changes: 0 additions & 14 deletions .docz/app/imports.js

This file was deleted.

17 changes: 0 additions & 17 deletions .docz/app/index.jsx

This file was deleted.

7 changes: 0 additions & 7 deletions .docz/app/root.jsx

This file was deleted.

11 changes: 11 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#root = true
[*]
indent_style = space
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
max_line_length = 80
indent_size = 2
[*.md]
trim_trailing_whitespace = false
27 changes: 0 additions & 27 deletions .eslintrc.js

This file was deleted.

5 changes: 5 additions & 0 deletions .github/pr-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
feature: ['feature/*', 'feat/*']
test: ['test/*', 'tests/*']
fix: ['fix/*', 'hotfix/*', 'bugfix/*', 'bug/*']
chore: chore/*
refactor: ['refactor/*', 'refactoring/*']
19 changes: 19 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
categories:
- title: Features
labels:
- feature
- enhancement
- title: Changes
labels:
- refactor
- chore
- title: Bug Fixes
labels:
- fix
- bug
- title: Tests
labels:
- test
change-template: '- $TITLE #$NUMBER (@$AUTHOR)'
template: |
$CHANGES
27 changes: 17 additions & 10 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,30 @@ on:
branches:
- master
- dev
tags:
- 'v*'

jobs:
docker:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2

- name: Publish Docker
uses: elgohr/[email protected]
uses: sergeysova/docker-publish-action@v1
with:
name: howtocards/frontend/frontend
username: sergeysova
password: ${{ secrets.GITHUB_TOKEN }}
snapshot: true
tagging: ${{contains(github.ref, 'refs/tags/v')}}
registry: docker.pkg.github.com
- name: Trigger Deploy Dev
run: |
curl -XPOST -u "sergeysova:${{secrets.GITHUB_TOKEN}}" -H "Accept: application/vnd.github.everest-preview+json" -H "Content-Type: application/json" https://api.github.com/repos/howtocards/releases/dispatches --data '{"event_type": "build_application"}'
image: howtocards/frontend/frontend
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
tag_extra: next
tag_semver: skip
semver_higher: true
# - name: Trigger deploy to Dev
# uses: peter-evans/repository-dispatch@v1
# with:
# token: ${{ secrets.TRIGGER_DEPLOY_TOKEN }}
# repository: howtocards/releases
# event-type: deploy-dev
# client-payload: '{"github": ${{ toJson(github) }}}'
12 changes: 12 additions & 0 deletions .github/workflows/pr-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: PR Labeler
on:
pull_request:
types: [opened]

jobs:
pr-labeler:
runs-on: ubuntu-latest
steps:
- uses: TimonVS/pr-labeler-action@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
13 changes: 13 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Release Drafter
on:
push:
branches:
- master

jobs:
update_release_draft:
runs-on: ubuntu-latest
steps:
- uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25 changes: 24 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

# Created by https://www.gitignore.io/api/node,windows,linux,macos
# Edit at https://www.gitignore.io/?templates=node,windows,linux,macos

Expand Down Expand Up @@ -180,3 +179,27 @@ yarn-error.log*
.docz/dist
cypress/videos
cypress/screenshots
# Start generated by mrm rmr-gitignore
!.vscode/extensions.json
!.vscode/launch.json
!.vscode/settings.json
!.vscode/tasks.json
*.code-workspace
*.lcov
*.tsbuildinfo
.cache/
.history
.idea/
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/
.tern-port
.vscode-test
.vscode/*
Icon
Thumbs.db:encryptable
dist
lerna-debug.log*
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
# End generated by mrm rmr-gitignore
6 changes: 6 additions & 0 deletions .huskyrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
"pre-commit": "lint-staged"
}
}
7 changes: 7 additions & 0 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"*.{ts,tsx,js,jsx,mjs}": ["eslint --fix", "prettier --write", "git add"],
"{*.json,.huskyrc,.prettierrc,.lintstagedrc,.eslintrc}": [
"prettier --write --parser json",
"git add"
]
}
9 changes: 9 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"arrowParens": "always",
"printWidth": 80,
"semi": true,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "all",
"useTabs": false
}
5 changes: 0 additions & 5 deletions .storybook/addons.js

This file was deleted.

Loading