Skip to content

Commit

Permalink
refactor(tree-wide): use deno fmt, rename files to .user.less (#1544
Browse files Browse the repository at this point in the history
)
  • Loading branch information
uncenter authored Dec 29, 2024
1 parent 544db57 commit 4e271e0
Show file tree
Hide file tree
Showing 256 changed files with 63,157 additions and 61,481 deletions.
1 change: 0 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
*.webp filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.css linguist-language=less
src/** -linguist-detectable
7 changes: 2 additions & 5 deletions .github/PULL_REQUEST_TEMPLATE/userstyle-creation.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@ Feel free to leave this section empty if you don't have anything more to say.
- [ ] I have made a new directory underneath `/styles/<name-of-website>` containing the contents of the [`/template`](https://github.com/catppuccin/userstyles/blob/main/template/) directory.
- [ ] I have ensured that the new directory is in **lower-kebab-case**.
- [ ] I have followed the template and kept the preprocessor as [LESS](https://lesscss.org/#overview).
- [ ] I have made sure to update the
[`userstyles.yml`](https://github.com/catppuccin/userstyles/blob/main/scripts/userstyles.yml)
file with information about the new userstyle.
- [ ] I have made sure to update the [`userstyles.yml`](https://github.com/catppuccin/userstyles/blob/main/scripts/userstyles.yml) file with information about the new userstyle.
- [ ] I have included the following files:
- [ ] `catppuccin.user.css` - all the CSS for the userstyle, based on the
template.
- [ ] `catppuccin.user.less` - all the CSS for the userstyle, based on the template.
- [ ] `preview.webp` - composite image of all four individual flavor screenshots (taken with the default accent color of mauve) stitched together, generated via [Catwalk](https://github.com/catppuccin/catwalk).
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:

- name: Bump changed userstyles
run: |
git diff --name-only HEAD^1 HEAD | grep '^styles/.*catppuccin\.user\.css$' | xargs deno task bump
git diff --name-only HEAD^1 HEAD | grep '^styles/.*catppuccin\.user\.less$' | xargs deno task bump
- name: Commit changes
uses: EndBug/add-and-commit@v9
Expand All @@ -49,12 +49,12 @@ jobs:
push: false

- name: Format files
run: deno task format
run: deno fmt

- name: Commit changes
uses: EndBug/add-and-commit@v9
with:
message: "style: format with prettier"
message: "style: deno fmt"
default_author: github_actions
push: false

Expand Down
7 changes: 0 additions & 7 deletions .prettierignore

This file was deleted.

8 changes: 0 additions & 8 deletions .prettierrc

This file was deleted.

2 changes: 1 addition & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"recommendations": ["denoland.vscode-deno", "esbenp.prettier-vscode"]
"recommendations": ["denoland.vscode-deno"]
}
9 changes: 1 addition & 8 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
{
"files.associations": {
"*.user.css": "less"
},

"deno.enable": true,

"[less]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescript][javascript]": {
"[typescript][javascript][less][markdown][json]": {
"editor.defaultFormatter": "denoland.vscode-deno"
},

Expand Down
12 changes: 9 additions & 3 deletions deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,18 @@
"lint": "deno run -A ./scripts/lint/main.ts",
"lint:fix": "deno task lint --fix",
"update-types": "deno run -A ./scripts/types/update-types.ts",
"bump": "deno run -A ./scripts/bump-version/main.ts",
"format": "deno run -A npm:[email protected] --write ."
"bump": "deno run -A ./scripts/bump-version/main.ts"
},
"nodeModulesDir": "auto",
"fmt": {
"include": ["scripts/**/*.ts", "scripts/**/*.js"]
"indentWidth": 2,
"proseWrap": "never",
"exclude": [
".github/ISSUE_TEMPLATE/userstyle.yml",
".github/*.yml",
"styles/**/*.md",
"scripts/generate/templates/userstyle.md"
]
},
"lint": {
"rules": {
Expand Down
Loading

0 comments on commit 4e271e0

Please sign in to comment.