Skip to content

Commit

Permalink
fix(docs): doc tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
waldronmatt committed Nov 4, 2023
1 parent c130ab9 commit 2a16d43
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 12 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ pnpm prepare

## Setup

Token setup and repository settings can be [found here](docs/repo/SETUP.md).
Repository setup can be [found here](docs/repo/SETUP.md).

## Getting Started

**Note**: Append `--no-cache` at the end of cached commands to disable nx cloud caching and append `--skip-nx-cache` to disable cache connection to `nx cloud`. Example: `npx nx run-many -t test --no-cache --skip-nx-cache`
**Note**: Append `--skip-nx-cache` to disable cache for a specific command. Example: `npx nx run-many -t test --skip-nx-cache`

Commit changes using conventional changelog:

Expand Down
2 changes: 1 addition & 1 deletion docs/repo/ARCHITECTURE.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ pnpm-workspace.yaml

**`configs`** - Contains linters / configurations such as `eslint` / `tsconfig` shared across the monorepo

**`docs`** - Contains documentation for ui components and other documentation
**`docs`** - Contains documentation for ui components and workspace documentation

**`packages`** - Contains utilities and tools published to `npm` that are used across the monorepo

Expand Down
6 changes: 3 additions & 3 deletions docs/repo/SETUP.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,21 @@ Create an `nx` account [here](https://cloud.nx.app/).

Create an `NX_CLOUD_ACCESS_TOKEN` token [here](https://cloud.nx.app/) via `Settings` -> `Manage Tokens`.

Create an `nx-cloud.env` file at the project root to enable cloud caching:
Create an `nx-cloud.env` file at the project root to enable cloud caching locally:

```bash
NX_CLOUD_ACCESS_TOKEN=your-token
```

Set up `NX_CLOUD_ACCESS_TOKEN` via `Settings` -> `Secrets` -> `Actions` to enable cloud caching via GitHub Actions.
Set up `NX_CLOUD_ACCESS_TOKEN` in GitHub via `Settings` -> `Secrets` -> `Actions` to enable cloud caching via GitHub Actions.

## Lerna

Create a `GH_TOKEN` with `read/write` access [here](https://github.com/settings/tokens) to allow Lerna to create GitHub tags and releases.

Create an `NPM_TOKEN` [here](https://www.npmjs.com/login) as type `Automation` via the `Access Tokens` section to allow Lerna to publish packages.

Set up your `NPM_TOKEN` via `Settings` -> `Secrets` -> `Actions`.
Set up your `NPM_TOKEN` in GitHub via `Settings` -> `Secrets` -> `Actions`.

## Github

Expand Down
10 changes: 4 additions & 6 deletions docs/repo/WORKSPACE.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Workspace Commands

pnpm workspace commands

## Add Packages

Install dependecies to the root of the workspace:
Expand All @@ -10,16 +8,16 @@ Install dependecies to the root of the workspace:
pnpm add -w [package-name]
```

Add a package as a dependency for another local package:
Add a package as a dependency for local package:

```bash
pnpm add react --filter vite-project
```

Add a **local** package as a development dependency for another local package:
Add a **local** package and another package as a development dependency for local package:

```bash
pnpm add -D eslint-config-custom --workspace --filter vite-project
pnpm add -D eslint-config-custom --workspace eslint --filter vite-project
```

## Remove Packages
Expand All @@ -32,7 +30,7 @@ pnpm remove eslint-config-custom --filter vite-project

## Run Commands

Install / run commands for a specific sub-package:
Install / run commands for a specific local package:

```bash
pnpm dev --filter vite-project
Expand Down

0 comments on commit 2a16d43

Please sign in to comment.