Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
amattu2 authored Aug 6, 2023
0 parents commit 9004bc4
Show file tree
Hide file tree
Showing 11 changed files with 846 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.git
.github
.githooks
.vscode
*.md

bin
docs
18 changes: 18 additions & 0 deletions .githooks/commit_message
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/usr/bin/env bash
# source - https://www.conventionalcommits.org/en/v1.0.0-beta.4/

# Create a regex for a conventional commit.
conventional_commit_regex="^(add|update|feat|fix|docs|build|test|revert)(\([a-z \-]+\))?!?: .+$"

# Get the commit message (the parameter we're given is just the path to the temporary file which holds the message).
commit_message=$(cat "$1")

if [[ "$commit_message" =~ $conventional_commit_regex ]]; then
echo -e "\e[32mCommit message meets Conventional Commit standards...\e[0m"
exit 0
fi

# Uh-oh, this is not a conventional commit, show an example and link to the spec.
echo -e "\e[31mThe commit message does not meet the Conventional Commit standard\e[0m"
echo "More details at: https://www.conventionalcommits.org/en/v1.0.0-beta.4/"
exit 1
24 changes: 24 additions & 0 deletions .github/ISSUE_TEMPLATE/bug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
name: Bug
about: A new bug report
title: ''
labels: bug
assignees: ''

---

### Description

N/A

### How to Reproduce

N/A

### Related Code

N/A

### Related Screenshots

N/A
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature
about: A new feature request
title: ''
labels: feature
assignees: ''

---

### Description

N/A

### Related Code

N/A

### Design Preview(s)

N/A
35 changes: 35 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: CodeQL

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'javascript' ]

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{matrix.language}}"
19 changes: 19 additions & 0 deletions .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Dependency Review

on: [pull_request]

permissions:
contents: read

jobs:
dependency-review:
if: ${{ github.repository_owner == 'amattu2' }}
runs-on: ubuntu-latest
steps:
# Clone repository
- name: "Checkout Repository"
uses: actions/checkout@v3

# Check dependencies
- name: "Dependency Review"
uses: actions/dependency-review-action@v2
31 changes: 31 additions & 0 deletions .github/workflows/jest-runner.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Jest

on:
push:
branches: [master]
pull_request:
branches: "*"

permissions:
contents: read

jobs:
general:
if: ${{ github.repository_owner == 'amattu2' }}
runs-on: ubuntu-latest
steps:
# Clone repository
- name: "Checkout Repository"
uses: actions/checkout@v3

# Install dependencies
- name: "Install Dependencies"
run: npm ci

# Run Jest tests
- name: "Run Jest"
run: npm run test:ci

# Run ESLint
- name: "Run ESLint"
run: npm run lint . --quiet # Ignore warnings
15 changes: 15 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Folders
__pycache__/
node_modules/
vendor/
bin/
docs/

# Specific Files
thunderEnvironment.json
thunderActivity.json

# File Types
*.ini
*.gch
*.exe
4 changes: 4 additions & 0 deletions .markdownlint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"MD033": false,
"MD025": false
}
Loading

0 comments on commit 9004bc4

Please sign in to comment.