-
-
Notifications
You must be signed in to change notification settings - Fork 75
Enable full CI for CLI #17
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
Conversation
92e9422
to
9392f63
Compare
…efined' at the top level of an ES module, and has been rewritten
@Antonio-Laguna any opinions on squash commits when merging PR's? |
@romainmenke I completely agree. I've been avoiding that for now unless it was enforced since I wasn't sure if it affected the monorepo migration. I can enable squash as the only option here |
@@ -1,4 +1,4 @@ | |||
import fsp from 'fs/promises'; | |||
import { promises as fsp } from 'fs'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I often just do this
import { promises as fsp } from 'fs'; | |
import fs from 'fs/promises'; |
But feel free to leave it like this if you want to be specific
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mostly use the specific naming. This is more a reminder for myself that I imported the promises API further down in the code. :)
# Zero out result file | ||
echo '' > ./test/cli/basic.result.css; | ||
|
||
# Test with long flag | ||
postcss-base-plugin ./test/cli/basic.css --output ./test/cli/basic.result.css | ||
|
||
# Check result | ||
git --no-pager diff --no-index --word-diff ./test/cli/basic.expect.css ./test/cli/basic.result.css | ||
if [[ "$OSTYPE" == "msys" ]]; then | ||
# CRLF on Windows makes it hard to test with base64 encoded sourcemaps |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice one
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This LGTM. Feel free to merge whenever you want!
Enforcing it would be fine I think. |
integration after
base-cli
andpostcss-base-plugin
were merged.