This commit is contained in:
Brian Zalewski 2022-12-24 21:16:40 -05:00
parent f42899b107
commit 0930f71263
23 changed files with 20074 additions and 3 deletions

2
.devcontainer/Dockerfile Normal file
View file

@ -0,0 +1,2 @@
# hadolint disable=DL3007
FROM megabytelabs/devcontainer:latest

View file

@ -0,0 +1,82 @@
{
"dockerFile": "Dockerfile",
"extensions": [
"Angular.ng-template",
"attilabuti.vscode-mjml",
"bierner.markdown-emoji",
"ChakrounAnas.turbo-console-log",
"ChFlick.firecode",
"chrmarti.regex",
"cweijan.vscode-mysql-client2",
"DavidAnson.vscode-markdownlint",
"dbaeumer.vscode-eslint",
"denoland.vscode-deno",
"eamodio.gitlens",
"EditorConfig.EditorConfig",
"esbenp.prettier-vscode",
"ericadamski.carbon-now-sh",
"firsttris.vscode-jest-runner",
"formulahendry.auto-rename-tag",
"formulahendry.code-runner",
"GitHub.vscode-pull-request-github",
"GitLab.gitlab-workflow",
"GoogleCloudTools.cloudcode",
"golang.Go",
"HashiCorp.terraform",
"hediet.vscode-drawio",
"IBM.output-colorizer",
"Kelvin.vscode-sshfs",
"mads-hartmann.bash-ide-vscode",
"ms-azuretools.vscode-docker",
"ms-kubernetes-tools.vscode-kubernetes-tools",
"ms-vscode-remote.remote-containers",
"ms-vscode-remote.remote-ssh",
"ms-vscode-remote.remote-wsl",
"ms-python.python",
"ms-vscode.PowerShell",
"MS-vsliveshare.vsliveshare",
"MS-vsliveshare.vsliveshare-audio",
"njpwerner.autodocstring",
"nrwl.angular-console",
"paulvarache.vscode-taskfile",
"philnash.ngrok-for-vscode",
"PKief.material-icon-theme",
"pnp.polacode",
"pranaygp.vscode-css-peek",
"quicktype.quicktype",
"rbbit.typescript-hero",
"redhat.ansible",
"redhat.vscode-yaml",
"richie5um2.vscode-sort-json",
"Rubymaniac.vscode-paste-and-indent",
"salbert.comment-ts",
"shd101wyy.markdown-preview-enhanced",
"softwaredotcom.swdc-vscode",
"steoates.autoimport",
"stylelint.vscode-stylelint",
"timonwong.shellcheck",
"toba.vsfire",
"tyriar.sort-lines",
"usernamehw.errorlens",
"valentjn.vscode-ltex",
"VisualStudioExptTeam.vscodeintellicode",
"vsciot-vscode.vscode-arduino",
"vsls-contrib.codetour",
"vsls-contrib.gistfs",
"wayou.vscode-todo-highlight",
"wix.vscode-import-cost",
"yatki.vscode-surround"
],
"forwardPorts": [2222, 5901, 6080, 8001, 8014],
"hostRequirements": {
"cpus": 1,
"memory": "4gb",
"storage": "16gb"
},
"mounts": ["source=dind-var-lib-docker,target=/var/lib/docker,type=volume"],
"name": "Megabyte Labs Development Environment",
"postCreateCommand": "[ -f start.sh ] && (bash start.sh || true)",
"remoteUser": "megabyte",
"runArgs": ["--init", "--privileged", "--shm-size=1g"],
"settings": {}
}

5
.github/FUNDING.yml vendored Normal file
View file

@ -0,0 +1,5 @@
---
github: ProfessorManhattan
open_collective: megabytelabs
patreon: ProfessorManhattan
custom: [donate.givedirectly.org]

99
.github/ISSUE_TEMPLATE/BugReport.yml vendored Normal file
View file

