Skip to content

Commit

Permalink
Merge remote-tracking branch 'new/next' into next
Browse files Browse the repository at this point in the history
  • Loading branch information
alimd committed Sep 18, 2023
2 parents ed20a1b + ed313fc commit 8fb884e
Show file tree
Hide file tree
Showing 138 changed files with 17,057 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# EditorConfig is awesome: https://EditorConfig.org

root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
max_line_length = 120

[*.{js,ts}]
block_comment_start = /**
block_comment = *
block_comment_end = */

[*.md]
trim_trailing_whitespace = false
6 changes: 6 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
*.js
*.d.ts
/demo/es-bench/
/uniquely/flight-finder-pwa
node_modules
_data
69 changes: 69 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{
"root": true,
"extends": [
"eslint:recommended",
"google",
"plugin:@typescript-eslint/strict",
"plugin:@typescript-eslint/stylistic",
// "plugin:@typescript-eslint/strict-type-checked",
// "plugin:@typescript-eslint/stylistic-type-checked",
"plugin:import/recommended",
"plugin:import/typescript",
"plugin:wc/best-practice",
"plugin:lit/recommended"
],
"env": {
"shared-node-browser": true,
"es2022": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": true,
"ecmaVersion": 2021,
"sourceType": "module"
},
"plugins": ["@typescript-eslint", "import", "wc"],
"settings": {
"import/resolver": {
"typescript": {
"alwaysTryTypes": true,
"project": ["**/tsconfig.json"],
"projectFolderIgnoreList": ["**/node_modules/**"]
},
"node": true
},
"wc": {
"elementBaseClasses": ["LitElement"]
}
},
"rules": {
"max-len": ["error", {"code": 300}],
"no-eval": ["error", {"allowIndirect": true}],
"no-floating-decimal": "error",
"space-infix-ops": "error",
"new-cap": ["error", {"capIsNewExceptionPattern": "Mixin$"}],
"brace-style": ["error", "stroustrup", {"allowSingleLine": true}],
"operator-linebreak": ["error", "after", {"overrides": {"?": "before", ":": "before"}}],
"import/order": [
"error",
{
"groups": ["builtin", "external", "internal", ["parent", "sibling", "index"], "object", "unknown", "type"],
"newlines-between": "always",
"warnOnUnassignedImports": true,
"alphabetize": {
"order": "asc",
"caseInsensitive": true
}
}
],
"@typescript-eslint/prefer-string-starts-ends-with": "off",
"lit/attribute-value-entities": "off",
"@typescript-eslint/no-dynamic-delete": "off",
"import/no-unresolved": "off",
"wc/guard-super-call": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"no-throw-literal": "off",
"require-jsdoc": "off",
"valid-jsdoc": "off"
}
}
5 changes: 5 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
cloud/classic/lib/* filter=crypt diff=crypt merge=crypt
ssh-* filter=crypt diff=crypt merge=crypt
**/secret/** filter=crypt diff=crypt merge=crypt
*.env filter=crypt diff=crypt merge=crypt
*.http filter=crypt diff=crypt merge=crypt
101 changes: 101 additions & 0 deletions .gitconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
[user]
# name = Ali Mihandoost
# email = [email protected]

[alias]
c = commit -m
ca = commit -am
cl = clone
cl1 = clone --depth=1
pl = pull --prune --progress --autostash --rebase=true
plm = pull --prune --progress --autostash --rebase=false
p = push
pp = push --prune
pa = push --all
pt = push --tags
b = branch
ba = branch -avv
bd = push origin --delete
s = status -s
st = stash -u
sp = stash pop
m = merge
r = rebase
rc = rebase --continue
ra = rebase --abort
rs = rebase --skip
co = checkout
sw = switch
f = fetch
chp = cherry-pick
d = diff --color --color-words --abbrev
rn = !"git pl && git rebase origin/${1:-next} && git push -f #"
feat = !"git fetch && git switch -c feat/$1 origin/next && git push -u #"
sep = !"git fetch && git switch -c feat/$1 origin/v2 && shift && git cherry-pick $@ && git push -u && gh pr create --assignee @me --base v2 --fill --web #"
l = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --
# Show the diff between the latest commit and the current state
df = !"git diff-index --quiet HEAD -- || clear; git --no-pager diff --patch-with-stat"
ru = rebase-update # depot_tools specific
t = tag -ln3

hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
type = cat-file -t
dump = cat-file -p

[help]
autocorrect = 1

[push]
default = current

[pull]
rebase = false

# so much color
[color]
ui = always

[color "diff"]
meta = yellow bold
commit = green bold
frag = magenta bold
old = red bold
new = green bold
whitespace = red reverse

[color "diff-highlight"]
oldNormal = red bold
oldHighlight = "red bold 52"
newNormal = "green bold"
newHighlight = "green bold 22"

[color "branch"]
current = yellow reverse
local = yellow
remote = green

[color "status"]
added = yellow
changed = green
untracked = cyan

[http]
sslVerify = false

# [credential]
# helper = manager

[core]
autocrlf = input

[init]
defaultBranch = main

[commit]
gpgsign = true

[filter "lfs"]
process = git-lfs filter-process
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @AliMD
81 changes: 81 additions & 0 deletions .github/ISSUE_TEMPLATE/1-bug-report.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
name: Bug Report
description: Report a bug to help us improve
labels:
- bug

body:
- type: dropdown
id: affected-packages
attributes:
label: Package(s)
description: Which @alwatr/* package(s) are the source of the bug?
options:
- fetch
- logger
- router
- signal
- Don't known / other
multiple: true
validations:
required: true

- type: textarea
id: description
attributes:
label: Description
description: A clear and concise description of what the bug is.
validations:
required: true

- type: input
id: reproduction
attributes:
label: reproduction link
description: Please provide a link to a minimal reproduction of the bug, for example use [JSBin](https://jsbin.com/) to make a demo.

- type: textarea
id: exception-or-error
attributes:
label: Please provide the exception or error you saw (Preferably with a screenshot)

- type: textarea
id: device
attributes:
label: Device or platform
description: What is your device and platform?
placeholder: |
Device: Desktop or Phone
OS: iOS 14.1
Browser: Chrome
Version: 100
validations:
required: true

- type: textarea
id: registeredList
attributes:
label: Alwatr registered list
description: Please provide the Alwatr registered list by running `console.log(JSON.stringify(window.Alwatr.registeredList, null, 2));` in the browser console.
render: console
placeholder: |
[
{
"name": "@alwatr/logger",
"version": "1.2.3"
},
{
"name": "@alwatr/signal",
"version": "1.2.3"
},
{
"name": "@alwatr/router",
"version": "1.2.3"
}
]
validations:
required: true

- type: textarea
id: other
attributes:
label: Anything else?
43 changes: 43 additions & 0 deletions .github/ISSUE_TEMPLATE/2-feature-request.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: 'Feature Request'
description: Suggest a feature for Alwatr packages

body:
- type: dropdown
id: affected-packages
attributes:
label: Package(s)
description: Which @alwatr/* package(s) are the source of the bug?
options:
- fetch
- logger
- router
- signal
- token
- nano-server
- element
- i18n
- math
- font
- Don't known / other
multiple: true
validations:
required: true

- type: textarea
id: description
attributes:
label: Description
validations:
required: true

- type: textarea
id: proposed-solution
attributes:
label: Proposed solution
validations:
required: true

- type: textarea
id: alternatives-considered
attributes:
label: Alternatives considered
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: Telegram group of Alwatr developers
url: 'https://t.me/AlwatrWG'
about: Communication with developers
45 changes: 45 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
-
package-ecosystem: github-actions
directory: /
open-pull-requests-limit: 20
reviewers:
- AliMD
schedule:
interval: daily
labels:
- ci
- priority-low
- maintenance
groups:
github-actions:
patterns:
- "*"

-
package-ecosystem: npm
directory: /
versioning-strategy: increase
open-pull-requests-limit: 20
reviewers:
- AliMD
schedule:
interval: daily
labels:
- dependencies
- ci
- priority-low
- maintenance
groups:
production-dependencies:
dependency-type: "production"
development-dependencies:
dependency-type: "development"
exclude-patterns:
- "*lint*"
lint-dependencies:
patterns:
- "*lint*"
Loading

0 comments on commit 8fb884e

Please sign in to comment.