Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v6

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v6
with:
node-version: '16'

- name: Use dependencies cache
uses: actions/cache@v3
uses: actions/cache@v5
with:
path: ~/.npm
key: npm-${{ hashFiles('package-lock.json') }}
Expand Down
14 changes: 3 additions & 11 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,18 @@ jobs:
permissions:
id-token: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v6

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v6
with:
node-version: '18'
node-version: '22'
registry-url: 'https://registry.npmjs.org'

- name: Use dependencies cache
uses: actions/cache@v3
with:
path: ~/.npm
key: npm-${{ hashFiles('package-lock.json') }}
restore-keys: npm-

- name: Install dependencies
run: npm ci --ignore-scripts --no-audit --no-fund

- name: Publish package
run: npm publish --provenance
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}

53 changes: 29 additions & 24 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
},
"repository": {
"type": "git",
"url": "https://github.com/Siilwyn/prettier-plugin-css-order.git"
"url": "git+https://github.com/Siilwyn/prettier-plugin-css-order.git"
},
"author": "Selwyn <[email protected]> (https://selwyn.cc/)",
"license": "ISC",
Expand Down
5 changes: 5 additions & 0 deletions src/main.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ export default {
description:
"Order properties applying outside the box model, moving inward to intrinsic changes.",
},
{
value: "frakto",
description:
"Order from the outermost layout and positioning rules, moving inward through structure, style, and interaction — inspired by the browser’s render tree.",
},
],
},
cssDeclarationSorterKeepOverrides: {
Expand Down