@ -0,0 +1,99 @@
---
name: '🐛 Bug Report'
description: Stumbled upon an error? Submit a bug report.
labels: [question]
body:
- type: markdown
attributes:
value: |
## Yikes! That Was Not Supposed to Happen
Sorry you had to find out the hard way that even the best software does not always work
perfectly in every type of environment, 24/7. Your bug report is appreciated. After
you have taken the time to gather the information needed to reproduce the issue, please
fill out the bug report form below.
- type: dropdown
id: type
attributes:
label: '❔ What are you experiencing an issue with?'
options:
- Latest Release
- Prior Release
- Development Issue
- Documentation
- Other
validations:
required: true
- type: input
id: version
attributes:
label: '❔ Version'
description: Enter the version number, the commit ID, or a link to the release that has the issue.
placeholder: 'Version 2.4.0'
validations:
required: true
- type: textarea
id: description
attributes:
label: '🐞 Description'
description: Enter a clear and concise description of the problem.
validations:
required: true
- type: textarea
id: steps
attributes:
label: '⏺️ Steps To Reproduce'
description: '**Optional** Enter the steps required to reproduce the behavior. Be sure to include environment
information, as appropriate.'
placeholder: |
1. In this environment...
2. With this config...
3. Run '...'
4. See error...
validations:
required: false
- type: textarea
id: logs
attributes:
label: '📒 Relevant Log Output'
description: '**Optional** Please copy and paste any relevant log output. This will be automatically formatted into
code, so no need for backticks.'
render: shell
validations:
required: false
- type: textarea
id: solution
attributes:
label: '💡 Possible Solution'
description: '**Optional** Enter suggestions on a fix/reason for the bug if you have any.'
validations:
required: false
- type: markdown
attributes:
value: |
## :heart: Love Megabyte Labs?
If you find **[Megabyte Labs](https://megabyte.space)** projects useful, please consider donating so we sustain our projects:
<a title="Support us on Open Collective" href="https://opencollective.com/megabytelabs" target="_blank">
<img
alt="Open Collective sponsors"
src="https://img.shields.io/opencollective/sponsors/megabytelabs?logo=opencollective&label=OpenCollective&logoColor=white&style=for-the-badge"
/>
</a>
<a title="Support us on GitHub" href="https://github.com/ProfessorManhattan" target="_blank">
<img
alt="GitHub sponsors"
src="https://img.shields.io/github/sponsors/ProfessorManhattan?label=GitHub%20sponsors&logo=github&style=for-the-badge"
/>
</a>
<a href="https://www.patreon.com/ProfessorManhattan" title="Support us on Patreon" target="_blank">
<img alt="Patreon" src="https://img.shields.io/badge/Patreon-Support-052d49?logo=patreon&logoColor=white&style=for-the-badge" />
</a>

View file

@ -0,0 +1,53 @@
---
name: '💡 Feature Request'
description: Request a new feature or an improvement to an existing one.
labels: [question]
body:
- type: markdown
attributes:
value: |
## Thank You For Your Ideas!
Thank you in advance for any input you have on how we can improve our open-source product.
It is great to get ideas from other people's well-thought perspectives. Take a minute to
ponder your idea and then feel free to submit your feature/idea for review.
- type: textarea
id: description
attributes:
label: '💡 Feature/Idea'
description: Enter a clear and concise description of the feature request/improvement.
validations:
required: true
- type: input
id: contributor
attributes:
label: ':thumbsup: Can you contribute?'
description: '**Optional** Add a way we can contact you here if you would like to contribute.'
placeholder: 'Twitter: @MegabyteLabs, E-mail: help@megabyte.space, etc.'
validations:
required: false
- type: markdown
attributes:
value: |
## :heart: Love Megabyte Labs?
If you find **[Megabyte Labs](https://megabyte.space)** projects useful, please consider donating so we sustain our projects:
<a title="Support us on Open Collective" href="https://opencollective.com/megabytelabs" target="_blank">
<img
alt="Open Collective sponsors"
src="https://img.shields.io/opencollective/sponsors/megabytelabs?logo=opencollective&label=OpenCollective&logoColor=white&style=for-the-badge"
/>
</a>
<a title="Support us on GitHub" href="https://github.com/ProfessorManhattan" target="_blank">
<img
alt="GitHub sponsors"
src="https://img.shields.io/github/sponsors/ProfessorManhattan?label=GitHub%20sponsors&logo=github&style=for-the-badge"
/>
</a>
<a href="https://www.patreon.com/ProfessorManhattan" title="Support us on Patreon" target="_blank">
<img alt="Patreon" src="https://img.shields.io/badge/Patreon-Support-052d49?logo=patreon&logoColor=white&style=for-the-badge" />
</a>

View file

@ -0,0 +1,69 @@
---
name: '⛑️ Support Request'
description: Find out how to get answers and/or submit a support request.
labels: [question]
body:
- type: markdown
attributes:
value: |
## 💬 Join Us on Slack!
If you have general questions or need help implementing this project, you have several options:
* Ask the question on **[our Slack channel](https://app.slack.com/client/T01ABCG4NK1/C01NN74H0LW/details/)** *Fast*
* Submit a request here *Depends*
* E-mail [help@megabyte.space](mailto:help@megabyte.space) *Slow*
* Submit a request on any of the above for paid support (just mention you are interested in paid support) **Fastest**
- type: textarea
id: support
attributes:
label: '⛑️ Support Request'
description: Add your support request here. Detail exactly what you need help with.
validations:
required: true
- type: input
id: contributor
attributes:
label: '😀 Are you interested in paid support?'
description: '**Optional** For the fastest, most-effective support we offer paid services. If you are interested,
answer *Yes* and we will get in contact with you immediately.'
options:
# yamllint disable-line rule:truthy
- 'Yes'
# yamllint disable-line rule:truthy
- 'No'
validations:
required: false
- type: input
id: contributor
attributes:
label: '💬 How can we contact you?'
description: '**Optional** Add a way we can contact you here (especially if you want us to contact you immediately for paid support).'
placeholder: 'Twitter: @MegabyteLabs, E-mail: help@megabyte.space, etc.'
validations:
required: false
- type: markdown
attributes:
value: |
## :heart: Love Megabyte Labs?
If you find **[Megabyte Labs](https://megabyte.space)** projects useful, please consider donating so we sustain our projects:
<a title="Support us on Open Collective" href="https://opencollective.com/megabytelabs" target="_blank">
<img
alt="Open Collective sponsors"
src="https://img.shields.io/opencollective/sponsors/megabytelabs?logo=opencollective&label=OpenCollective&logoColor=white&style=for-the-badge"
/>
</a>
<a title="Support us on GitHub" href="https://github.com/ProfessorManhattan" target="_blank">
<img
alt="GitHub sponsors"
src="https://img.shields.io/github/sponsors/ProfessorManhattan?label=GitHub%20sponsors&logo=github&style=for-the-badge"
/>
</a>
<a href="https://www.patreon.com/ProfessorManhattan" title="Support us on Patreon" target="_blank">
<img alt="Patreon" src="https://img.shields.io/badge/Patreon-Support-052d49?logo=patreon&logoColor=white&style=for-the-badge" />
</a>

9
.github/ISSUE_TEMPLATE/config.yml vendored Normal file
View file

@ -0,0 +1,9 @@
---
blank_issues_enabled: false
contact_links:
- name: '💬 Slack Channel'
url: 'https://app.slack.com/client/T01ABCG4NK1/C01NN74H0LW/details/'
about: Join our community on Slack. Get answers and share ideas with kindreds.
- name: '📟 Paid Support'
url: https://megabyte.space/commercial-support
about: For the fastest, most-thorough solutions we encourage you to consider paid support.

7
.github/PULL_REQUEST_TEMPLATE.md vendored Normal file
View file

@ -0,0 +1,7 @@
- **What kind of change does this PR introduce?** (Bug fix, feature, docs update, ...)
- **What is the current behavior?** (You can also link to an open issue here)
- **What is the new behavior (if this is a feature change)?**
- **Other information**:

56
.github/stale.yml vendored Normal file
View file

@ -0,0 +1,56 @@
---
# Configuration for probot-stale - https://github.com/probot/stale
# Number of days of inactivity before an Issue or Pull Request becomes
# stale
daysUntilStale: 90
# Number of days of inactivity before an Issue or Pull Request with the
# stale label is closed.
# Set to false to disable. If disabled, issues still need to be closed
# manually, but will remain marked as stale.
daysUntilClose: 30
# Only issues or pull requests with all of these labels are check if stale.
# Defaults to `[]` (disabled)
onlyLabels: []
# Issues or Pull Requests with these labels will never be considered stale.
# Set to `[]` to disable
exemptLabels:
- pinned
- security
- planned
# Set to true to ignore issues in a project (defaults to false)
exemptProjects: false
# Set to true to ignore issues in a milestone (defaults to false)
exemptMilestones: false
# Set to true to ignore issues with an assignee (defaults to false)
exemptAssignees: true
# Label to use when marking as stale
staleLabel: stale
# Limit the number of actions per hour, from 1-30. Default is 30
limitPerRun: 30
pulls:
markComment: "This pull request has been marked 'stale' due to lack of \
recent activity. If there is no further activity, the PR will be \
closed in another 30 days. Thank you for your contribution!"
unmarkComment: This pull request is no longer marked for closure.
closeComment: "This pull request has been closed due to inactivity. If \
you feel this is in error, please reopen the pull request or file a \
new PR with the relevant details."
issues:
markComment: "This issue has been marked 'stale' due to lack of recent \
activity. If there is no further activity, the issue will be closed \
in another 30 days. Thank you for your contribution!"
unmarkComment: This issue is no longer marked for closure.
closeComment: "This issue has been closed due to inactivity. If you feel \
this is in error, please reopen the issue or file a new issue with the \
relevant details."

119
.gitignore vendored Normal file
View file

@ -0,0 +1,119 @@
*~
._*
*$py.class
allure-reports/
.angular
ansible_variables.json
.apdisk
.AppleDB
.AppleDesktop
.AppleDouble
artifacts/
.autodoc/
*.box
build/
!*ci/build/
.c9/
.cache
.cache/
*-latest.tar
*-latest.tar.gz
*-slim.tar
*-slim.tar.gz
.classpath
*.code-workspace
.com.apple.timemachine.donotpresent
common-shared/
.config/dummy.go
.config-old/
connect.lock
*.cover
.coverage
.coverage.*
coverage/
coverage.xml
db.sqlite3
db.sqlite3-journal
.directory
dist/
.DocumentRevisions-V100
.docusaurus/
.DS_Store
.env
env/
ENV/
env.bak/
.fseventsd
.fuse_hidden*
.git/
.go/
htmlcov/
.hypothesis/
Icon
.idea/
.issues/
.jest-cache/
.junit/
*.launch
libpeerconnection.log
local_settings.py
*.log
.LSOverride
**/molecule/.results/junit/
Network Trash Folder
.nfs*
node_modules/
node_modules.bak/
nosetests.xml
.nox/
.npm/
.npmrc
npm-debug.log
.nyc_output/
persistence/
pip-delete-this-directory.txt
pip-log.txt
.pnpm-store/
.project
__pycache__/
.pytest_cache/
pytestdebug.log
.release.json
*.retry
.sass-cache/
.settings/
.shared/
*.so
snap.login
.Spotlight-V100
*.sublime-workspace
*.tar
.task/
Taskfile.yml.model
.TemporaryItems
Temporary Items
testem.log
Thumbs.db
tmp/
.tox/
.Trash-*
.Trashes
*.tsbuildinfo
tsconfig.build.tsbuildinfo
typings/
.vagrant/
.variables.json
.vault_pass
.venv/
.ventoy.json
venv/
venv.bak/
.VolumeIcon.icns
.vscode/*
!.vscode/extensions.json
!.vscode/launch.json
!.vscode/settings.json
!.vscode/tasks.json
yarn-error.log
.yubi.json
.yubi-masterkey

View file

@ -1,3 +1,4 @@
---
include:
- remote: https://gitlab.com/megabyte-labs/gitlab-ci/-/raw/master/common.gitlab-ci.yml
- remote: https://gitlab.com/megabyte-labs/gitlab-ci/-/raw/master/publish/semantic-release.gitlab-ci.yml

View file

@ -0,0 +1,26 @@
### Defect Summary
<!-- Summarize the bug encountered concisely -->
### Steps to Reproduce
<!-- Detail how you can reproduce the issue - this is very important -->
### What is the current behavior?
<!-- Describe the current behavior of the code -->
### What is the expected (correct) behavior?
<!-- Describe the correct behavior of the code -->
### Relevant Logs/Screenshots
<!-- Paste any relevant logs - please use code blocks (```) to format console output,
logs, and code as it's tough to read otherwise. -->
### Possible Fixes
<!-- If you can, link to the line of code that might be responsible for the problem -->
/label ~defect

View file

@ -0,0 +1,17 @@
### Problem
<!-- What problem do we solve? -->
### Instructions
<!-- Detail the specifics on the feature that is to be added -->
### Further Details
<!-- Include use cases, benefits, goals, and/or how the feature contributes to our vision -->
### Links/References
<!-- Include a list of references that might be helpful to the developer implementing the feature -->
/label ~feature

View file

@ -0,0 +1,13 @@
### Why
<!-- Detail why the role needs testing -->
### Expected Behavior
<!-- Detail the expected behavior of the role -->
### Additional Information
<!-- Include any additional information that might be helpful to whoever is performing the test -->
/label ~testing

View file

@ -0,0 +1,13 @@
## Issues Fixed
<!--
Use GitLab syntax to link this merge request to the issue(s) it fixes. For example, in this section, you can write:
`Fixes #434` or `Closes #4, #6, Related to #5`
Adding a related issue will link the issue in the GitLab web GUI but it will not mark the issue to be automatically closed when the merge request is merged.
-->
## Notes
<!-- Include a brief summary or notes related to the merge request -->

38
.vscode/launch.json vendored Normal file
View file

@ -0,0 +1,38 @@
{
"configurations": [
{
"name": "Debug Active Spec",
"outputCapture": "std",
"port": 9229,
"preLaunchTask": "npm: build",
"request": "launch",
"runtimeArgs": ["debug", "--break", "--serial", "${file}"],
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/ava",
"skipFiles": ["<node_internals>/**/*.js"],
"type": "node"
},
{
"name": "Debug Active Spec (no build)",
"outputCapture": "std",
"port": 9229,
"request": "launch",
"runtimeArgs": ["debug", "--break", "--serial", "${file}"],
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/ava",
"skipFiles": ["<node_internals>/**/*.js"],
"type": "node"
},
{
"args": ["debug"],
"cwd": "${workspaceFolder}/build",
"env": {
"TYPESCRIPT_STARTER_REPO_URL": "${workspaceFolder}"
},
"name": "Try CLI",
"program": "${workspaceFolder}/bin/typescript-starter",
"request": "launch",
"skipFiles": ["<node_internals>/**/*.js"],
"type": "node"
}
],
"version": "0.2.0"
}

104
.vscode/settings.json vendored Normal file
View file

@ -0,0 +1,104 @@
{
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[json5]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[markdown]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[toml]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[vue]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[yaml]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"codetour.customTourDirectory": ".config/codetour.yml",
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnPaste": false,
"editor.formatOnSave": true,
"eslint.alwaysShowStatus": true,
"eslint.format.enable": true,
"eslint.lintTask.enable": true,
"eslint.lintTask.options": "-c package.json --no-eslintrc --cache --cache-location .cache/eslintcache .",
"eslint.packageManager": "pnpm",
"eslint.validate": [
"html",
"javascript",
"javascriptreact",
"json",
"jsonc",
"json5",
"markdown",
"toml",
"typescript",
"typescriptreact",
"vue",
"yaml"
],
"git.autoStash": true,
"git.autofetch": true,
"github.codespaces.showPerformanceExplorer": true,
"gitlab.showPipelineUpdateNotifications": true,
"gitlens.showWelcomeOnInstall": false,
"gitlens.showWhatsNewAfterUpgrades": false,
"go.lintFlags": ["--fast"],
"go.lintTool": "golangci-lint",
"html.format.endWithNewline": true,
"html.format.indentHandlebars": true,
"html.format.indentInnerHtml": true,
"html.format.templating": true,
"javascript.format.semicolons": "remove",
"javascript.suggest.completeFunctionCalls": true,
"ltex.additionalRules.enablePickyRules": true,
"ltex.completionEnabled": true,
"markdown-preview-enhanced.previewTheme": "solarized-light.css",
"material-icon-theme.showWelcomeMessage": false,
"merge-conflict.autoNavigateNextConflict.enabled": true,
"npm.enableRunFromFolder": true,
"npm.packageManager": "pnpm",
"prettier.printWidth": 120,
"prettier.singleQuote": true,
"python.languageServer": "Pylance",
"security.workspace.trust.banner": "never",
"security.workspace.trust.enabled": false,
"telemetry.telemetryLevel": "crash",
"typescript.enablePromptUseWorkspaceTsdk": true,
"typescript.format.semicolons": "remove",
"typescript.implementationsCodeLens.enabled": true,
"typescript.inlayHints.enumMemberValues.enabled": true,
"typescript.inlayHints.functionLikeReturnTypes.enabled": true,
"typescript.inlayHints.parameterTypes.enabled": true,
"typescript.inlayHints.variableTypes.enabled": true,
"typescript.preferences.quoteStyle": "single",
"typescript.referencesCodeLens.enabled": true,
"typescript.referencesCodeLens.showOnAllFunctions": true,
"typescript.suggest.completeFunctionCalls": true,
"typescript.tsdk": "node_modules/typescript/lib",
"workbench.startupEditor": "readme",
"workbench.welcomePage.walkthroughs.openOnInstall": false,
"yaml.format.printWidth": 160,
"yaml.format.singleQuote": true
}

7
docs/CODEOWNERS Normal file
View file

@ -0,0 +1,7 @@
# Prevents modifications to CI configurations
.config/taskfiles/ @ProfessorManhattan
.github/ @ProfessorManhattan
.gitlab-ci.yml @ProfessorManhattan
.gitlab/ @ProfessorManhattan
.travis.yml @ProfessorManhattan
start.sh @ProfessorManhattan

100
docs/CODE_OF_CONDUCT.md Normal file
View file

@ -0,0 +1,100 @@
<div align="center">
<center><h1>Contributor Covenant Code of Conduct</h1></center>
<center><h4 style="color: #18c3d1;">A set of guidelines that all all members, contributors, and leaders should follow</h4></center>
</div>
[![-----------------------------------------------------](https://gitlab.com/megabyte-labs/assets/-/raw/master/png/aqua-divider.png)](#our-pledge)
## Our Pledge
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, caste, color, religion, or sexual identity and orientation.
We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
[![-----------------------------------------------------](https://gitlab.com/megabyte-labs/assets/-/raw/master/png/aqua-divider.png)](#our-standards)
## Our Standards
Examples of behavior that contributes to a positive environment for our community include:
- Demonstrating empathy and kindness toward other people
- Being respectful of differing opinions, viewpoints, and experiences
- Giving and gracefully accepting constructive feedback
- Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
- Focusing on what is best not just for us as individuals, but for the overall community
Examples of unacceptable behavior include:
- The use of sexualized language or imagery, and sexual attention or advances of any kind
- Trolling, insulting or derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or email address, without their explicit permission
- Other conduct which could reasonably be considered inappropriate in a professional setting
[![-----------------------------------------------------](https://gitlab.com/megabyte-labs/assets/-/raw/master/png/aqua-divider.png)](#enforcement-responsibilities)
## Enforcement Responsibilities
Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
[![-----------------------------------------------------](https://gitlab.com/megabyte-labs/assets/-/raw/master/png/aqua-divider.png)](#scope)
## Scope
This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
[![-----------------------------------------------------](https://gitlab.com/megabyte-labs/assets/-/raw/master/png/aqua-divider.png)](#enforcement)
## Enforcement
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at [help@megabyte.space](emailto:help@megabyte.space). All complaints will be reviewed and investigated promptly and fairly.
All community leaders are obligated to respect the privacy and security of the reporter of any incident.
[![-----------------------------------------------------](https://gitlab.com/megabyte-labs/assets/-/raw/master/png/aqua-divider.png)](#enforcement-guidelines)
## Enforcement Guidelines
Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
### 1. Correction
**Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
**Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
### 2. Warning
**Community Impact**: A violation through a single incident or series of actions.
**Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
### 3. Temporary Ban
**Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
**Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
### 4. Permanent Ban
**Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
**Consequence**: A permanent ban from any sort of public interaction within the community.
[![-----------------------------------------------------](https://gitlab.com/megabyte-labs/assets/-/raw/master/png/aqua-divider.png)](#attribution)
## Attribution
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0, available at [https://www.contributor-covenant.org/version/2/0/code_of_conduct.html][v2.0].
Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder][mozilla coc].
For answers to common questions about this code of conduct, see the FAQ at [https://www.contributor-covenant.org/faq][faq]. Translations are available at [https://www.contributor-covenant.org/translations][translations].
[homepage]: https://www.contributor-covenant.org
[v2.0]: https://www.contributor-covenant.org/version/2/0/code_of_conduct.html
[mozilla coc]: https://github.com/mozilla/diversity
[faq]: https://www.contributor-covenant.org/faq
[translations]: https://www.contributor-covenant.org/translations

18
docs/ECOSYSTEM.md Normal file
View file

@ -0,0 +1,18 @@
# Megabyte Labs Ecosystem
This project incorporates design patterns from the [Megabyte Labs](https://megabyte.space) ecosystem. The ecosystem is a set of repositories that integrate with one another through CI/CD. The repositories share configurations, common documentation partials, and developer tools. The ecosystem's main goals are to:
1. Keep projects up-to-date
2. Make the management of large amounts of repositories easy
3. Be prepared by implementing development features before they are necessary (within reason)
4. Maximize developer efficiency
5. Improve developer onboarding by providing the tools necessary to adhere to the design patterns of the ecosystem with minimal oversight
6. Serve and provide an example of a bleeding-edge, production-ready full-stack development platform
## Language Support
There are currently boilerplates and templates written in the following languages:
* TypeScript (primary language)
* Python
* Go

19181
pnpm-lock.yaml Normal file

File diff suppressed because it is too large Load diff

View file

@ -9,7 +9,8 @@
# ensure that the latest upstream changes are retrieved, that the project is
# properly generated with them, and that all the development dependencies are installed.
# Documentation on Taskfile.yml syntax can be found [here](https://taskfile.dev/).
git config url."https://gitlab.com/".insteadOf git@gitlab.com:
git config url."https://github.com/".insteadOf git@github.com:
set -eo pipefail
# @description Initialize variables
@ -577,7 +578,19 @@ if [ -z "$NO_INSTALL_HOMEBREW" ]; then
echo | /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
else
logger warn "Homebrew is not installed. The script will attempt to install Homebrew and you might be prompted for your password."
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" || BREW_EXIT_CODE="$?"
if [ -n "$BREW_EXIT_CODE" ]; then
if command -v brew > /dev/null; then
.config/log warn "Homebrew was installed but part of the installation failed. Retrying again after changing a few things.."
BREW_DIRS="share/man share/doc share/zsh/site-functions etc/bash_completion.d"
for BREW_DIR in $BREW_DIRS; do
if [ -d "$(brew --prefix)/$BREW_DIR" ]; then
sudo chown -R "$(whoami)" "$(brew --prefix)/$BREW_DIR"
fi
done
brew update --force --quiet
fi
fi
fi
fi
if ! (grep "/bin/brew shellenv" < "$HOME/.profile" &> /dev/null) && [[ "$OSTYPE" != 'darwin'* ]]; then
@ -662,7 +675,12 @@ if [ -d .git ] && type git &> /dev/null; then
printenv
fi
fi
git pull --force origin master --ff-only || true
git pull --force origin master --ff-only || GIT_PULL_FAIL="$?"
if [ -n "$GIT_PULL_FAIL" ]; then
git config url."https://gitlab.com/".insteadOf git@gitlab.com:
git config url."https://github.com/".insteadOf git@github.com:
git pull --force origin master --ff-only || true
fi
ROOT_DIR="$PWD"
if ls .modules/*/ > /dev/null 2>&1; then
for SUBMODULE_PATH in .modules/*/; do

34
tsconfig.json Normal file
View file

@ -0,0 +1,34 @@
{
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"alwaysStrict": true,
"baseUrl": "./",
"declaration": true,
"emitDecoratorMetadata": true,
"esModuleInterop": true,
"experimentalDecorators": true,
"forceConsistentCasingInFileNames": true,
"importHelpers": true,
"incremental": false,
"module": "commonjs",
"noFallthroughCasesInSwitch": true,
"noImplicitAny": true,
"noImplicitReturns": true,
"noImplicitThis": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"outDir": "./dist",
"pretty": true,
"removeComments": true,
"resolveJsonModule": true,
"rootDir": "src",
"skipLibCheck": true,
"sourceMap": true,
"strictBindCallApply": true,
"strictFunctionTypes": true,
"strictNullChecks": true,
"strictPropertyInitialization": true,
"target": "es2017",
"typeRoots": ["node_modules/@types", "src/types"]
}
}