Skip to content

Commit

Permalink
feat: highlight steps in the output for better readability
Browse files Browse the repository at this point in the history
  • Loading branch information
antongolub committed Aug 7, 2020
1 parent b705021 commit 7abff28
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
"dependencies": {
"@types/find-cache-dir": "^3.2.0",
"@types/fs-extra": "^9.0.1",
"chalk": "^4.1.0",
"find-cache-dir": "^3.3.1",
"fs-extra": "^9.0.1",
"synp": "^1.7.1",
Expand Down
3 changes: 2 additions & 1 deletion src/main/ts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import fs from 'fs-extra'
import synp from 'synp'
import {join} from 'path'
import findCacheDir from 'find-cache-dir'
import chalk from 'chalk'
import {
invoke,
} from './util'
Expand Down Expand Up @@ -81,7 +82,7 @@ export const run = async() => {
}

for (const [description, ...steps] of stages) {
console.log(description)
console.log(chalk.bold(description))

for (const step of steps) step(ctx)
}
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1699,7 +1699,7 @@ chalk@^3.0.0:
ansi-styles "^4.1.0"
supports-color "^7.1.0"

chalk@^4.0.0:
chalk@^4.0.0, chalk@^4.1.0:
version "4.1.0"
resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.0.tgz#4e14870a618d9e2edd97dd8345fd9d9dc315646a"
integrity sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==
Expand Down

0 comments on commit 7abff28

Please sign in to comment.