Skip to content

Commit

Permalink
Merge pull request #28 from withastro/changeset-release/main
Browse files Browse the repository at this point in the history
[ci] release
  • Loading branch information
natemoo-re authored Dec 18, 2023
2 parents c12279b + 2d0f687 commit c6add8f
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 28 deletions.
27 changes: 0 additions & 27 deletions .changeset/breezy-chairs-hope.md

This file was deleted.

28 changes: 28 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,33 @@
# @astrojs/cli-kit

## 0.4.0

### Minor Changes

- fbec51e: Adds a new `tasks` utility that displays a spinner for multiple, sequential tasks.

```js
import { tasks } from "@astrojs/cli-kit";

const queue = [
{
pending: "Task 1",
start: "Task 1 initializing",
end: "Task 1 completed",
// async callback will be called and awaited sequentially
while: () => someAsyncAction(),
},
// etc
];

const labels = {
start: "Project initializing...",
end: "Project initialized!",
};

await tasks(labels, queue);
```

## 0.3.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@astrojs/cli-kit",
"type": "module",
"version": "0.3.1",
"version": "0.4.0",
"license": "MIT",
"types": "./dist/index.d.ts",
"packageManager": "pnpm@7.11.0",
Expand Down

0 comments on commit c6add8f

Please sign in to comment.