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

Update @shopify/polaris-migrator to accept a file list via stdin #10950

Merged
merged 5 commits into from
Oct 11, 2023

Conversation

aaronccasanova
Copy link
Member

@aaronccasanova aaronccasanova commented Oct 10, 2023

Updates the Polaris migrator CLI to accept a file list via stdin.

Example usage with redirects:

npx @shopify/polaris-migrator styles-replace-custom-property \
  --decl=color \
  --from=--p-text \
  --to=--p-color-text \
  --stdin < file-list.txt

Example usage with piping:

git diff --name-only | npx @shopify/polaris-migrator styles-replace-custom-property \
  --decl=color \
  --from=--p-text \
  --to=--p-color-text \
  --stdin

@aaronccasanova aaronccasanova marked this pull request as ready for review October 11, 2023 16:50
@aaronccasanova aaronccasanova changed the title Update @shopify/polaris-migrator to accept a file list Update @shopify/polaris-migrator to accept a file list via stdin Oct 11, 2023
@sam-b-rose
Copy link
Member

/snapit

@sam-b-rose
Copy link
Member

/snapit

@github-actions
Copy link
Contributor

🫰✨ Thanks @sam-b-rose! Your snapshot has been published to npm.

Test the snapshot by updating your package.json with the newly published version:

yarn add @shopify/[email protected]

@aaronccasanova aaronccasanova self-assigned this Oct 11, 2023
@aaronccasanova aaronccasanova merged commit da2466f into main Oct 11, 2023
8 checks passed
@aaronccasanova aaronccasanova deleted the migrator-file-list branch October 11, 2023 18:12
aaronccasanova pushed a commit that referenced this pull request Oct 11, 2023
This PR was opened by the [Changesets
release](https:/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @shopify/[email protected]

### Minor Changes

- [#10950](#10950)
[`da2466f41`](da2466f)
Thanks [@aaronccasanova](https:/aaronccasanova)! - Updated
the CLI to accept a file list via `stdin`

## [email protected]

### Patch Changes

- [#10944](#10944)
[`eb5600159`](eb56001)
Thanks [@sarahill](https:/sarahill)! - Updated Design
resources links to the UI Kit community kits on the Getting started page


- [#10959](#10959)
[`c1081e46e`](c1081e4)
Thanks [@sarahill](https:/sarahill)! - Updated the v12
what's new post to include Figma UI kits
AnnaCheba pushed a commit to AnnaCheba/polaris that referenced this pull request Apr 22, 2024
…hopify#10950)

Updates the Polaris migrator CLI to accept a file list via `stdin`.

Example usage with redirects:

```sh
npx @shopify/polaris-migrator styles-replace-custom-property \
  --decl=color \
  --from=--p-text \
  --to=--p-color-text \
  --stdin < file-list.txt
```

Example usage with piping:

```sh
git diff --name-only | npx @shopify/polaris-migrator styles-replace-custom-property \
  --decl=color \
  --from=--p-text \
  --to=--p-color-text \
  --stdin
```
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