-
Notifications
You must be signed in to change notification settings - Fork 2.9k
docs: command cheat sheet #30685
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
docs: command cheat sheet #30685
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,31 @@ | ||
| // TODO #30642 A doc showing a table of every day commands. | ||
| This is a helpful list of helpful every day commands. | ||
|
|
||
| Assignee - Mason | ||
| Reviewer - Esteban | ||
| yarn // installs everything. It fixes many things. | ||
| yarn buildto package-name // Does a yarn build scoped to a specific package and its dependencies for faster speeds vs building the whole repo. | ||
| yarn test // runs a test suite. It is slightly different from the test suite in the CI/CD test suite. Can be run from inside a given package to run faster. | ||
|
mltejera marked this conversation as resolved.
|
||
| yarn create-package // scaffolds a new package | ||
| yarn create-component // scaffolds a new component | ||
|
mltejera marked this conversation as resolved.
|
||
| yarn change // creates a new change file, if needed | ||
| yarn clean // tidies any cached dependencies | ||
| yarn start // runs a package. You can select the package of choice. | ||
| yarn update-snapshots // updates snapshot tests | ||
|
mltejera marked this conversation as resolved.
|
||
| yarn run dedupe // dedupes dependencies - necessary to run after any kind of package bump/changes | ||
| yarn nx run <package-name>:generate-api // updates API files | ||
| yarn nx run <package-name>:<target-name> // runs tasks within a package. [More help here][https://nx.dev/features/run-tasks#running-tasks] | ||
|
|
||
| git checkout user/jdoe/some-fancy-branch-name // checks out an existing branch | ||
| git checkout -b user/jdoe/some-fancy-branch-name // creates a branch initially | ||
| git status // shows a list of changed files. | ||
| git add . // stages all your changed files | ||
| git add some/file/name // adds a specific file to the change set | ||
| git commit -m "your commit message" // commits all your staged files | ||
| git commit -a -m "some commit message" // stages and commits everything in one command. | ||
| git pull upstream master // pulls the latest version of master to your local machine from the root repo, not your fork | ||
| git rebase master // tacks all your commits from your current branch onto the end of master. Prefer this over merges. | ||
| git rebase -i master // shows your list of commits about to rebased before it's committed. | ||
| git branch // lists all the branches on your local machine | ||
| git push // pushes things to your forked repo, not the main repo. | ||
| git push upstream // pushes your branch to the main repo. | ||
| git push upstream --force // force is needed after a rebase. | ||
|
|
||
| lage build --to react // build v8 so intellisense works. | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.