Skip to content

Commit

Permalink
Updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ojkelly committed Oct 21, 2021
1 parent fef3ff3 commit 2383d23
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 2 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
4 changes: 2 additions & 2 deletions .yarn/plugins/@ojkelly/plugin-build.cjs

Large diffs are not rendered by default.

22 changes: 22 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@ or workspace layout to avoid it.
As this is fundemental to ensuring sound builds, yarn build will never cache the
input folder if it's changed.

#### `query`

Run `yarn build query` from within a package to see the dependency graph of what
might be built.

_Query doesn't currently show what's cached / needs to be rebuilt._

### `bundle`

Bundle a package and its local dependencies, designed for containers and AWS lambda.
Expand All @@ -78,6 +85,21 @@ Choose an output directory outside your project and pass `--no-compress`.
yarn bundle --no-compress --output-directory /srv/app
```

#### `.bundleignore` NEW!

You can set files to be ignored when bundling for even smaller bundles.

Add a `.bundleignore` file with the same format as `.gitignore` next to the
`package.json` you are bundling.

Optionally put one next to your root `package.json` to apply to all bundles.

You can pass `--ignore-file` to specify a different ignore file.

Or decide at bundle time what to ignore by passing `--exclude` along with the file path to ignore.

See #112 for the original PR.

### `test`

Test your package and it's dependencies.
Expand Down

0 comments on commit 2383d23

Please sign in to comment.