Skip to content

Commit

Permalink
chore: add prettier commands (aws-amplify#12030)
Browse files Browse the repository at this point in the history
  • Loading branch information
sdstolworthy authored Feb 17, 2023
1 parent 365c29b commit 42d23c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ If the change is a breaking change ([as defined by semantic versioning](https://
- Use slashes to separate parts of branch names
1. Once your work is committed and you're ready to share, run `yarn test`. Manually test your changes in a sample app with different edge cases and also test across different platforms if possible.
1. Run `yarn lint-fix` to find and fix any linting errors
1. Run `yarn prettify:changes` to fix styling issues
1. Then, push your branch: `git push origin HEAD` (pushes the current branch to origin remote)
1. Open GitHub to create a PR from your newly published branch. Fill out the PR template and submit a PR.
1. Finally, the Amplify CLI team will review your PR. Add reviewers based on the core member who is tracking the issue with you or code owners. _In the meantime, address any automated check that fail (such as linting, unit tests, etc. in CI)_
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
"pkg-clean": "rimraf build out pkg/node_modules pkg/yarn.lock",
"pkg-all": "source .circleci/local_publish_helpers.sh && generatePkgCli",
"pkg-all-local": "yarn verdaccio-start && yarn verdaccio-connect && yarn publish-to-verdaccio && yarn pkg-all && yarn verdaccio-disconnect",
"prettify": "yarn prettier --write .",
"prettify:changes": "git diff --name-only --diff-filter MRA | xargs yarn prettier --write",
"yarn-use-bash": "yarn config set script-shell /bin/bash",
"verdaccio-start": "source .circleci/local_publish_helpers.sh && startLocalRegistry \"$(pwd)/.circleci/verdaccio.yaml\"",
"verdaccio-clean": "rimraf ../verdaccio-cache",
Expand Down

0 comments on commit 42d23c9

Please sign in to comment.