Skip to content

Commit

Permalink
Update dependencies and practies
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Oct 8, 2023
1 parent 75a45c3 commit 172a432
Show file tree
Hide file tree
Showing 4 changed files with 606 additions and 330 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: latest
version: 8
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 19
node-version: 20
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile --ignore-scripts
Expand All @@ -33,15 +33,14 @@ jobs:
node-version:
- 18
- 16
- 14
name: Node.js ${{ matrix.node-version }} Quick
steps:
- name: Checkout the repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: latest
version: 8
- name: Install Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
Expand All @@ -56,12 +55,13 @@ jobs:
strategy:
matrix:
node-version:
- 14
- 12
- 10
name: Node.js ${{ matrix.node-version }} Quick
steps:
- name: Checkout the repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v1
with:
Expand Down
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
module.exports = () => {
return {
postcssPlugin: 'postcss-will-change',
Declaration: {
'will-change': decl => {
let already = decl.parent.some(i => {
Expand All @@ -10,7 +9,8 @@ module.exports = () => {
decl.cloneBefore({ prop: 'backface-visibility', value: 'hidden' })
}
}
}
},
postcssPlugin: 'postcss-will-change'
}
}
module.exports.postcss = true
22 changes: 13 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
"repository": "postcss/postcss-will-change",
"scripts": {
"unit": "uvu . '\\.test\\.js$'",
"test": "c8 pnpm unit && eslint ."
"test:coverage": "c8 pnpm unit",
"test:lint": "eslint .",
"test": "pnpm run /^test:/"
},
"engines": {
"node": ">=10.0"
Expand All @@ -33,16 +35,18 @@
"postcss": "^8.1.0"
},
"devDependencies": {
"@logux/eslint-config": "^49.0.0",
"c8": "^7.13.0",
"clean-publish": "^4.1.1",
"eslint": "^8.36.0",
"eslint-config-standard": "^17.0.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-n": "^15.6.1",
"@logux/eslint-config": "^52.0.1",
"c8": "^8.0.1",
"clean-publish": "^4.2.0",
"eslint": "^8.51.0",
"eslint-config-standard": "^17.1.0",
"eslint-plugin-import": "^2.28.1",
"eslint-plugin-n": "^16.1.0",
"eslint-plugin-node-import": "^1.0.4",
"eslint-plugin-perfectionist": "^2.1.0",
"eslint-plugin-prefer-let": "^3.0.1",
"eslint-plugin-promise": "^6.1.1",
"postcss": "^8.4.21",
"postcss": "^8.4.31",
"uvu": "^0.5.6"
},
"prettier": {
Expand Down
Loading

0 comments on commit 172a432

Please sign in to comment.