Skip to content

Commit

Permalink
Merge pull request #2 from konstantin-lukas/master
Browse files Browse the repository at this point in the history
make fancy
  • Loading branch information
alanakbik authored Nov 22, 2024
2 parents 6ba6898 + 0651b34 commit a417e45
Show file tree
Hide file tree
Showing 16,949 changed files with 10,084 additions and 703,896 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
35 changes: 35 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"extends": [
"eslint:recommended",
"next/core-web-vitals",
"next/typescript",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:import/recommended",
"plugin:jsx-a11y/recommended",
"plugin:tailwindcss/recommended"
],
"plugins": [
"@stylistic/js",
"simple-import-sort"
],
"rules": {
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
"@stylistic/js/comma-dangle": ["error", "always-multiline"],
"@stylistic/js/indent": ["error", 4],
"@stylistic/js/brace-style": ["error", "1tbs", { "allowSingleLine": true }],
"@stylistic/js/semi": ["error", "always"],
"@stylistic/js/quotes": ["error", "double", { "avoidEscape": true, "allowTemplateLiterals": true }],
"@stylistic/js/object-curly-spacing": ["error", "always", {
"arraysInObjects": false,
"objectsInObjects": false
}],
"@stylistic/js/array-bracket-spacing": ["error", "never"],
"@stylistic/js/comma-spacing": ["error", {
"before": false,
"after": true
}],
"@typescript-eslint/consistent-type-imports": "error"
}
}
56 changes: 56 additions & 0 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Deploy live website

on:
push:
branches:
- 'master'

permissions:
contents: read
pages: write
id-token: write

jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Use Node.js 22.x
uses: actions/setup-node@v3
with:
node-version: 22.x

- name: Cache dependencies
id: cache_dependencies
uses: actions/cache@v3
with:
path: node_modules
key: node-modules-${{ hashFiles('package-lock.json') }}

- name: Install dependencies
shell: bash
if: steps.cache_dependencies.outputs.cache-hit != 'true'
run: npm ci

- name: Setup Pages
uses: actions/configure-pages@v5
with:
static_site_generator: next

- name: Build
run: npm run build

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./out

- name: Publish to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
39 changes: 39 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
.idea

# dependencies
/node_modules
/.pnp
.pnp.js
.yarn/install-state.gz

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# local env files
.env*.local

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts

.psd
Loading

0 comments on commit a417e45

Please sign in to comment.