-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from svoboda-rabstvo/develop
ci: add release, deploy and linting
- Loading branch information
Showing
13 changed files
with
8,350 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[*] | ||
end_of_line = lf | ||
charset = utf-8 | ||
quote_type = single | ||
indent_size = 4 | ||
indent_style = tab | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
**/node_modules/** | ||
**/dist/** | ||
**/build/** | ||
serviceWorker.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"extends": ["airbnb-base", "standard-jsx", "react-app"], | ||
"env" : { | ||
"browser": true, | ||
"node": true, | ||
"es6" : true | ||
}, | ||
"settings": { | ||
"react": { | ||
"version": "16.0" | ||
} | ||
}, | ||
"plugins": [ | ||
"react" | ||
], | ||
"parserOptions": { | ||
"ecmaVersion": 2018, | ||
"ecmaFeatures": { | ||
"jsx": true | ||
}, | ||
"sourceType": "module" | ||
}, | ||
"rules": { | ||
"no-param-reassign": "off", | ||
"no-return-assign": "off", | ||
"class-methods-use-this": "off", | ||
"import/extensions": "browser", | ||
"indent": ["error", 4], | ||
"no-console": "warn", | ||
"react/jsx-no-bind": ["error", { | ||
"allowArrowFunctions": true, | ||
"allowBind": false, | ||
"ignoreRefs": true | ||
}], | ||
"react/jsx-indent-props": [2, 4], | ||
"react/jsx-indent": [2, 4], | ||
"react/no-did-update-set-state": "error", | ||
"react/no-unknown-property": "error", | ||
"react/prop-types": "error", | ||
"react/react-in-jsx-scope": "error" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
# Pull Requests for GitHub repository settings https://github.com/apps/settings | ||
repository: | ||
# A short description of the repository that will show up on GitHub | ||
description: medUni-sick-days-analisys | ||
|
||
# A URL with more information about the repository | ||
homepage: https://github.com/rss-com-lab/medUni-sick-days-analisys | ||
|
||
# Either `true` to enable issues for this repository, `false` to disable them. | ||
has_issues: true | ||
|
||
# Either `true` to enable the wiki for this repository, `false` to disable it. | ||
has_wiki: false | ||
|
||
# Either `true` to enable downloads for this repository, `false` to disable them. | ||
has_downloads: true | ||
|
||
# Updates the default branch for this repository. | ||
default_branch: master | ||
|
||
# Either `true` to allow squash-merging pull requests, or `false` to prevent | ||
# squash-merging. | ||
allow_squash_merge: false | ||
|
||
# Either `true` to allow merging pull requests with a merge commit, or `false` | ||
# to prevent merging pull requests with merge commits. | ||
allow_merge_commit: true | ||
|
||
# Either `true` to allow rebase-merging pull requests, or `false` to prevent | ||
# rebase-merging. | ||
allow_rebase_merge: false | ||
|
||
# Labels: define labels for Issues and Pull Requests | ||
# Colors and idea are from https://github.com/yoshuawuyts/github-standard-labels | ||
# and http://issuelabeling.com/ | ||
labels: | ||
- name: "Priority: High" | ||
color: FF0000 | ||
- name: "Priority: Medium" | ||
color: FF8080 | ||
- name: "Priority: Low" | ||
color: FFE6E6 | ||
- name: "Type: Bug" | ||
color: 0000FF | ||
- name: "Type: Feature" | ||
color: 4040FF | ||
- name: "Type: Maintenance" | ||
color: 8080FF | ||
- name: "Type: Question" | ||
color: BFBFFF | ||
- name: "Type: CI" | ||
color: BFBFFF | ||
- name: "Type: Documentation" | ||
color: E6E6FF | ||
- name: "Type: Test" | ||
color: 8080FF | ||
- name: "Status: Available" | ||
color: 60BF60 | ||
- name: "Status: Blocked" | ||
color: 008000 | ||
- name: "Status: In Progress" | ||
color: 60BF60 | ||
- name: "Status: On Hold" | ||
color: A8E0A8 | ||
- name: "Status: Pending" | ||
color: 0E8C0E | ||
- name: "Status: Rejected" | ||
color: DAF2DA |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
{ | ||
"branch": "master", | ||
"verifyConditions": [ | ||
"@semantic-release/github", | ||
"@semantic-release/git", | ||
"@semantic-release/changelog" | ||
], | ||
"prepare": [ | ||
"@semantic-release/changelog" | ||
], | ||
"analyzeCommits": { | ||
"releaseRules": [ | ||
{ | ||
"type": "docs", | ||
"scope": ".*md", | ||
"release": "patch" | ||
}, | ||
{ | ||
"type": "fix", | ||
"release": "patch" | ||
}, | ||
{ | ||
"type": "new", | ||
"release": "minor" | ||
}, | ||
{ | ||
"type": "perf", | ||
"release": "patch" | ||
}, | ||
{ | ||
"type": "ci", | ||
"release": "patch" | ||
}, | ||
{ | ||
"type": "feat", | ||
"release": "minor" | ||
}, | ||
{ | ||
"type": "break", | ||
"release": "major" | ||
}, | ||
{ | ||
"type": "breaking", | ||
"release": "major" | ||
} | ||
], | ||
"parserOpts": { | ||
"noteKeywords": [ | ||
"BREAKING CHANGE", | ||
"BREAKING CHANGES", | ||
"BREAKING" | ||
] | ||
} | ||
}, | ||
"publish": [ | ||
{ | ||
"path": "@semantic-release/github", | ||
"assets": [ | ||
"build" | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
language: node_js | ||
node_js: stable | ||
install: npm install | ||
script: npm run test | ||
|
||
jobs: | ||
include: | ||
- stage: test | ||
node_js: stable | ||
script: npm run test | ||
- stage: semantic release | ||
if: branch = master AND type = push | ||
node_js: stable | ||
script: npm run semantic-release | ||
before_deploy: npm run build | ||
deploy: | ||
provider: pages | ||
skip_cleanup: true | ||
github_token: $GITHUB_TOKEN # Set in the settings page of your repository, as a secure variable | ||
local_dir: 'build' | ||
keep_history: true | ||
on: | ||
branch: master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"spellright.language": [ | ||
"en", | ||
"ru" | ||
], | ||
"spellright.documentTypes": [ | ||
"markdown", | ||
"latex", | ||
"plaintext", | ||
"json", | ||
"javascript" | ||
], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
npm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Simple UI for Med Uni |
Oops, something went wrong.