Skip to content

Commit

Permalink
Merge pull request #3 from MiniDiscordThemes/rp-4.7.0
Browse files Browse the repository at this point in the history
- Split selectors into chunks to improve readability in devtools
- Add more SVG icon replacements
- Temporarily retrieving v4.7.0 from the github repo rather than from npm, will replace when v4.7.0 is released
  • Loading branch information
Saltssaumure authored Oct 11, 2023
2 parents 9446d7d + b4481bb commit 5fdf0fb
Show file tree
Hide file tree
Showing 28 changed files with 785 additions and 3,468 deletions.
1 change: 0 additions & 1 deletion .github/FUNDING.yml

This file was deleted.

24 changes: 12 additions & 12 deletions .github/workflows/bd.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Build and deploy CSS for BetterDiscord"
name: Build and deploy CSS for BetterDiscord

on:
push:
Expand All @@ -7,32 +7,32 @@ on:

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

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

- name: Set up Node.js
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 18

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

- name: Install Node.js dependencies
- name: Install dependencies
run: pnpm install

- name: Build CSS
run: pnpm run bd

- name: "Deploy"
uses: "peaceiris/actions-gh-pages@v3"
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: "deploy"
publish_dir: "./"
publish_branch: deploy
publish_dir: ./
10 changes: 5 additions & 5 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,20 @@ jobs:
runs-on: ubuntu-latest

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

- name: Set up Node.js
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 18

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

- name: Install Node.js dependencies
- name: Install dependencies
run: pnpm install

- name: Run linters
Expand Down
45 changes: 33 additions & 12 deletions .github/workflows/rp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,27 +13,48 @@ jobs:
contents: write

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

- name: Set up Node.js
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 18

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

- name: Install Node.js dependencies
run: pnpm install

- name: Build TypeScript and bundle into asar
run: pnpm run rp
- name: Checkout theme
uses: actions/checkout@v2
with:
path: theme

- uses: ncipollo/release-action@v1
- name: Checkout Replugged
uses: actions/checkout@v2
with:
repository: replugged-org/replugged
path: replugged
ref: v4.7.0

- name: Link Replugged into theme
run: |
cd theme
pnpm link ../replugged
- name: Build and bundle Replugged
run: |
cd replugged
pnpm install
pnpm run bundle
- name: Build and bundle theme into .asar
run: |
cd theme
pnpm install
pnpm run rp:all
- name: Release theme .asar and .json
uses: ncipollo/release-action@v1
with:
artifacts: "bundle/*, *.theme.css"
artifacts: theme/bundle/*
makeLatest: true
generateReleaseNotes: true
6 changes: 6 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@
"options": {
"tabWidth": 2
}
},
{
"files": "**/path/**/_!(index).scss",
"options": {
"printWidth": 40
}
}
]
}
2 changes: 1 addition & 1 deletion Squared.theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @authorLink https://github.com/Saltssaumure
* @description Squares all circles in Discord.
* @license MIT
* @version 1.2
* @version 1.4
* @invite uy8nKQVatp
* @source https://github.com/MiniDiscordThemes/Squared
* @donate https://ko-fi.com/saltssaumure
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"discordID": "134142022092062720",
"github": "Saltssaumure"
},
"version": "1.3.1",
"version": "1.4.0",
"updater": {
"type": "store",
"id": "net.saltssaumure.Squared"
Expand Down
9 changes: 2 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "squared-discord-theme",
"version": "1.3.1",
"version": "1.4.0",
"description": "A theme to square all circles in Discord.",
"repository": "github:MiniDiscordThemes/Squared",
"author": "Saltssaumure <[email protected]>",
Expand All @@ -17,13 +17,8 @@
"release": "replugged release"
},
"type": "module",
"dependencies": {
"@parcel/config-default": "^2.9.3",
"@parcel/core": "^2.9.3",
"@parcel/transformer-sass": "^2.9.3",
"@types/node": "^20.5.9",
"devDependencies": {
"prettier": "^3.0.3",
"replugged": "^4.6.1",
"salt-bd-scss": "^1.1.0"
}
}
Loading

0 comments on commit 5fdf0fb

Please sign in to comment.