Skip to content

Commit

Permalink
Merge pull request #7 from svoboda-rabstvo/develop
Browse files Browse the repository at this point in the history
ci: add release, deploy and linting
  • Loading branch information
itekaf authored May 6, 2019
2 parents cbc7b37 + f2961dc commit 9c8c4b4
Show file tree
Hide file tree
Showing 13 changed files with 8,350 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .editorconfig
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
4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
**/node_modules/**
**/dist/**
**/build/**
serviceWorker.js
42 changes: 42 additions & 0 deletions .eslintrc.json
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"
}
}
68 changes: 68 additions & 0 deletions .github/settings.yml
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ pids
*.pid
*.seed
*.pid.lock
build/

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
Expand Down
63 changes: 63 additions & 0 deletions .releaserc.json
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"
]
}
]
}
23 changes: 23 additions & 0 deletions .travis.yml
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
13 changes: 13 additions & 0 deletions .vscode/settings.json
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"
],
}
1 change: 1 addition & 0 deletions .vscode/spellright.dict
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npm
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Simple UI for Med Uni
Loading

0 comments on commit 9c8c4b4

Please sign in to comment.