Skip to content

Commit

Permalink
Workflows, config files
Browse files Browse the repository at this point in the history
  • Loading branch information
Xithrius committed Sep 14, 2023
1 parent b6942b6 commit ad586ac
Show file tree
Hide file tree
Showing 12 changed files with 2,642 additions and 35 deletions.
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github: Xithrius
36 changes: 36 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
name: Bug report
about: Create a report to help us improve
title: ""
labels: ""
assignees: ""
---

**Describe the bug:**

<!-- A clear description of what the bug is -->

**To Reproduce:**

<!-- Numbered steps to reproduce the behavior -->

**Expected behavior:**

<!-- Describe what you expect to happen -->

**Screenshots:**

<!-- Screenshots in context with the problem -->

**System:**

<!-- [e.g. Windows 10, Arch Linux w/ kernel 5.16.2] -->

- Operating System:

<!-- [e.g. Mozilla Firefox 104.0.1] -->

- Browser:

**Additional context:**
Add any other context about the problem here.
19 changes: 19 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: Feature request
about: Suggest an idea for this project
title: ""
labels: ""
assignees: ""
---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
51 changes: 51 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: CI

on:
push:
branches:
- main
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
lint:
runs-on: ubuntu-latest

strategy:
fail-fast: false

matrix: { dir: ["site"] }

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

- name: Install Node v20
uses: actions/setup-node@v2
with:
node-version: 20

- name: Install dependencies
working-directory: ${{ matrix.dir }}
run: yarn install

- name: Install dependencies
working-directory: ${{ matrix.dir }}
run: yarn lint

- name: Prepare Pull Request Payload artifact
id: prepare-artifact
if: always() && github.event_name == 'pull_request'
continue-on-error: true
run: cat $GITHUB_EVENT_PATH | jq '.pull_request' > pull_request_payload.json

- name: Upload a Build Artifact
if: always() && steps.prepare-artifact.outcome == 'success'
continue-on-error: true
uses: actions/upload-artifact@v2
with:
name: pull-request-payload
path: pull_request_payload.json
9 changes: 9 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"recommendations": [
"bradlc.vscode-tailwindcss",
"esbenp.prettier-vscode",
"christian-kohler.npm-intellisense",
"dbaeumer.vscode-eslint",
"Prisma.prisma"
]
}
1 change: 1 addition & 0 deletions site/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
12 changes: 12 additions & 0 deletions site/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"extends": [
"next/core-web-vitals",
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"parserOptions": {
"project": "**/tsconfig.json"
}
}
2 changes: 2 additions & 0 deletions site/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules/**
.next/**
4 changes: 4 additions & 0 deletions site/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"printWidth": 100,
"proseWrap": "never"
}
1 change: 0 additions & 1 deletion site/next-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/// <reference types="next" />
/// <reference types="next/types/global" />
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
Expand Down
27 changes: 19 additions & 8 deletions site/package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
{
"name": "hello-next",
"version": "1.0.0",
"description": "",
"keywords": [],
"license": "MIT",
"author": "",
"name": "alacrite-site",
"private": true,
"scripts": {
"dev": "next",
"build": "next build",
"start": "next start"
"start": "next start",
"lint": "next lint",
"format": "prettier --write .",
"check": "tsc"
},
"dependencies": {
"@next-auth/prisma-adapter": "1.0.7",
Expand All @@ -27,7 +26,19 @@
"@types/react": "18.2.21",
"prisma": "5.3.0",
"ts-node": "10.9.1",
"typescript": "5.2.2"
"@types/react-dom": "17.0.15",
"@typescript-eslint/eslint-plugin": "^5.59.2",
"@typescript-eslint/eslint-plugin-tslint": "^5.59.2",
"@typescript-eslint/parser": "^5.59.2",
"autoprefixer": "^10.4.14",
"cssnano": "^6.0.1",
"eslint": "^8.40.0",
"eslint-config-next": "^13.4.1",
"postcss": "^8.4.23",
"prettier": "^2.8.8",
"prettier-plugin-tailwindcss": "^0.2.8",
"tailwindcss": "^3.3.2",
"typescript": "^5.0.4"
},
"prisma": {
"seed": "ts-node prisma/seed.ts"
Expand Down
Loading

0 comments on commit ad586ac

Please sign in to comment.