Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: initial scaffolding #1

Merged
merged 11 commits into from
Feb 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .browserslistrc
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
9 changes: 9 additions & 0 deletions .editorconfig
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
5 changes: 5 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.docs/
coverage/
dist/
docusaurus.config.js
node_modules/
18 changes: 18 additions & 0 deletions .eslintrc.js
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',
},
};
90 changes: 90 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report_template.yml
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
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blank_issues_enabled: false
41 changes: 41 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request_template.yml
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"
12 changes: 12 additions & 0 deletions .github/actions/install-yq/action.yml
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
22 changes: 22 additions & 0 deletions .github/actions/use-dependencies/action.yml
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
23 changes: 23 additions & 0 deletions .github/pull_request_template.md
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
35 changes: 35 additions & 0 deletions .github/workflows/deploy_documentation.yml
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]
70 changes: 70 additions & 0 deletions .github/workflows/pull_request_checks.yml
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
Loading
Loading