Skip to content

Commit

Permalink
Initialise repository
Browse files Browse the repository at this point in the history
  • Loading branch information
willsawyerrrr committed Dec 21, 2023
0 parents commit 77dbb86
Show file tree
Hide file tree
Showing 12 changed files with 350 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
version: 2
updates:
- package-ecosystem: "github-actions"
reviewers:
- "SituDevelopment/employees"
directory: "/"
schedule:
interval: "daily"

- package-ecosystem: "npm"
reviewers:
- "SituDevelopment/employees"
directory: "/"
schedule:
interval: "daily"

- package-ecosystem: "pip"
reviewers:
- "SituDevelopment/employees"
directory: "/"
schedule:
interval: "daily"
21 changes: 21 additions & 0 deletions .github/labeller.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
bug:
- head-branch: ["bug/*"]

enhancement:
- head-branch: ["feature/*"]

dependencies:
- changed-files:
- any-glob-to-any-file: ["package.json", "package-lock.json"]

documentation:
- changed-files:
- any-glob-to-any-file: ["README.md"]

github_actions:
- changed-files:
- any-glob-to-any-file: [".github/workflows/*.yaml"]

javascript:
- changed-files:
- any-glob-to-any-file: [".js", ".ts", "package.json", "package-lock.json", "tsconfig.json"]
19 changes: 19 additions & 0 deletions .github/workflows/add-to-project.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Add issues and PRs to projects

on:
- issues
- pull_request

jobs:
generic:
uses: SituDevelopment/.github/.github/workflows/add-to-project.yaml@main
secrets: inherit

internal:
if: github.actor != 'dependabot[bot]'
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
project-url: https://github.com/orgs/SituDevelopment/projects/4
github-token: ${{ secrets.ADD_TO_PROJECT }}
24 changes: 24 additions & 0 deletions .github/workflows/code-style.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Code Style

on: pull_request

jobs:
prettier:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20"
- run: npm clean-install
- run: npx prettier --check .

typescript:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20"
- run: npm clean-install
- run: npx tsc
13 changes: 13 additions & 0 deletions .github/workflows/dependabot-auto-merge.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Dependabot Auto Merge

on: pull_request

jobs:
auto-merge:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ahmadnassri/action-dependabot-auto-merge@v2
with:
target: minor
github-token: ${{ secrets.DEPENDABOT_AUTO_MERGE }}
11 changes: 11 additions & 0 deletions .github/workflows/labeller.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Label Pull Requests

on: pull_request

permissions:
contents: read
pull-requests: write

jobs:
labeller:
uses: SituDevelopment/.github/.github/workflows/labeller.yaml@main
10 changes: 10 additions & 0 deletions .github/workflows/status-checks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: Status Checks

on: pull_request

jobs:
code-style:
uses: SituDevelopment/.github/.github/workflows/check-code-style.yaml@main

dependencies:
uses: SituDevelopment/.github/.github/workflows/check-dependencies.yaml@main
130 changes: 130 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.pnpm-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Snowpack dependency directory (https://snowpack.dev/)
web_modules/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional stylelint cache
.stylelintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variable files
.env
.env.development.local
.env.test.local
.env.production.local
.env.local

# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache

# Next.js build output
.next
out

# Nuxt.js build / generate output
.nuxt
dist

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# vuepress v2.x temp and cache directory
.temp
.cache

# Docusaurus cache and generated files
.docusaurus

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port

# Stores VSCode versions used for testing VSCode extensions
.vscode-test

# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*
22 changes: 22 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"arrowParens": "always",
"bracketSameLine": false,
"bracketSpacing": true,
"jsxSingleQuote": false,
"overrides": [
{
"files": "**/*.yaml",
"options": {
"tabWidth": 2
}
}
],
"printWidth": 100,
"quoteProps": "consistent",
"semi": true,
"singleAttributePerLine": false,
"singleQuote": false,
"tabWidth": 4,
"trailingComma": "es5",
"useTabs": false
}
57 changes: 57 additions & 0 deletions package-lock.json

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

10 changes: 10 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"devDependencies": {
"@types/node": "^20.10.5",
"prettier": "^3.1.1",
"typescript": "^5.3.3"
},
"scripts": {
"build": "tsc"
}
}
11 changes: 11 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"compilerOptions": {
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"module": "NodeNext",
"outDir": "dist",
"strict": true,
"target": "ES6"
},
"include": ["infrastructure", "src"]
}

0 comments on commit 77dbb86

Please sign in to comment.