Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
sourcec0de committed Oct 2, 2024
0 parents commit a710e13
Show file tree
Hide file tree
Showing 385 changed files with 43,279 additions and 0 deletions.
66 changes: 66 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
"root": true,
"env": {
"browser": true,
"es2020": true,
"node": true
},
"ignorePatterns": [
"node_modules",
"build",
"dist",
"storybook-static"
],
"plugins": [
"react-refresh",
"unused-imports",
"prettier"
],
"parser": "@typescript-eslint/parser",
"extends": [
"@remix-run/eslint-config",
"plugin:prettier/recommended",
"eslint:recommended",
"plugin:react-hooks/recommended"
],
"rules": {
"unused-imports/no-unused-imports": "error",
"react/jsx-sort-props": [
"error",
{
"callbacksLast": true,
"shorthandFirst": true,
"ignoreCase": false,
"reservedFirst": true
}
],
"import/order": [
"error",
{
"alphabetize": {
"order": "asc",
"caseInsensitive": true
},
"newlines-between": "always",
"groups": [
"builtin",
"external",
"index",
"parent",
[
"internal",
"sibling"
]
]
}
],
"comma-dangle": [
"error",
"always-multiline"
],
"react-refresh/only-export-components": [
"warn",
{ "allowConstantExport": true }
]
}
}
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @sourcec0de
7 changes: 7 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
## Description

## Motivation and Context

## Related Issues/PRs

### Documentation Links
58 changes: 58 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go

name: Go

on:
push:
branches: ["main"]

pull_request:
branches: [ "main" ]

jobs:
build:
strategy:
matrix:
go: [stable]
os: [ubuntu-latest]

runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3

- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}

- name: Install Go modules
run: go mod download -x

- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
run_install: false

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
- name: Install Node Modules
run: pnpm install

- name: Generate
run: go generate ./...

- name: Build
run: go build -v ./...

- name: Test
run: go test -v ./...
env:
SKIP_WATCHER_TESTS: 1

- name: Vet
run: go vet ./...
39 changes: 39 additions & 0 deletions .github/workflows/website.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Deploy to GitHub Pages

on:
# Trigger the workflow every time you push to the `main` branch
# Using a different branch name? Replace `main` with your branch’s name
push:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab on GitHub.
workflow_dispatch:

# Allow this job to clone the repo and create a page deployment
permissions:
contents: read
pages: write
id-token: write

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout your repository using git
uses: actions/checkout@v4
- name: Install, build, and upload your site
uses: withastro/action@v3
with:
path: docs
node-version: 20
package-manager: pnpm@latest

deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
19 changes: 19 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Binaries for programs and plugins
*.exe
*.exe~
*.dll
*.so
*.dylib

# Test binary, built with `go test -c`
*.test

# Output of the go coverage tool, specifically when used with LiteIDE
*.out

# Dependency directories (remove the comment below to include it)
vendor/
node_modules/
go.work*

.DS_Store
30 changes: 30 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
run:
concurrency: 4
timeout: 5m
issues-exit-code: 2
tests: true
skip-dirs:
- 'vendor'
- 'node_modules'
- 'src/backend/lib/cdk8s/imports'
modules-download-mode: readonly
allow-parallel-runners: true

linters:
enable:
- govet
- staticcheck


# allow underscores in package names
package-regex: '^[\w-./]+(_[\w-./]+)*$'

linters-settings:
revive:
rules:
- name: var-naming

exclude:
- '*.gen.go'
- 'src/backend/database/models/*.sql.go'
- 'src/backend/database/models/*.gen.go'
11 changes: 11 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .idea/.name

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

63 changes: 63 additions & 0 deletions .idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .idea/codeStyles/codeStyleConfig.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions .idea/dataSources.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/git_toolbox_blame.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions .idea/git_toolbox_prj.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/jsLibraryMappings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/jsLinters/eslint.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit a710e13

Please sign in to comment.