Skip to content

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

Merged
merged 9 commits into from
Nov 20, 2021
Merged

Enable full CI for CLI #17

merged 9 commits into from
Nov 20, 2021

Conversation

romainmenke
Copy link
Member

@romainmenke romainmenke commented Nov 20, 2021

integration after base-cli and postcss-base-plugin were merged.

@romainmenke romainmenke force-pushed the enable-full-cli-for-cli branch from 92e9422 to 9392f63 Compare November 20, 2021 17:48
…efined' at the top level of an ES module, and has been rewritten
@romainmenke
Copy link
Member Author

romainmenke commented Nov 20, 2021

@Antonio-Laguna any opinions on squash commits when merging PR's?
Would give a cleaner history on main after PR's that have lot's of smaller (sometimes bogus) commits.

@Antonio-Laguna
Copy link
Member

@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';
Copy link
Member

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

Suggested change
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

Copy link
Member Author

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
Copy link
Member

Choose a reason for hiding this comment

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

Nice one

Copy link
Member

@Antonio-Laguna Antonio-Laguna left a 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!

@romainmenke romainmenke merged commit 2232da5 into main Nov 20, 2021
@romainmenke romainmenke deleted the enable-full-cli-for-cli branch November 20, 2021 19:04
@romainmenke
Copy link
Member Author

@Antonio-Laguna

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

Enforcing it would be fine I think.
I don't expect any issues with this during the migration :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants