Skip to content

postcss-custom-media & css-tokenizer & media query parser #627

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

Merged
Show file tree
Hide file tree
Changes from 65 commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
cfae0fc
init
romainmenke Sep 15, 2022
f34facb
init
romainmenke Sep 15, 2022
05fab68
consume a token
romainmenke Sep 16, 2022
b47fdb4
consume a comment
romainmenke Sep 16, 2022
46fdd6a
add reader
romainmenke Sep 16, 2022
c46d7ac
tweaks
romainmenke Sep 16, 2022
151cf48
postcss interop
romainmenke Sep 17, 2022
c2605a8
wip
romainmenke Sep 18, 2022
4fee273
Merge remote-tracking branch 'origin/main' into css-tokenizer--consid…
romainmenke Sep 18, 2022
183e592
consume number
romainmenke Sep 18, 2022
c8e40fd
fix
romainmenke Sep 18, 2022
4607b26
fixes
romainmenke Sep 18, 2022
0ee101b
more tests
romainmenke Sep 18, 2022
59b89ab
basic tokenizer
romainmenke Sep 18, 2022
31eacbe
fixes and docs
romainmenke Sep 18, 2022
73e4663
some more bits
romainmenke Sep 18, 2022
35fd6f7
some more bits
romainmenke Sep 18, 2022
4d6670d
getting somewhere
romainmenke Sep 18, 2022
42a9dd5
string tokens
romainmenke Sep 18, 2022
2c9a55e
almost there
romainmenke Sep 19, 2022
d21afe5
should be complete, text coverage up next
romainmenke Sep 19, 2022
6954800
add context
romainmenke Sep 19, 2022
138262f
fix
romainmenke Sep 19, 2022
acac677
add parser error reporting
romainmenke Sep 19, 2022
bfae4bc
fixes and more tests
romainmenke Sep 20, 2022
624e25d
more tests
romainmenke Sep 20, 2022
9daa9fd
fixes
romainmenke Sep 20, 2022
e5a82b8
more tests
romainmenke Sep 20, 2022
d2f4ac7
still more tests
romainmenke Sep 20, 2022
d2b91e1
still more tests
romainmenke Sep 20, 2022
2dfec30
fix && more tests
romainmenke Sep 21, 2022
994adcd
more tests
romainmenke Sep 21, 2022
0c36dc6
more tests
romainmenke Sep 21, 2022
ac2010f
docs
romainmenke Sep 21, 2022
90d2738
wip
romainmenke Sep 24, 2022
41252b3
Merge branch 'css-tokenizer--considerate-galapagos-penguin-4bcf6f3f23…
romainmenke Sep 24, 2022
2ba6c3e
Merge branch 'postcss-media-query-parser--intuitive-affenpinscher-134…
romainmenke Sep 24, 2022
1c2d728
postcss-custom-media
romainmenke Sep 24, 2022
ec6a7f9
wip
romainmenke Sep 24, 2022
0a5ec17
fixes
romainmenke Sep 24, 2022
3357c4a
fixes
romainmenke Sep 24, 2022
fa6090c
fixes
romainmenke Sep 24, 2022
97a19b4
cleanup whitespace
romainmenke Sep 24, 2022
7ae4225
bring back old tests
romainmenke Sep 24, 2022
d5124f2
more tests and fixes
romainmenke Sep 25, 2022
ce1a97c
Merge remote-tracking branch 'origin/postcss-preset-env--v8' into pos…
romainmenke Sep 25, 2022
b3746da
update lock file
romainmenke Sep 25, 2022
4a243d0
remove todo comment
romainmenke Sep 25, 2022
8ba7294
fix 'or' conditions
romainmenke Sep 25, 2022
67db0ec
correctly prefix with not
romainmenke Sep 25, 2022
305aaeb
better code structure
romainmenke Sep 25, 2022
bc648cd
Merge branch 'postcss-preset-env--v8' into postcss-custom-media--affe…
romainmenke Sep 25, 2022
c4243e3
fix negation for older browsers
romainmenke Sep 25, 2022
7fb2fc7
Merge branch 'postcss-custom-media--affectionate-norwegian-forest-919…
romainmenke Sep 25, 2022
8145d49
cleanup
romainmenke Oct 1, 2022
9c3c644
Merge remote-tracking branch 'origin/postcss-preset-env--v8' into pos…
romainmenke Oct 17, 2022
8d7f867
update test files
romainmenke Oct 17, 2022
892e145
Merge remote-tracking branch 'origin/postcss-preset-env--v8' into pos…
romainmenke Oct 24, 2022
0f8be34
Merge remote-tracking branch 'origin/postcss-preset-env--v8' into pos…
romainmenke Nov 4, 2022
6f2f13a
merge
romainmenke Nov 4, 2022
8ef04ce
media query list parser (#659)
romainmenke Nov 5, 2022
06f1a2a
fixes
romainmenke Nov 6, 2022
d2fe1cf
fixes
romainmenke Nov 6, 2022
68d1778
increase test coverage
romainmenke Nov 6, 2022
21b126a
fix + more test coverage
romainmenke Nov 6, 2022
f37db29
getter -> method
romainmenke Nov 6, 2022
1222b53
fix build + more test coverage
romainmenke Nov 6, 2022
b386d3e
export and more test coverage
romainmenke Nov 7, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jobs:
# - without requiring postinstall scripts from dependencies to run
- name: build
run: |
npm run build --if-present $MODIFIED_WORKSPACES
npm run build --if-present

- name: lint
run: npm run lint --if-present $MODIFIED_WORKSPACES
Expand Down
130 changes: 124 additions & 6 deletions package-lock.json

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

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
"node": "^14 || ^16 || >=18"
},
"workspaces": [
"packages/css-tokenizer",
"packages/css-parser-algorithms",
"packages/media-query-list-parser",
"packages/*",
Comment on lines +12 to 15
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given L15, do we need to specify in particular? I notice we have progressive too so I wasn't sure.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a "hack" to specify the build and test order.
npm workspaces do not build a dependency graph between local packages.

"plugins/postcss-progressive-custom-properties",
"plugins/*",
Expand Down
7 changes: 7 additions & 0 deletions packages/css-parser-algorithms/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
node_modules
package-lock.json
yarn.lock
*.result.css
*.result.css.map
*.result.json
dist/*
1 change: 1 addition & 0 deletions packages/css-parser-algorithms/.nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v16.13.1
3 changes: 3 additions & 0 deletions packages/css-parser-algorithms/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
### 1.0.0

- Initial version
20 changes: 20 additions & 0 deletions packages/css-parser-algorithms/LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
The MIT License (MIT)

Copyright 2022 Romain Menke, Antonio Laguna <[email protected]>

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Loading