Skip to content

Commit

Permalink
Update to latest copy
Browse files Browse the repository at this point in the history
  • Loading branch information
ariestae committed May 21, 2018
1 parent 99af4ec commit 9cd113e
Show file tree
Hide file tree
Showing 3,833 changed files with 490,279 additions and 118,479 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
117 changes: 117 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
buildstep-ssh: &buildstep-ssh
image: appleboy/drone-ssh
pull: true
host: ianthe.rem.uz
port: 22
user: root
secrets: [ ssh_key ]

buildstep-discord: &buildstep-discord
image: appleboy/drone-discord
pull: true
secrets: [ discord_webhook_id, discord_webhook_token ]

buildstep-node: &buildstep-node
image: webhippie/nodejs:latest
pull: true


workspace:
base: /srv/app
clone:
git:
image: plugins/git:1
depth: 1
tags: false

pipeline:
###############################################################################
# All Branches
# Push || Pull request -> Test -> Notify
Test:
<<: *buildstep-node
commands:
- npm install
- npm test
when:
event: pull_request

Test:
<<: *buildstep-node
commands:
- npm install
- npm test
when:
event: push
branch: development

Notify:
<<: *buildstep-discord
message: >
5etools test of {{ build.number }} to {{ build.branch }} by
{{ build.author }} finished with {{ build.status }}.
({{ build.link }})
when:
status: success
event: [ push, pull_request ]

###############################################################################
# Master Branch
# ... -> Merge -> Version Check -> Deploy
Check-version:
<<: *buildstep-ssh
script:
- cd /scripts/ && python /scripts/chk-version.py
when:
branch: master
event: [ push, pull_request ]

Update-version:
<<: *buildstep-ssh
script:
- cd /scripts/ && python /scripts/upd-version.py
when:
branch: master
event: push

Deploy-prod:
<<: *buildstep-ssh
command_timeout: 300
script:
- bash /scripts/prod-deploy.sh
when:
branch: master
event: push

###############################################################################
# Development Branch
# ... -> Deploy
Deploy-dev:
<<: *buildstep-ssh
command_timeout: 300
script:
- bash /scripts/dev-deploy.sh
when:
branch: development
event: push

###############################################################################
# All Branches
# ... -> Notify || Shame
Notify:
<<: *buildstep-discord
message: >
5etools deployment of {{ build.number }} from {{ build.branch }} by
{{ build.author }} finished with {{ build.status }}.
({{ build.link }})
when:
status: [ failure, success ]
event: push

