-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* build: add package.json and license * build: add husky, prettier, commitlint and simple hello world * docs: add docusaurus docs * docs: add pull request template * ci: add issue templates * docs: add contributing doc * ci: add pull request check workflow * ci: add release and deploy documentation workflows * docs: add readme * build: add linting * chore: squash
- Loading branch information
1 parent
84a15cf
commit c94fff2
Showing
43 changed files
with
12,925 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[production] | ||
>0.5% | ||
not dead | ||
not op_mini all | ||
|
||
[development] | ||
last 1 chrome version | ||
last 1 firefox version | ||
last 1 safari version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.docs/ | ||
coverage/ | ||
dist/ | ||
docusaurus.config.js | ||
node_modules/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
module.exports = { | ||
root: true, | ||
env: { | ||
node: true, | ||
}, | ||
parser: '@typescript-eslint/parser', | ||
plugins: ['@typescript-eslint'], | ||
extends: [ | ||
'eslint:recommended', | ||
'plugin:@typescript-eslint/recommended', | ||
'prettier', | ||
], | ||
rules: { | ||
'@typescript-eslint/no-inferrable-types': 'off', | ||
'@typescript-eslint/no-namespace': ['error', { allowDeclarations: true }], | ||
'prefer-const': 'off', | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
name: "\U0001F41B Bug Report" | ||
description: "File a bug report" | ||
title: "[Bug]: " | ||
labels: ["\U0001F41B bug"] | ||
assignees: | ||
- kieranroneill | ||
body: | ||
# welcome | ||
- type: markdown | ||
attributes: | ||
value: | | ||
Thanks for taking the time to fill out this bug report, all issues are welcome and remember, you're awesome! | ||
# contact | ||
- type: input | ||
id: contact | ||
attributes: | ||
label: Contact Details | ||
description: How can we get in touch with you if we need more info? | ||
placeholder: e.g. [email protected] | ||
validations: | ||
required: false | ||
# version | ||
- type: dropdown | ||
id: version | ||
attributes: | ||
label: Version | ||
description: What version of the software are you running? | ||
options: | ||
- 1.0.0 | ||
validations: | ||
required: true | ||
# browser | ||
- type: dropdown | ||
id: browsers | ||
attributes: | ||
label: What browser are you seeing the problem on? | ||
multiple: true | ||
options: | ||
- Brave | ||
- Chrome | ||
- Edge | ||
- Firefox | ||
validations: | ||
required: true | ||
# description | ||
- type: textarea | ||
id: description | ||
attributes: | ||
label: Description | ||
description: A detailed description of what is occurring. | ||
placeholder: Tell us what you see! | ||
value: "A bug happened!" | ||
validations: | ||
required: true | ||
# steps to reproduce | ||
- type: textarea | ||
id: reproduction | ||
attributes: | ||
label: Steps To Reproduce | ||
description: Use a simple bulleted pointed list of the steps to reproduce. | ||
placeholder: "* Light a small spark..." | ||
validations: | ||
required: true | ||
# expected Results | ||
- type: textarea | ||
id: expected | ||
attributes: | ||
label: Expected Results | ||
description: What you expected to happen. | ||
placeholder: My NFDomain data! | ||
validations: | ||
required: true | ||
# actual Results | ||
- type: textarea | ||
id: actual | ||
attributes: | ||
label: Actual Results | ||
description: What actually occurs. | ||
placeholder: The quantum realm is threatened and we must miniaturize to save it! | ||
validations: | ||
required: true | ||
# logs | ||
- type: textarea | ||
id: browser-console-logs | ||
attributes: | ||
label: Relevant browser console output | ||
description: Please copy and paste any relevant browser console output. This will be automatically formatted into code, so no need for backticks. | ||
render: shell | ||
validations: | ||
required: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
blank_issues_enabled: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: "✨ Feature Request" | ||
description: Suggest an idea or feature for ARC-0027 SDK | ||
title: "[Feature]: " | ||
labels: ["✨ feature"] | ||
assignees: | ||
- agoralabs-bot | ||
|
||
body: | ||
# welcome | ||
- type: markdown | ||
attributes: | ||
value: | | ||
Thanks for taking the time to fill out this feature request, all features are welcome and remember, you're awesome! | ||
- type: textarea | ||
attributes: | ||
label: What is your idea or feature suggestion? | ||
description: Tell us, what idea or feature you suggest to be added to ARC-0027 SDK. | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
attributes: | ||
label: Benefits | ||
description: Tell us, how this this will be beneficial to ARC-0027 SDK. | ||
validations: | ||
required: false | ||
|
||
- type: textarea | ||
attributes: | ||
label: Where can we find information about this? | ||
description: If you are proposing an integration or third-party plugins, please add relevant links and documentation. | ||
validations: | ||
required: false | ||
|
||
- type: dropdown | ||
attributes: | ||
label: Are you willing to provide a PR to address this? | ||
options: | ||
- "Yes" | ||
- "No" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
name: "Install yq" | ||
|
||
description: "Downloads and installs yq" | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: "📦 Install yq" | ||
run: | | ||
sudo wget https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 -O /usr/bin/yq | ||
sudo chmod +x /usr/bin/yq | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: "Use Dependencies" | ||
|
||
description: "Checks if the dependencies have been cached with the hash of the yarn.lock file." | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: "🔧 Setup" | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20.9.0 | ||
cache: 'yarn' | ||
- name: "💾 Cache dependencies" | ||
uses: actions/cache@v3 | ||
id: cache-dependencies | ||
with: | ||
path: node_modules | ||
key: ${{ runner.os }}-node-${{ hashFiles('yarn.lock') }} | ||
- name: "📦 Install" | ||
if: steps.cache-dependencies.outputs.cache-hit != 'true' | ||
run: yarn install --ignore-scripts | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<!-- | ||
The title should summarise what the purpose of this change, | ||
⚠️**NOTE:** The title must conform to the conventional commit message format outlined in CONTRIBUTING.md document, at the root of the project. This is to ensure the merge commit to the main branch is picked up by the CI and creates an entry in the CHANGELOG.md. | ||
--> | ||
|
||
# Description | ||
<!-- Describe your changes in detail --> | ||
|
||
# Type of change | ||
<!-- What type of change does this change introduce? Put an 'x' in all the boxes that apply. --> | ||
|
||
- [ ] 💥 Breaking change (fix or feature that would cause existing functionality to not work as expected) | ||
- [ ] 🏗️ Build configuration (CI configuration, scaffolding etc.) | ||
- [ ] 🐛 Bug fix (non-breaking change which fixes an issue) | ||
- [ ] 📝 Documentation update(s) | ||
- [ ] 📦 Dependency update(s) | ||
- [ ] 👩🏽💻 Improve developer experience | ||
- [ ] ⚡ Improve performance | ||
- [ ] ✨ New feature (non-breaking change which adds functionality) | ||
- [ ] ♻ Refactor | ||
- [ ] ⏪ Revert changes | ||
- [ ] 🧪 New tests or updates to existing tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: "Deploy Documentation" | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
install: | ||
name: "Install" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: "🛎 Checkout" | ||
uses: actions/checkout@v4 | ||
- name: "🔧 Setup" | ||
uses: ./.github/actions/use-dependencies | ||
|
||
deploy: | ||
name: "Deploy" | ||
needs: install | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: "🛎 Checkout" | ||
uses: actions/checkout@v4 | ||
- name: "🔧 Setup" | ||
uses: ./.github/actions/use-dependencies | ||
- name: "🏗️ Build" | ||
run: yarn docs:build | ||
- name: "🚀 Deploy" | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.WRITE_REPOS_TOKEN }} | ||
publish_dir: ./.docs | ||
user_name: agoralabs-bot | ||
user_email: [email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
name: "Pull Request Checks" | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
## | ||
# install | ||
## | ||
|
||
install: | ||
name: "Install" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: "🛎 Checkout" | ||
uses: actions/checkout@v4 | ||
- name: "🔧 Setup" | ||
uses: ./.github/actions/use-dependencies | ||
|
||
## | ||
# lint, build documentation, build package and test | ||
## | ||
|
||
lint: | ||
name: "Lint" | ||
needs: install | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: "🛎 Checkout" | ||
uses: actions/checkout@v4 | ||
- name: "🔧 Setup" | ||
uses: ./.github/actions/use-dependencies | ||
- name: "👕 Lint" | ||
run: yarn lint | ||
|
||
build_documenation: | ||
name: "Build Documentation" | ||
needs: install | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: "🛎 Checkout" | ||
uses: actions/checkout@v4 | ||
- name: "🔧 Setup" | ||
uses: ./.github/actions/use-dependencies | ||
- name: "🏗️ Build" | ||
run: yarn docs:build | ||
|
||
build_pakage: | ||
name: "Build Package" | ||
needs: install | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: "🛎 Checkout" | ||
uses: actions/checkout@v4 | ||
- name: "🔧 Setup" | ||
uses: ./.github/actions/use-dependencies | ||
- name: "🏗️ Build" | ||
run: yarn build | ||
|
||
test: | ||
name: "Test" | ||
needs: install | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: "🛎 Checkout" | ||
uses: actions/checkout@v4 | ||
- name: "🔧 Setup" | ||
uses: ./.github/actions/use-dependencies | ||
- name: "🧪 Test" | ||
run: yarn test |
Oops, something went wrong.