Skip to content

remove side effects #527

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

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
1f965da
remove-plugins-with-side-effects-and-remove-side-effects-from-plugins…
romainmenke Jul 8, 2022
ccb0613
Merge remote-tracking branch 'origin/postcss-preset-env--v8' into rem…
romainmenke Jul 9, 2022
8141fb1
Merge remote-tracking branch 'origin/postcss-preset-env--v8' into rem…
romainmenke Aug 7, 2022
7a9fa3f
Merge remote-tracking branch 'origin/postcss-preset-env--v8' into rem…
romainmenke Aug 16, 2022
c371eb6
update test expect files
romainmenke Aug 16, 2022
de02fd1
wip (#543)
romainmenke Aug 20, 2022
f5fe2a1
custom-properties: add support for locally defined values and handle …
romainmenke Aug 21, 2022
8cde224
Merge remote-tracking branch 'origin/postcss-preset-env--v8' into rem…
romainmenke Sep 3, 2022
ee6b5fa
more tests and docs for custom props
romainmenke Sep 3, 2022
b9f7993
more docs
romainmenke Sep 3, 2022
73c17a0
fixes
romainmenke Sep 3, 2022
995b569
fmt
romainmenke Sep 3, 2022
23386ae
Merge remote-tracking branch 'origin/postcss-preset-env--v8' into rem…
romainmenke Sep 6, 2022
b9e2288
cleanup
romainmenke Sep 6, 2022
48883e8
Merge remote-tracking branch 'origin/postcss-preset-env--v8' into rem…
romainmenke Sep 6, 2022
d18623f
docs
romainmenke Sep 6, 2022
dea9fcd
npm install
romainmenke Sep 6, 2022
8f15699
Merge branch 'postcss-preset-env--v8' into remove-side-effects--adven…
romainmenke Sep 10, 2022
915f605
Merge remote-tracking branch 'origin/postcss-preset-env--v8' into rem…
romainmenke Sep 14, 2022
1d1c811
Merge remote-tracking branch 'origin/postcss-preset-env--v8' into rem…
romainmenke Sep 15, 2022
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
1 change: 0 additions & 1 deletion cli/csstools-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@
"postcss-custom-selectors": "^6.0.2",
"postcss-dir-pseudo-class": "^6.0.4",
"postcss-double-position-gradients": "^3.1.1",
"postcss-env-function": "^4.0.6",
"postcss-focus-visible": "^7.0.0",
"postcss-focus-within": "^6.0.0",
"postcss-gap-properties": "^3.0.3",
Expand Down
4 changes: 0 additions & 4 deletions cli/csstools-cli/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import postcssCustomProperties from './plugins/postcss-custom-properties';
import postcssCustomSelectors from './plugins/postcss-custom-selectors';
import postcssDirPseudoClass from './plugins/postcss-dir-pseudo-class';
import postcssDoublePositionGradients from './plugins/postcss-double-position-gradients';
import postcssEnvFunction from './plugins/postcss-env-function';
import postcssFocusVisible from './plugins/postcss-focus-visible';
import postcssFocusWithin from './plugins/postcss-focus-within';
import postcssFontFormatKeywords from './plugins/postcss-font-format-keywords';
Expand Down Expand Up @@ -80,9 +79,6 @@ function main() {
case 'postcss-double-position-gradients':
postcssDoublePositionGradients();
return;
case 'postcss-env-function':
postcssEnvFunction();
return;
case 'postcss-focus-visible':
postcssFocusVisible();
return;
Expand Down
18 changes: 0 additions & 18 deletions cli/csstools-cli/src/plugins/postcss-env-function.ts

This file was deleted.

2 changes: 0 additions & 2 deletions package-lock.json

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

6 changes: 4 additions & 2 deletions plugin-packs/postcss-preset-env/.tape.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -171,15 +171,17 @@ postcssTape(plugin)({
options: {
stage: 0,
browsers: '> 0%'
}
},
warnings: 1,
},
'layers-basic:preserve:true': {
message: 'supports layers usage with { preserve: true }',
options: {
preserve: true,
stage: 0,
browsers: '> 0%'
}
},
warnings: 1,
},
'client-side-polyfills:stage-1': {
message: 'stable client side polyfill behavior',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// ids ordered by required execution, then alphabetically
export default [
'cascade-layers',
'custom-media-queries',
'custom-properties',
'environment-variables', // run environment-variables here to access transpiled custom media params and properties
Expand Down Expand Up @@ -32,7 +33,6 @@ export default [
'overflow-wrap-property',
'place-properties',
'system-ui-font-family',
'cascade-layers',
'stepped-value-functions',
'trigonometric-functions',
];
233 changes: 118 additions & 115 deletions plugin-packs/postcss-preset-env/test/layers-basic.expect.css

Large diffs are not rendered by default.

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions plugins/postcss-cascade-layers/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

### Unreleased (major)

- Run `postcss-cascade-layers` early compared to other PostCSS plugins (breaking)
- Updated: Support for Node v14+ (major).

### 1.1.0 (September 14, 2022)
Expand Down
2 changes: 1 addition & 1 deletion plugins/postcss-cascade-layers/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const creator: PluginCreator<pluginOptions> = (opts?: pluginOptions) => {

return {
postcssPlugin: 'postcss-cascade-layers',
OnceExit(root: Container, { result }: { result: Result }) {
Once(root: Container, { result }: { result: Result }) {

// Warnings
if (options.onRevertLayerKeyword) {
Expand Down
255 changes: 0 additions & 255 deletions plugins/postcss-custom-media/.tape.cjs

This file was deleted.

26 changes: 26 additions & 0 deletions plugins/postcss-custom-media/.tape.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import postcssTape from '../../packages/postcss-tape/dist/index.mjs';
import plugin from 'postcss-custom-media';

postcssTape(plugin)({
'basic': {
message: 'supports basic usage'
},
'basic:preserve': {
message: 'supports { preserve: true } usage',
options: {
preserve: true
}
},
'examples/example': {
message: 'minimal example',
},
'examples/example:preserve': {
message: 'minimal example',
options: {
preserve: true
}
},
'complex': {
message: 'supports complex usage'
},
});
Loading