Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

postcss-preset-env v10 #1369

Draft
wants to merge 12 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/bin/format-package-json.mjs
Expand Up @@ -75,7 +75,7 @@ const formatted = {};
delete packageJSONInfo.private;

formatted.engines = {
node: '^14 || ^16 || >=18'
node: '>=18'
};
delete packageJSONInfo.engines;

Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/lint.yml
Expand Up @@ -28,5 +28,12 @@ jobs:
- name: lint
run: npm run lint

- name: docs
run: npm run docs

- name: knip
run: npm run knip

- name: repo is clean after "build", "lint" and "docs" steps
run: |
git diff --name-only --exit-code
22 changes: 9 additions & 13 deletions .github/workflows/test.yml
Expand Up @@ -15,12 +15,12 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
# Test node 14/16/18/20/22 on ubuntu
# Test node 20 on macos/windows
# Enable annotations only for node 20 + ubuntu
# Test node 18/20/22 on ubuntu
# Test node 22 on macos/windows
# Enable annotations only for node 22 + ubuntu
matrix:
os: [ubuntu-latest]
node: [16, 18, 20, 22]
node: [18, 20, 22]
include:
- os: macos-latest
node: 22
Expand All @@ -41,13 +41,10 @@ jobs:
- name: npm ci
run: |
npm ci
env:
BROWSER_TESTS: true
if: ${{ (matrix.is_base_node_version && matrix.is_base_os_version) }}

- name: npm ci
run: |
NPM_CONFIG_ENGINE_STRICT=false npm ci --ignore-scripts
npm ci --ignore-scripts
if: ${{ !(matrix.is_base_node_version && matrix.is_base_os_version) }}

- name: determine modified workspaces
Expand All @@ -64,10 +61,8 @@ jobs:
run: |
npm run build --if-present $MODIFIED_WORKSPACES
if: matrix.is_base_node_version && matrix.is_base_os_version

- name: docs
run: npm run docs
if: matrix.is_base_node_version && matrix.is_base_os_version
env:
NODE_COMPILE_CACHE: '.cache/v8'

- name: repo is clean after "build", "lint" and "docs" steps
run: |
Expand All @@ -77,14 +72,15 @@ jobs:
- name: test
run: npm run test --if-present $MODIFIED_WORKSPACES
env:
BROWSER_TESTS: ${{ (matrix.is_base_node_version && matrix.is_base_os_version) }}
ENABLE_ANNOTATIONS_FOR_NODE: ${{ matrix.is_base_node_version }}
ENABLE_ANNOTATIONS_FOR_OS: ${{ matrix.is_base_os_version }}

# CLI Tests
# running "npm install" places the cli in node_modules/bin
- name: test:cli
run: |
NPM_CONFIG_ENGINE_STRICT=false npm install --ignore-scripts
npm install --ignore-scripts
npm run test:cli --if-present $MODIFIED_WORKSPACES

# E2E Tests
Expand Down
4 changes: 4 additions & 0 deletions cli/csstools-cli/CHANGELOG.md
@@ -1,5 +1,9 @@
# Changes to CSSTools CLI

### Unreleased (major)

- Updated: Support for Node v18+ (major).

### 3.0.21

_May 11, 2024_
Expand Down
2 changes: 1 addition & 1 deletion cli/csstools-cli/package.json
Expand Up @@ -25,7 +25,7 @@
}
],
"engines": {
"node": "^14 || ^16 || >=18"
"node": ">=18"
},
"bin": {
"csstools-cli": "dist/cli.cjs"
Expand Down
4 changes: 4 additions & 0 deletions experimental/css-has-pseudo/CHANGELOG.md
@@ -1,5 +1,9 @@
# Changes to CSS Has Pseudo

### Unreleased (major)

- Updated: Support for Node v18+ (major).

### 0.6.1

_December 15, 2023_
Expand Down
2 changes: 1 addition & 1 deletion experimental/css-has-pseudo/package.json
Expand Up @@ -15,7 +15,7 @@
}
],
"engines": {
"node": "^14 || ^16 || >=18"
"node": ">=18"
},
"type": "module",
"main": "dist/index.cjs",
Expand Down
4 changes: 4 additions & 0 deletions experimental/postcss-gradient-stop-increments/CHANGELOG.md
@@ -1,5 +1,9 @@
# Changes to PostCSS Gradient Stop Increments

### Unreleased (major)

- Updated: Support for Node v18+ (major).

### 1.0.10

_May 4, 2024_
Expand Down
2 changes: 1 addition & 1 deletion experimental/postcss-gradient-stop-increments/package.json
Expand Up @@ -25,7 +25,7 @@
}
],
"engines": {
"node": "^14 || ^16 || >=18"
"node": ">=18"
},
"type": "module",
"main": "dist/index.cjs",
Expand Down
4 changes: 4 additions & 0 deletions experimental/postcss-nesting/CHANGELOG.md
@@ -1,5 +1,9 @@
# Changes to PostCSS Nesting Experimental

### Unreleased (major)

- Updated: Support for Node v18+ (major).

### 2.0.1

_December 15, 2023_
Expand Down
2 changes: 1 addition & 1 deletion experimental/postcss-nesting/package.json
Expand Up @@ -15,7 +15,7 @@
}
],
"engines": {
"node": "^14 || ^16 || >=18"
"node": ">=18"
},
"type": "module",
"main": "dist/index.cjs",
Expand Down