Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Commit

Permalink
Merge branch 'main' into fix/handle-imap-disabled-warning
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-audi committed Oct 6, 2023
2 parents 15066a9 + 0c4cbbe commit 01aa2db
Show file tree
Hide file tree
Showing 313 changed files with 10,803 additions and 5,438 deletions.
9 changes: 9 additions & 0 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,15 @@
"contributions": [
"projectManagement"
]
},
{
"login": "sfaria27",
"name": "Shane",
"avatar_url": "https://avatars.githubusercontent.com/u/81697281?v=4",
"profile": "https://github.com/sfaria27",
"contributions": [
"doc"
]
}
],
"contributorsPerLine": 7,
Expand Down
4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
build
dist
vite.config.ts
.eslintrc
49 changes: 49 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"root": true,
"env": {
"browser": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:vue/vue3-recommended",
"plugin:prettier/recommended"
],
"parser": "vue-eslint-parser",
"plugins": [ "@typescript-eslint" ],
"parserOptions": {
"parser": "@typescript-eslint/parser",
"sourceType": "module",
"ecmaVersion": "latest",
"project": ["./tsconfig.json"],
"extraFileExtensions": [ ".vue" ]
},
"rules": {
// https://eslint.org/docs/rules/
"no-fallthrough": "off", // https://github.com/ionic-team/eslint-config/issues/7
"no-constant-condition": "off",
"no-unused-vars": "off",

// https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/eslint-plugin/docs/rules
"@typescript-eslint/no-this-alias": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/explicit-module-boundary-types": [
"error", { "allowArgumentsExplicitlyTypedAsAny": true }],

// https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/eslint-plugin/docs/rules
"@typescript-eslint/array-type": "error",
"@typescript-eslint/consistent-type-assertions": "error",
"@typescript-eslint/consistent-type-imports": "error",
"@typescript-eslint/prefer-for-of": "error",
"@typescript-eslint/prefer-optional-chain": "error",

"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_"
}
]
}
}
48 changes: 46 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,62 @@
version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
directory: "/vue3"
schedule:
interval: "weekly"
commit-message:
prefix: "npm"
labels:
- "chore"
groups:
minor:
patterns:
- "*"
update-types:
- "minor"
- "patch"

- package-ecosystem: "npm"
directory: "/vue2"
schedule:
interval: "weekly"
commit-message:
prefix: "npm"
labels:
- "chore"
groups:
minor:
patterns:
- "*"
update-types:
- "minor"
- "patch"

- package-ecosystem: "npm"
directory: "/example/vue3"
schedule:
interval: "weekly"
commit-message:
prefix: "npm"
labels:
- "chore"
groups:
all:
patterns:
- "*"

- package-ecosystem: "npm"
directory: "/example"
directory: "/example/vue2"
schedule:
interval: "weekly"
commit-message:
prefix: "npm"
labels:
- "chore"
groups:
all:
patterns:
- "*"

- package-ecosystem: "github-actions"
directory: "/"
Expand All @@ -26,3 +66,7 @@ updates:
prefix: "gh-action"
labels:
- "chore"
groups:
all:
patterns:
- "*"
40 changes: 32 additions & 8 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ concurrency:
cancel-in-progress: true

jobs:
analyze:
name: Analyze
vue2:
name: Analyze Vue 2
runs-on: ubuntu-22.04
permissions:
actions: read
Expand All @@ -33,17 +33,41 @@ jobs:
with:
languages: javascript

- uses: dart-lang/[email protected]

- uses: actions/setup-node@v3
with:
node-version: 18

- name: Install JS dependencies
run: npm ci
- name: Build Vue2
run: make vue2

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2

vue3:
name: Analyze Vue 3
runs-on: ubuntu-22.04
permissions:
actions: read
contents: read
security-events: write

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 1

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: javascript

- uses: actions/setup-node@v3
with:
node-version: 18

- name: Run Build
run: npm run build
- name: Build Vue3
run: make vue3

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
42 changes: 35 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ concurrency:
cancel-in-progress: true

jobs:
release:
vue3:
if: github.event.pull_request.merged == true && startsWith(github.head_ref, 'release/')
environment: Production
runs-on: ubuntu-latest
Expand All @@ -36,11 +36,8 @@ jobs:
registry-url: 'https://registry.npmjs.org'
scope: '@mytiki'

- name: Install JS dependencies
run: npm ci

- name: Build Dist
run: npm run build
- name: Build for Vue 3
run: make vue3

- name: Get version
id: version
Expand All @@ -55,7 +52,7 @@ jobs:
uses: actions/configure-pages@v3

- name: Build Docs
run: npx typedoc src/main.ts
run: npx typedoc src/main.ts --skipErrorChecking

- name: Upload artifact
uses: actions/upload-pages-artifact@v2
Expand All @@ -70,3 +67,34 @@ jobs:
uses: ncipollo/release-action@v1
with:
tag: ${{ steps.version.outputs.current }}

vue2:
if: github.event.pull_request.merged == true && startsWith(github.head_ref, 'release/')
environment: Production
runs-on: ubuntu-latest
outputs:
tag: ${{ steps.tag.outputs.version }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18
registry-url: 'https://registry.npmjs.org'
scope: '@mytiki'

- name: Build for Vue 2
run: make vue2

- name: Get version
id: version
run: echo "current=$(npm pkg get version | tr -d '"')" >> $GITHUB_OUTPUT

- name: Publish
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
18 changes: 8 additions & 10 deletions .github/workflows/version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,17 @@ jobs:
token: ${{ github.token }}
branch: ${{ steps.getpr.outputs.branch }}

- name: Set JS Version
id: package_version
- name: Set JS Version (vue3)
uses: KageKirin/set-node-package-version@v1
with:
file: vue3/package.json
version: ${{ steps.semver.outputs.nextStrict }}

- name: Setup Node
uses: actions/setup-node@v3
- name: Set JS Version (vue2)
uses: KageKirin/set-node-package-version@v1
with:
node-version: 18

- name: Install JS dependencies
run: npm ci
file: vue2/package.json
version: ${{ steps.semver.outputs.nextStrict }}

- name: Commit Changes
continue-on-error: true
Expand All @@ -58,7 +56,7 @@ jobs:
run: |
git config --global user.email "[email protected]"
git config --global user.name "GH Action"
git add package.json
git add package-lock.json
git add vue2/package.json
git add vue3/package.json
git commit -m 'version bump'
git push
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
# Dev garbage
.idea/
node_modules/
.vscode/
*.map
.DS_Store
.sourcemaps

# Generated outputs
dist/
docs

# Generated build files
/package.json
/package-lock.json
/src/main.ts
/vite.config.ts
Loading

0 comments on commit 01aa2db

Please sign in to comment.