Skip to content

Commit

Permalink
Init commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ifantom committed Jan 3, 2024
0 parents commit 20ac9e0
Show file tree
Hide file tree
Showing 40 changed files with 3,497 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
module.exports = {
env: {
browser: true,
es2021: true,
node: true
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended'
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {
jsx: true
},
ecmaVersion: 'latest',
sourceType: 'module'
},
plugins: ['prettier'],
rules: {}
}
61 changes: 61 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: Build and Release Trophies Plugin

on:
push:
tags:
- 'v*'
pull_request:
branches: ['main']

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: '18.3'

- name: Install Dependencies
run: npm install

- name: build
run: npm run build

- name: copy files into build
run: |
cp plugin.json ./dist/
mkdir ./dist/dist
mv ./dist/index.js ./dist/dist/
- name: Upload package
uses: actions/upload-artifact@v2
with:
name: decky-trophies
path: |
./dist/*
release:
needs: build
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: actions/download-artifact@v3
with:
name: decky-trophies
path: decky-trophies

- name: zip/tar release
run: |
zip -r decky-trophies.zip decky-trophies/*
tar -czvf decky-trophies.tar.gz decky-trophies
- name: Create a release
uses: ncipollo/release-action@v1
with:
artifacts: 'decky-trophies.zip,decky-trophies.tar.gz'
allowUpdates: true
48 changes: 48 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
lib-cov
*.seed
*.log
*.csv
*.dat
*.out
*.pid
*.gz
*.swp

pids
logs
results
tmp

# Coverage reports
coverage

# API keys and secrets
.env

# Dependency directory
node_modules
bower_components

# Editors
.idea
*.iml

# OS metadata
.DS_Store
Thumbs.db

# Ignore built ts files
dist/

__pycache__/

/.yalc
yalc.lock

.vscode
.rollup.cache
dist.


# Ignore output folder
backend/out
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
dist
*.yaml
6 changes: 6 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"trailingComma": "none",
"semi": false,
"singleQuote": true,
"printWidth": 120
}
Loading

0 comments on commit 20ac9e0

Please sign in to comment.