Skip to content

Commit

Permalink
feat: init
Browse files Browse the repository at this point in the history
  • Loading branch information
bent10 committed Sep 26, 2023
0 parents commit d46ff86
Show file tree
Hide file tree
Showing 51 changed files with 6,413 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
---
name: '🐞 Bug Report'
about: Create a report to help us improve
---

<!--
🚨 Your issue will be CLOSED if:
- This template is removed
- Parts of this template are removed
-->

- Extension Name: <!-- the plugin(s) this issue is about -->
- Extension Version:
- Project Version:
- Device: [e.g Desktop] <!-- choose one of Desktop or Smartphone -->
- OS@version (or Browser): [e.g. [email protected], safary@11]
- Node And NPM Version: [e.g. 14.17.6 and 6.14.15]

### Description

[Describe the bug here]

**To Reproduce** _(⚠️ read below)_

<!--
🚨 We WILL CLOSED invalid issues! Please provide one by:
1. Using online IDE such as [Codepen](https://codepen.io/), [REPL.it](https://replit.com/), [CodeSandbox](https://codesandbox.io/)
2. Provide a minimal repository link (Read https://stackoverflow.com/help/minimal-reproducible-example for reference).
Please use NPM for installing dependencies!
3. Use other methods for minor issues, which you find easy to access such as screenshots or video links.
⚠️&nbsp; We don't accept ZIP files or anything like that.
-->

### Expected Behavior

### Actual Behavior

### Additional Information

<!--
Most issues can be expressed or demonstrated through the online IDE or a repository.
However, the situation may arise where some small code snippets also need to
be provided. In that situation, please add your code below using
Fenced Code Blocks (https://help.github.com/articles/creating-and-highlighting-code-blocks/).
-->
26 changes: 26 additions & 0 deletions .github/ISSUE_TEMPLATE/docs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
name: 📚 Documentations
about: 'Are the docs lacking or missing something? Tell us some new 🔥 hotness here.'
---

<!--
🚨 Your issue will be CLOSED if:
- This template is removed
- Parts of this template are removed
-->

- Extension Name: <!-- the plugin(s) this issue is about -->
- Extension Version:

Documentation Is:

<!-- Please place an x (no spaces!) in all [ ] that apply -->

- [ ] Missing
- [ ] Needed
- [ ] Confusing
- [ ] Not Sure?

**[Please explain in detail]**

### Your proposal for changes
17 changes: 17 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
name: '✨ Feature request'
about: Suggest an idea for this project
---

<!--
🚨 Your issue will be CLOSED if:
- This template is removed
- Parts of this template are removed
-->

- Extension Name: <!-- the plugin(s) this issue is about -->
- Extension Version:

### Use case

### Proposal
14 changes: 14 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"extends": [
"config:recommended",
"schedule:weekends",
"schedule:automergeWeekly",
"npm:unpublishSafe"
],
"packageRules": [
{
"matchUpdateTypes": ["minor", "patch", "pin", "digest"],
"automerge": true
}
]
}
23 changes: 23 additions & 0 deletions .github/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: 'Close stale issues and PRs'
on:
schedule:
- cron: '60 1 * * *'

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v8
with:
stale-issue-label: 'no-issue-activity'
stale-pr-label: 'no-pr-activity'
exempt-issue-labels: 'awaiting-approval,wip'
exempt-pr-labels: 'awaiting-approval,wip'
stale-issue-message: >
Hey folks! This issue has been inactive for 60 days. If it's still relevant,
could you please provide additional information or confirm whether it's still an ongoing concern?
Otherwise, we may consider closing this issue. Thank you! :wave:
stale-pr-message: >
Hey there! This pull request has been inactive for 60 days. If you're still working on it,
please provide an update or let us know if you need any assistance.
If we don't hear back, we may consider closing this pull request. Thanks! :wave:
25 changes: 25 additions & 0 deletions .github/workflows/pr-title.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: PR title format

on:
pull_request:
branches:
- '*'
types:
- opened
- reopened
- edited
- synchronize

jobs:
pr-title:
name: Check
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Check PR Title
uses: clowdhaus/actions/[email protected]
with:
on-fail-message: "Your PR title doesn't match the required format. The title should be in the conventional commit (https://www.conventionalcommits.org) format. e.g.\n\n```\nchore(plugin-name): add pr title workflow\n```"
title-regex: '^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)(\([\w|,|\-|\|]+\))?(!)?\:\s.*$'
github-token: ${{ secrets.GH_TOKEN }}
37 changes: 37 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Release
on:
repository_dispatch:
# curl -v -H "Accept: application/vnd.github.everest-preview+json" -H "Authorization: token ${GH_TOKEN}"
# https://api.github.com/repos/bent10/marked-extensions/dispatches -d '{ "event_type": "semantic-release" }'
types: [multi-semantic-release]
push:
branches:
- main
- next
- next-major
- beta
- alpha
- '*.x'

jobs:
release:
name: Releasing
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 18 # required by semantic-release
- run: npm ci
- run: npm run lint
- run: npm run build
- run: npm test

- name: Installing release dependencies
run: |
npm i -D @qiwi/multi-semantic-release @semantic-release/changelog @semantic-release/git
- name: Semantic release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx multi-semantic-release
32 changes: 32 additions & 0 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Validation
on:
pull_request:
types:
- edited
- opened
- synchronize
push:
branches:
- '*'
- '!main'

jobs:
test:
name: Node.js ${{ matrix.node-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
node-version:
- 16.10.0 # required by @typescript-eslint/eslint-plugin
os:
- ubuntu-latest
- windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run lint
- run: npm test
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
**/.cache
**/coverage
**/dist
**/node_modules
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.cache
coverage
dist
21 changes: 21 additions & 0 deletions license
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2023 Stilearning (https://stilearning.com)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
Loading

0 comments on commit d46ff86

Please sign in to comment.