Skip to content

Commit

Permalink
breaking: Remove release supporting tools from bin package
Browse files Browse the repository at this point in the history
  • Loading branch information
goce-cz committed Jun 9, 2022
1 parent 3bf0c59 commit f95606e
Show file tree
Hide file tree
Showing 17 changed files with 6 additions and 553 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"preinstall": "git config core.hooksPath git-hooks",
"build": "tsc -b packages/*/tsconfig.build.json",
"watch": "tsc -b packages/*/tsconfig.build.json -w",
"clean-build": "rm -rf packages/*/{tsconfig.tsbuildinfo,lib}",
"test": "jest",
"lint": "eslint . --ext .js,.ts,.tsx",
"typedoc": "typedoc packages/core/src/index.ts packages/observables/src/index.ts packages/utils/src/index.ts",
Expand Down
22 changes: 0 additions & 22 deletions packages/bin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,25 +28,6 @@ yarn add @spicy-hooks/bin --dev

## Commands

### `check-version`

Checks whether the `version` property in `package.json` of every workspace package matches the specified value.

Read [more about `check-version`](https://github.com/salsita/spicy-hooks/blob/next/packages/bin/docs/check-version.md)

### `set-version`

Sets a `version` property in `package.json` of every workspace package to the specified value.

Read [more about `set-version`](https://github.com/salsita/spicy-hooks/blob/next/packages/bin/docs/set-version.md)

### `prepare-release`

Pulls the latest release draft linked to the current Git branch from GitHub,
updates changelogs and set appropriate package versions.

Read [more about `prepare-release`](https://github.com/salsita/spicy-hooks/blob/next/packages/bin/docs/prepare-release.md)

### `redirect-refs`

Redirects any link pointing to the main-branch to a specific ref.
Expand Down Expand Up @@ -74,7 +55,4 @@ Please submit any issue or feature request on [the main project](https://github.

## Documentation

* [check-version](https://github.com/salsita/spicy-hooks/blob/next/packages/bin/docs/check-version.md)
* [set-version](https://github.com/salsita/spicy-hooks/blob/next/packages/bin/docs/set-version.md)
* [prepare-release](https://github.com/salsita/spicy-hooks/blob/next/packages/bin/docs/prepare-release.md)
* [redirect-refs](https://github.com/salsita/spicy-hooks/blob/next/packages/bin/docs/redirect-refs.md)
4 changes: 0 additions & 4 deletions packages/bin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,11 @@
"src"
],
"dependencies": {
"@expo/spawn-async": "^1.5.0",
"@octokit/core": "^3.1.2",
"@spicy-hooks/utils": "^2.1.4-rxjs7.0",
"chalk": "^4.1.0",
"command-line-args": "^5.1.1",
"command-line-usage": "^6.1.0",
"dotenv": "^8.2.0",
"fs-extra": "^9.0.1",
"glob": "^7.1.6",
"lodash": "^4.17.20",
"tslib": "^2.4.0"
Expand All @@ -28,7 +25,6 @@
"@types/command-line-args": "^5.0.0",
"@types/command-line-usage": "^5.0.1",
"@types/dotenv": "^8.2.0",
"@types/fs-extra": "^9.0.1",
"@types/glob": "^7.1.3",
"@types/lodash": "^4.14.161",
"typescript": "^4.7.3"
Expand Down
83 changes: 0 additions & 83 deletions packages/bin/src/internal/commands/check-version-command.ts

This file was deleted.

3 changes: 0 additions & 3 deletions packages/bin/src/internal/commands/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
export { checkVersionCommand } from './check-version-command'
export { setVersionCommand } from './set-version-command'
export { prepareReleaseCommand } from './prepare-release-command'
export { redirectRefsCommand } from './redirect-refs-command'
80 changes: 0 additions & 80 deletions packages/bin/src/internal/commands/prepare-release-command.ts

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { promisify } from 'util'
import { resolve } from 'path'
import glob from 'glob'
import { greenBright, gray } from 'chalk'
import { readFile, writeFile } from 'fs-extra'
import { readFile, writeFile } from 'fs/promises'
import { escapeRegExp } from 'lodash'

import { CommandDefinition } from '../utils/command-definition'
Expand Down
42 changes: 0 additions & 42 deletions packages/bin/src/internal/commands/set-version-command.ts

This file was deleted.

15 changes: 0 additions & 15 deletions packages/bin/src/internal/utils/changelog.spec.ts

This file was deleted.

87 changes: 0 additions & 87 deletions packages/bin/src/internal/utils/changelog.ts

This file was deleted.

6 changes: 0 additions & 6 deletions packages/bin/src/internal/utils/git.ts

This file was deleted.

Loading

0 comments on commit f95606e

Please sign in to comment.