boltpkg / boltpkg/bolt

bolt changed command

Open
#78 3 comments 2 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2.4k
Forks
97
PR merge metrics
No merged PRs in 30d

Description

We were discussing some ideas of how this might work in the Skate repo.
The idea would be to return a list of packages that had changed since master

We think it would look something like:

```sh
$ bolt changed
@scope/foo
@scope/bar
zee
```

but would support a couple of flags

```sh
$ bolt changed --glob
(@scope/foo|@scope/bar|zee)
```

```sh
$ bolt changed --fs
packages/elements/foo
packages/fabric/bar
packages/zee
```

```sh
$ bolt changed --json
["@scope/foo", "@scope/bar", "zee"]
```

This would allow you to make some really nice commands such as

```
# build only changed packages
BABEL_ENV=es bolt ws --only "$(bolt changed --glob)" exec -- babel src --out-dir es
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.