Shame:
<<: *buildstep-ssh
script:
- python /scripts/shame.py
when:
status: failure
event: [ push, pull_request ]
7 changes: 7 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[*]
charset=utf-8
end_of_line=lf
trim_trailing_whitespace=true
insert_final_newline=false
indent_style=tab
indent_size=4
157 changes: 144 additions & 13 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,161 @@ module.exports = {
"extends": "eslint:recommended",
"env": {
"browser": true,
"es6": true
"es6": true,
"jquery": true
},
"rules": {
"block-scoped-var": "error",
"accessor-pairs": "error",
"arrow-spacing": ["error", {"before": true, "after": true}],
"block-spacing": ["error", "always"],
"brace-style": ["error", "1tbs", {"allowSingleLine": true}],
"comma-dangle": ["error", {
"arrays": "never",
"objects": "never",
"imports": "never",
"exports": "never",
"functions": "never"
}],
"comma-spacing": ["error", {"before": false, "after": true}],
"comma-style": ["error", "last"],
"constructor-super": "error",
"curly": ["error", "multi-line"],
"dot-location": ["error", "property"],
"eqeqeq": ["error", "always", {"null": "ignore"}],
"func-call-spacing": ["error", "never"],
"generator-star-spacing": ["error", {"before": true, "after": true}],
"handle-callback-err": ["error", "^(err|error)$"],
"indent": [
"error",
"tab",
{
"SwitchCase": 1
}
],
"no-alert": "error",
"no-case-declarations": "off",
"key-spacing": ["error", {"beforeColon": false, "afterColon": true}],
"keyword-spacing": ["error", {"before": true, "after": true}],
"new-cap": ["error", {"newIsCap": true, "capIsNew": false}],
"new-parens": "error",
"no-array-constructor": "error",
"no-caller": "error",
"no-class-assign": "error",
"no-compare-neg-zero": "error",
"no-cond-assign": "error",
"no-const-assign": "error",
"no-constant-condition": ["error", {"checkLoops": false}],
"no-control-regex": "error",
"no-debugger": "error",
"no-delete-var": "error",
"no-dupe-args": "error",
"no-dupe-class-members": "error",
"no-dupe-keys": "error",
"no-duplicate-case": "error",
"no-empty-character-class": "error",
"no-empty-pattern": "error",
"no-eval": "error",
"no-ex-assign": "error",
"no-extra-bind": "error",
"no-extra-boolean-cast": "error",
"no-extra-parens": ["error", "functions"],
"no-fallthrough": "error",
"no-floating-decimal": "error",
"no-func-assign": "error",
"no-global-assign": "error",
"no-implied-eval": "error",
"no-inner-declarations": ["error", "functions"],
"no-invalid-regexp": "error",
"no-irregular-whitespace": "error",
"no-iterator": "error",
"no-label-var": "error",
"no-labels": ["error", {"allowLoop": false, "allowSwitch": false}],
"no-lone-blocks": "error",
"no-mixed-operators": ["error", {
"groups": [
["==", "!=", "===", "!==", ">", ">=", "<", "<="],
["&&", "||"],
["in", "instanceof"]
],
"allowSamePrecedence": true
}],
"no-mixed-spaces-and-tabs": "error",
"no-multi-spaces": "error",
"no-multi-str": "error",
"no-multiple-empty-lines": ["error", {"max": 1, "maxEOF": 0}],
"no-negated-in-lhs": "error",
"no-new": "error",
"no-new-func": "error",
"no-new-object": "error",
"no-new-require": "error",
"no-new-symbol": "error",
"no-new-wrappers": "error",
"no-obj-calls": "error",
"no-octal": "error",
"no-octal-escape": "error",
"no-path-concat": "error",
"no-proto": "error",
"no-redeclare": "error",
"no-regex-spaces": "error",
"no-return-await": "error",
"no-self-assign": "error",
"no-self-compare": "error",
"no-sequences": "error",
"no-shadow-restricted-names": "error",
"no-sparse-arrays": "error",
"no-template-curly-in-string": "error",
"no-this-before-super": "error",
"no-throw-literal": "error",
"no-trailing-spaces": "error",
"no-undef": "off",
"no-unused-expressions": "error",
"no-undef-init": "error",
"no-unexpected-multiline": "error",
"no-unmodified-loop-condition": "error",
"no-unneeded-ternary": ["error", {"defaultAssignment": false}],
"no-unreachable": "error",
"no-unsafe-finally": "error",
"no-unsafe-negation": "error",
"no-unused-expressions": ["error", {
"allowShortCircuit": true,
"allowTernary": true,
"allowTaggedTemplates": true
}],
"no-unused-vars": "off",
"no-useless-escape": "off",
"no-use-before-define": ["error", {"functions": false, "classes": false, "variables": false}],
"no-useless-call": "error",
"no-useless-computed-key": "error",
"no-useless-constructor": "error",
"no-useless-escape": "error",
"no-useless-rename": "error",
"no-useless-return": "error",
"no-whitespace-before-property": "error",
"no-with": "error",
"prefer-const": [
"warn",
{
"destructuring": "any",
"ignoreReadBeforeAssign": false
"object-property-newline": ["error", {"allowMultiplePropertiesPerLine": true}],
"one-var": ["error", {"initialized": "never"}],
"operator-linebreak": ["error", "after", {"overrides": {"?": "before", ":": "before"}}],
"padded-blocks": ["error", {"blocks": "never", "switches": "never", "classes": "never"}],
"prefer-promise-reject-errors": "error",
"rest-spread-spacing": ["error", "never"],
"semi-spacing": ["error", {"before": false, "after": true}],
"space-before-blocks": ["error", "always"],
"space-before-function-paren": ["error", "always"],
"space-in-parens": ["error", "never"],
"space-infix-ops": "error",
"space-unary-ops": ["error", {"words": true, "nonwords": false}],
"spaced-comment": ["error", "always", {
"line": {"markers": ["*package", "!", "/", ",", "="]},
"block": {
"balanced": true,
"markers": ["*package", "!", ",", ":", "::", "flow-include"],
"exceptions": ["*"]
}
]
}],
"symbol-description": "error",
"template-curly-spacing": ["error", "never"],
"template-tag-spacing": ["error", "never"],
"unicode-bom": ["error", "never"],
"use-isnan": "error",
"valid-typeof": ["error", {"requireStringLiterals": true}],
"wrap-iife": ["error", "any", {"functionPrototypeMethods": true}],
"yield-star-spacing": ["error", "both"],
"yoda": ["error", "never"]
}
}
};
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
desktop.ini
node_modules

# IntelliJ project files
.idea/
*.iml
33 changes: 29 additions & 4 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,31 @@
{
"extends": "stylelint-config-standard",
"rules": {
"indentation": "tab"
}
"extends": "stylelint-config-sass-guidelines",
"rules": {
"indentation": "tab",
"order/properties-order": [
"position",
"z-index",
"top",
"right",
"bottom",
"left",
"margin",
"margin-top",
"margin-right",
"margin-bottom",
"margin-left",
"padding",
"padding-top",
"padding-right",
"padding-bottom",
"padding-left"
],
"order/properties-alphabetical-order": null,
"color-named": "always-where-possible",
"selector-no-qualifying-type": null,
"selector-max-compound-selectors": null,
"selector-max-id": null,
"selector-class-pattern": null,
"max-nesting-depth": null
}
}
Loading

0 comments on commit 9cd113e

Please sign in to comment.