Skip to content

Commit aa6e52c

Browse files
committed
chore: init
1 parent 08507d9 commit aa6e52c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+6554
-1129
lines changed

.editorconfig

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,16 @@
33
# top-most EditorConfig file
44
root = true
55

6-
# Unix-style newlines with a newline ending every file
76
[*]
8-
end_of_line = lf
97
charset = utf-8
10-
insert_final_newline = true
8+
end_of_line = lf
119
trim_trailing_whitespace = true
12-
13-
# Set default charset
14-
[*.js]
15-
indent_style = space
16-
indent_size = 2
17-
18-
[Makefile]
19-
indent_style = tab
20-
21-
[package.json]
10+
insert_final_newline = true
2211
indent_style = space
2312
indent_size = 2
2413

2514
[*.md]
2615
trim_trailing_whitespace = false
16+
17+
[Makefile]
18+
indent_style = tab

.eslintrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "@bubkoo/eslint-config"
3+
}

.github/workflows/lock.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: ⛔️ Lock Threads
2+
on:
3+
schedule:
4+
- cron: 0 0 * * *
5+
jobs:
6+
run:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: bubkoo/use-app-token@v1
10+
with:
11+
app_id: ${{ secrets.APP_ID }}
12+
private_key: ${{ secrets.PRIVATE_KEY }}
13+
variable_name: bot_token
14+
- uses: dessant/lock-threads@v2
15+
with:
16+
github-token: ${{ env.bot_token }}
17+
issue-lock-inactive-days: 365
18+
issue-lock-comment: >
19+
This thread has been automatically locked because it has not had recent
20+
activity. Please open a new issue for related bugs and link to relevant
21+
comments in this thread.
22+
process-only: issues
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: 🆖 Potential Duplicates
2+
on:
3+
issues:
4+
types: [opened, edited]
5+
jobs:
6+
run:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: bubkoo/use-app-token@v1
10+
with:
11+
app_id: ${{ secrets.APP_ID }}
12+
private_key: ${{ secrets.PRIVATE_KEY }}
13+
variable_name: bot_token
14+
- uses: bubkoo/potential-duplicates@v1
15+
with:
16+
GITHUB_TOKEN: ${{ env.bot_token }}

.github/workflows/release.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: 🚀 Release
2+
on:
3+
push:
4+
branches:
5+
- master
6+
- next
7+
- next-major
8+
- alpha
9+
- beta
10+
jobs:
11+
run:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: ⤵️ Checkout
15+
uses: actions/checkout@v2
16+
17+
- name: 🚧 Install
18+
run: yarn install
19+
20+
- name: 📦 Build
21+
run: yarn build
22+
23+
- name: ✅ Test
24+
run: yarn test
25+
26+
- name: 🔑 Generate Token
27+
uses: bubkoo/use-app-token@v1
28+
with:
29+
app_id: ${{ secrets.APP_ID }}
30+
private_key: ${{ secrets.PRIVATE_KEY }}
31+
env_name: bot_token
32+
33+
- name: 📦 Semantic Release
34+
uses: cycjimmy/semantic-release-action@v2
35+
id: semantic
36+
with:
37+
extends: '@bubkoo/semantic-release-config'
38+
extra_plugins: |
39+
@semantic-release/changelog
40+
@semantic-release/git
41+
env:
42+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
43+
GITHUB_TOKEN: ${{ env.bot_token }}
44+
GIT_AUTHOR_NAME: your-bot
45+
GIT_AUTHOR_EMAIL: [email protected]
46+
GIT_COMMITTER_NAME: your-bot
47+
GIT_COMMITTER_EMAIL: [email protected]
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: 🎗 Update Authors
2+
on:
3+
push:
4+
branches:
5+
- master
6+
- alpha
7+
- beta
8+
jobs:
9+
authors:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
with:
14+
fetch-depth: 0
15+
- uses: bubkoo/use-app-token@v1
16+
with:
17+
app_id: ${{ secrets.APP_ID }}
18+
private_key: ${{ secrets.PRIVATE_KEY }}
19+
env_name: bot_token
20+
- uses: bubkoo/update-authors@v1
21+
with:
22+
GITHUB_TOKEN: ${{ env.bot_token }}
23+
bots: false
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: 🤝 Update Contributors
2+
on:
3+
schedule:
4+
- cron: '0 1 * * *'
5+
push:
6+
branches:
7+
- master
8+
- alpha
9+
- beta
10+
jobs:
11+
contributors:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: bubkoo/use-app-token@v1
15+
with:
16+
app_id: ${{ secrets.APP_ID }}
17+
private_key: ${{ secrets.PRIVATE_KEY }}
18+
env_name: bot_token
19+
- uses: bubkoo/contributors-list@v1
20+
with:
21+
GITHUB_TOKEN: ${{ env.bot_token }}
22+
excludeUsers: semantic-release-bot ImgBotApp
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: 🔑 Update License
2+
on:
3+
schedule:
4+
- cron: '0 3 1 1 *' # At 03:00 on day-of-month 1 in January.
5+
jobs:
6+
update:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
with:
11+
fetch-depth: 0
12+
- uses: bubkoo/use-app-token@v1
13+
with:
14+
app_id: ${{ secrets.APP_ID }}
15+
private_key: ${{ secrets.PRIVATE_KEY }}
16+
env_name: bot_token
17+
- uses: FantasticFiasco/action-update-license-year@v2
18+
with:
19+
token: ${{ env.bot_token }}

.gitignore

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
.DS_Store
22
.idea
3+
.vscode
4+
.nyc_output
5+
.DS_Store
6+
.vscode
37
npm-debug.log
4-
5-
/node_modules
8+
yarn-error.log
9+
node_modules
10+
dist
11+
es
12+
lib
13+
test/coverage

.husky/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

0 commit comments

Comments
 (0)