Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
winterClover authored Dec 9, 2023
0 parents commit f96112a
Show file tree
Hide file tree
Showing 61 changed files with 2,969 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/bd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: "Build and deploy CSS for BetterDiscord"

on:
push:
branches:
- main
- master

jobs:
build:
name: Build CSS
runs-on: ubuntu-latest

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

- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 18

- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: latest

- name: Install dependencies
run: pnpm install

- name: Build CSS
run: pnpm run build:bd

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: deploy
publish_dir: "./"
32 changes: 32 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Lint

on:
push:
branches-ignore:
- deploy
pull_request:

jobs:
run-linters:
name: Run linters
runs-on: ubuntu-latest

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

- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 18

- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: latest

- name: Install dependencies
run: pnpm install

- name: Run linters
run: pnpm run lint
40 changes: 40 additions & 0 deletions .github/workflows/rp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Release for Replugged

on:
push:
tags:
- "v*"

jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
contents: write

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

- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 18

- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: latest

- name: Install dependencies
run: pnpm install

- name: Build and bundle theme into .asar
run: pnpm run build:rp

- name: Release bundled asar, json, and theme.css
uses: ncipollo/release-action@v1
with:
artifacts: "bundle/*, *.theme.css"
makeLatest: true
generateReleaseNotes: true
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Packages
/node_modules

# Build
/bundle
/dist
/src

# Social images
/preview
15 changes: 15 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Folders
/.github
/bundle
/dist
/node_modules
/preview

# File types
*.md
*.min.css
*.theme.css

# Files
LICENSE
pnpm-lock.yaml
15 changes: 15 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"useTabs": false,
"singleQuote": false,
"printWidth": 140,
"tabWidth": 4,
"trailingComma": "none",
"overrides": [
{
"files": "*.json",
"options": {
"tabWidth": 2
}
}
]
}
Loading

0 comments on commit f96112a

Please sign in to comment.