Skip to content

Commit

Permalink
Various chores
Browse files Browse the repository at this point in the history
  • Loading branch information
Saltssaumure committed Nov 1, 2023
1 parent 75f1f9f commit e9682f9
Show file tree
Hide file tree
Showing 6 changed files with 682 additions and 2,073 deletions.
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
17 changes: 9 additions & 8 deletions .github/workflows/rp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,27 +13,28 @@ 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/*"
artifacts: "bundle/*, *.theme.css"
makeLatest: true
generateReleaseNotes: true
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Packages
/.parcel-cache
/node_modules

# Build
Expand Down
1 change: 0 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Folders
/.github
/.parcel-cache
/bundle
/dist
/node_modules
Expand Down
15 changes: 6 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,20 @@
],
"license": "MIT",
"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",
"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 e9682f9

Please sign in to comment.