Skip to content

Commit

Permalink
add eslint and prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
muckelba committed Nov 9, 2023
1 parent cdde41f commit 5b2c974
Show file tree
Hide file tree
Showing 25 changed files with 3,860 additions and 2,935 deletions.
13 changes: 13 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.DS_Store
node_modules
/build
/.svelte-kit
/package
.env
.env.*
!.env.example

# Ignore files for PNPM, NPM and YARN
pnpm-lock.yaml
package-lock.json
yarn.lock
14 changes: 14 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
module.exports = {
root: true,
extends: ["eslint:recommended", "plugin:svelte/recommended", "prettier"],
parserOptions: {
sourceType: "module",
ecmaVersion: 2020,
extraFileExtensions: [".svelte"],
},
env: {
browser: true,
es2017: true,
node: true,
},
};
22 changes: 11 additions & 11 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Create and publish a Docker image

on:
push:
branches: ['main', 'develop']
branches: ["main", "develop"]

env:
REGISTRY: ghcr.io
Expand Down Expand Up @@ -45,13 +45,13 @@ jobs:
needs: build-and-push-image

steps:
- name: SSH Deploy
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.SSHKEY }}
script: |
cd ${{ secrets.PATH }}-${{ github.ref_name }}
echo ${{ secrets.GITHUB_TOKEN }} | docker login ${{ env.REGISTRY }} -u ${{ github.actor }} --password-stdin
docker compose pull && docker compose up -d
- name: SSH Deploy
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.SSHKEY }}
script: |
cd ${{ secrets.PATH }}-${{ github.ref_name }}
echo ${{ secrets.GITHUB_TOKEN }} | docker login ${{ env.REGISTRY }} -u ${{ github.actor }} --password-stdin
docker compose pull && docker compose up -d
13 changes: 13 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.DS_Store
node_modules
/build
/.svelte-kit
/package
.env
.env.*
!.env.example

# Ignore files for PNPM, NPM and YARN
pnpm-lock.yaml
package-lock.json
yarn.lock
15 changes: 15 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"useTabs": false,
"singleQuote": false,
"printWidth": 150,
"plugins": ["prettier-plugin-svelte"],
"pluginSearchDirs": ["."],
"overrides": [
{
"files": "*.svelte",
"options": {
"parser": "svelte"
}
}
]
}
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,32 @@ A website based on [this powershell script](https://github.com/AngryGroceries/Ap
## TODO

### In progress

- [ ] Expand the protocol for better screenshots

### Backlog

- [ ] More session stats
- [ ] Add graphs
- [ ] Use a pop-up modal for setting keybinds
- [ ] Sharing feature
- [ ] Add a ? next to analytics to scroll down to the website FAQ section

### Done

- [x] Actually implementing the trainer
- [x] Darkmode
- [x] Darkmode
- [x] Don't allow double binds
- [x] Show # of attempts and a overall superglide consistency
- [x] Mousebutton support
- [x] Controller support (<https://developer.mozilla.org/en-US/docs/Web/API/Gamepad_API>)

## Local development

To run this website locally, make sure to have [Node.js](https://nodejs.org/en/download/) installed.
- Clone the repository
- Install the requirements with `npm i`
To run this website locally, make sure to have [Node.js](https://nodejs.org/en/download/) installed.

- Clone the repository
- Install the requirements with `npm i`
- Start a dev server with `npm run dev`

To make sure the final code is ready to be deployed, build it locally with `npm run build`.
Loading

0 comments on commit 5b2c974

Please sign in to comment.