Skip to content

Commit

Permalink
Various chores
Browse files Browse the repository at this point in the history
  • Loading branch information
Saltssaumure committed Oct 31, 2023
1 parent 0f126c7 commit b86fcc9
Show file tree
Hide file tree
Showing 10 changed files with 728 additions and 2,107 deletions.
1 change: 0 additions & 1 deletion .github/FUNDING.yml

This file was deleted.

23 changes: 12 additions & 11 deletions .github/workflows/bd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,35 +4,36 @@ on:
push:
branches:
- main
- master

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
run: pnpm run build: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_branch: deploy
publish_dir: "./"
8 changes: 4 additions & 4 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
- 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
15 changes: 8 additions & 7 deletions .github/workflows/rp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,26 +13,27 @@ jobs:
contents: write

steps:
- name: Checkout Git repository
- 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 TypeScript and bundle into asar
run: pnpm run rp
- name: Build and bundle theme into .asar
run: pnpm run build:rp

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

dist
bundle
src
# Build
/bundle
/dist
/src

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

node_modules
dist
bundle
src

LICENSE
# File types
*.md
*.code-workspace

*.min.css
*.theme.css
*.theme.css

# Files
LICENSE
pnpm-lock.yaml
7 changes: 0 additions & 7 deletions .prettierrc

This file was deleted.

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
}
}
]
}
17 changes: 6 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,20 @@
"repository": "github:Saltssaumure/ieytd-discord-theme",
"author": "Saltssaumure <[email protected]>",
"license": "GPL-3.0",
"private": true,
"type": "module",
"scripts": {
"dev": "bd-scss dev",
"dev:bd": "bd-scss dev",
"dev:rp": "replugged build theme --watch",
"dev:vc": "bd-scss dev:vc",
"bd": "bd-scss build",
"rp": "replugged bundle theme",
"build:bd": "bd-scss build",
"build:rp": "replugged bundle theme",
"lint": "prettier ./scss --check",
"lint:fix": "prettier ./scss --write --log-level warn",
"release": "replugged release"
},
"type": "module",
"dependencies": {
"@parcel/config-default": "^2.10.0",
"@parcel/core": "^2.10.0",
"@parcel/transformer-sass": "^2.10.0",
"@types/node": "^20.8.7",
"devDependencies": {
"prettier": "^3.0.3",
"replugged": "^4.6.5",
"replugged": "^4.7.4",
"salt-bd-scss": "^1.1.0"
}
}
Loading

0 comments on commit b86fcc9

Please sign in to comment.