Skip to content

Commit

Permalink
prerelease(roc-plugin-repo): 0.1.0-beta.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dlmr committed Jan 16, 2018
1 parent 4a61efd commit 68002bf
Show file tree
Hide file tree
Showing 7 changed files with 159 additions and 43 deletions.
39 changes: 39 additions & 0 deletions extensions/roc-plugin-repo/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,42 @@
<a name="0.1.0-beta.0"></a>
# 0.1.0-beta.0 (2018-01-16)

### Bug Fixes

* Bump conventional-changelog dependencies ([cb3c7c8](https://github.com/rocjs/roc-repo/commit/cb3c7c8))
* This to make sure we get the fix done in conventional-commits-filter that makes reverts work correctly.
* Improved logging from build, run and exec command ([e3c5379](https://github.com/rocjs/roc-repo/commit/e3c5379))
* Remove legacy command not meant to be used anymore ([26ad779](https://github.com/rocjs/roc-repo/commit/26ad779))
* Remove repo.targets since it's not used anymore ([89da3ed](https://github.com/rocjs/roc-repo/commit/89da3ed))
* This is now instead dynamic based on if the project has a JavaScript file in either "main" or "module".
* Solve a problem that could break auto scopes ([1f2a5b8](https://github.com/rocjs/roc-repo/commit/1f2a5b8))
* Sometimes auto scope (AUTO/*) detection would fail given certain modified files.
* Sort commits shown when using "roc repo status" ([ad7c826](https://github.com/rocjs/roc-repo/commit/ad7c826))
* Use execa over execute for better errors ([69666eb](https://github.com/rocjs/roc-repo/commit/69666eb))
* Use logger instead of console.log ([ecd47f7](https://github.com/rocjs/roc-repo/commit/ecd47f7))

### Features

* Add new command, "import", for importing repos ([6fcfeca](https://github.com/rocjs/roc-repo/commit/6fcfeca))
* Added new watch command that can be used over -w ([4a61efd](https://github.com/rocjs/roc-repo/commit/4a61efd))
* This is useful when implementing custom a build commands and want to be able to do the same when running watch.
* Configure types used in changelog and optional body ([a6dacdb](https://github.com/rocjs/roc-repo/commit/a6dacdb))
* This can be configured in the following way using `roc.config.js`.

```js
release: {
changelogTypes: true, // true for all types, will default to ['fix', 'perf', 'revert', 'feat']
includeBody: true, // Will default to false
}
```
* Made it possible to define custom scripts ([b38469b](https://github.com/rocjs/roc-repo/commit/b38469b))
* This can be done using npm scripts in the package.json for a project. Additionally it's possible to add actions that interact with how projects are built.
* Possible to use AUTO as scope in addition to * ([d981d72](https://github.com/rocjs/roc-repo/commit/d981d72))
* Require Jest over indirectly exporting it ([0a8bc2f](https://github.com/rocjs/roc-repo/commit/0a8bc2f))
* Means that project now will need to manage the Jest version themselves which will make it easier for projects to update Jest in the future and less risk for breaking changes in roc-plugin-repo.
* Show location of projects when using list command ([2a946e4](https://github.com/rocjs/roc-repo/commit/2a946e4))
<a name="0.0.28"></a>
## 0.0.28 (2017-12-01)
Expand Down
7 changes: 7 additions & 0 deletions extensions/roc-plugin-repo/docs/Actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* [roc-plugin-repo](#roc-plugin-repo)
* [babel-config](#babel-config-1)
* [get-projects](#get-projects)
* [run-script](#run-script)

## roc-plugin-babel

Expand All @@ -32,3 +33,9 @@ __Have post:__ No
__Connects to extension:__ Not specified
__Connects to hook:__ `get-projects`
__Have post:__ No

### run-script

__Connects to extension:__ Not specified
__Connects to hook:__ `run-script`
__Have post:__ No
107 changes: 79 additions & 28 deletions extensions/roc-plugin-repo/docs/Commands.md

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion extensions/roc-plugin-repo/docs/Dependencies.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ The dependencies that are available in the project.
Nothing is exported.

## Requires
Nothing is required.
### [jest](https://www.npmjs.com/package/jest)
__Version__: ^21.2.1 || ^22.0.0
__Extension__: roc-plugin-repo

## Uses
### roc-plugin-repo
Expand Down
16 changes: 16 additions & 0 deletions extensions/roc-plugin-repo/docs/Hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* [get-projects](#get-projects)
* [release-after-build](#release-after-build)
* [release-preconditions](#release-preconditions)
* [run-script](#run-script)

## roc

Expand Down Expand Up @@ -75,3 +76,18 @@ __Expected return value:__ _Nothing_
| --------- | ------------------------------ | --------------- | -------- | ------------ |
| toRelease | Projects that will be released | `Array(String)` | No | Yes |
| Listr | Listr instance | | No | |

### run-script

Invoked for build, clean, lint, release and test making it possible to customize what is done and extend existing functionality, the functions can return a promise.

__Initial value:__ _Nothing_
__Expected return value:__ `Function / Array(Function)`

#### Arguments

| Name | Description | Type | Required | Can be empty |
| -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------- | -------- | ------------ |
| script | The script that has been invoked, can be either `build`, `clean`, `lint`, `release` or `test`. | `String` | No | Yes |
| projects | The projects that the script has been invoked for. | `Array(Object())` | No | Yes |
| extra | Additional arguments containing `options`, `extraArguments` from the command as well as `createLogger` that takes a name and returns a function that can be used for logging | `Object()` | No | Yes |
27 changes: 14 additions & 13 deletions extensions/roc-plugin-repo/docs/Settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,20 @@

## Repo

| Name | Description | Path | CLI option | Default | Type | Required | Can be empty | Extensions |
| ---------------- | ---------------------------------------------------------------------------------------------------- | ----------------------------- | ------------------------------- | ---------------------------------------------------------- | ------------------------- | -------- | ------------ | --------------- |
| babelPresetEnv | Configuration to be used with babel-preset-env | repo.babelPresetEnv | --repo-babelPresetEnv | `{}` | `Object()` | No | Yes | roc-plugin-repo |
| input | Location of the code that should run through Babel. | repo.input | --repo-input | `"src"` | `Filepath` | No | Yes | roc-plugin-repo |
| mono | Directories that should be scanned for projects or false to disable monorepo support. | repo.mono | --repo-mono | `["packages","extensions"]` | `Array(Filepath) / false` | No | | roc-plugin-repo |
| npmBinary | What npm binary to use, can be &quot;yarn&quot; for example. | repo.npmBinary | --repo-npmBinary | `"npm"` | `String` | No | Yes | roc-plugin-repo |
| output | Location of where the compiled code should be saved. | repo.output | --repo-output | `"lib"` | `Filepath` | No | Yes | roc-plugin-repo |
| runGitHooks | If Git hooks should be invoked on automatic commit and push creation | repo.runGitHooks | --repo-runGitHooks | `false` | `Boolean` | No | | roc-plugin-repo |
| targets | The possible build targets. | repo.targets | --repo-targets | `["cjs","esm"]` | `Array(/cjs|esm/)` | No | Yes | roc-plugin-repo |
| test | Glob patterns for where tests can be found. | repo.test | --repo-test | `["**/__tests__/**/*.js?(x)","**/(*.)(spec|test).js?(x)"]` | `Array(String)` | No | Yes | roc-plugin-repo |
| Name | Description | Path | CLI option | Default | Type | Required | Can be empty | Extensions |
| ---------------- | ---------------------------------------------------------------------------------------------------- | ----------------------------- | ------------------------------- | ---------------------------------------------------------- | ------------------------------------------------------------------------- | -------- | ------------ | --------------- |
| babelPresetEnv | Configuration to be used with babel-preset-env | repo.babelPresetEnv | --repo-babelPresetEnv | `{}` | `Object()` | No | Yes | roc-plugin-repo |
| input | Location of the code that should run through Babel. | repo.input | --repo-input | `"src"` | `Filepath` | No | Yes | roc-plugin-repo |
| mono | Directories that should be scanned for projects or false to disable monorepo support. | repo.mono | --repo-mono | `["packages","extensions"]` | `Array(Filepath) / false` | No | | roc-plugin-repo |
| npmBinary | What npm binary to use, can be &quot;yarn&quot; for example. | repo.npmBinary | --repo-npmBinary | `"npm"` | `String` | No | Yes | roc-plugin-repo |
| output | Location of where the compiled code should be saved. | repo.output | --repo-output | `"lib"` | `Filepath` | No | Yes | roc-plugin-repo |
| runGitHooks | If Git hooks should be invoked on automatic commit and push creation | repo.runGitHooks | --repo-runGitHooks | `false` | `Boolean` | No | | roc-plugin-repo |
| test | Glob patterns for where tests can be found. | repo.test | --repo-test | `["**/__tests__/**/*.js?(x)","**/(*.)(spec|test).js?(x)"]` | `Array(String)` | No | Yes | roc-plugin-repo |

### Release

| Name | Description | Path | CLI option | Default | Type | Required | Can be empty | Extensions |
| ---------------- | ---------------------------------------------------------------------------------------------------- | ----------------------------- | ------------------------------- | ---------------------------------------------------------- | ------------------------- | -------- | ------------ | --------------- |
| collectedRelease | Should be a template string if collected releases should be performed for monorepos or false if not. | repo.release.collectedRelease | --repo-release-collectedRelease | `"[name:2:a].[hash:6].[date:yyyy-mm-dd]"` | `false / String` | No | | roc-plugin-repo |
| Name | Description | Path | CLI option | Default | Type | Required | Can be empty | Extensions |
| ---------------- | ---------------------------------------------------------------------------------------------------- | ----------------------------- | ------------------------------- | ---------------------------------------------------------- | ------------------------------------------------------------------------- | -------- | ------------ | --------------- |
| changelogTypes | Commit message types that always should create an entry in changelogs or true to create for all | repo.release.changelogTypes | --repo-release-changelogTypes | `["fix","perf","revert","feat"]` | `true / Array(/^(feat|fix|perf|revert|docs|style|refactor|test|chore)$/)` | No | | roc-plugin-repo |
| collectedRelease | Should be a template string if collected releases should be performed for monorepos or false if not. | repo.release.collectedRelease | --repo-release-collectedRelease | `"[name:2:a].[hash:6].[date:yyyy-mm-dd]"` | `false / String` | No | | roc-plugin-repo |
| includeBody | If the body of the commit message should be part of the changelog | repo.release.includeBody | --repo-release-includeBody | `false` | `Boolean` | No | | roc-plugin-repo |
2 changes: 1 addition & 1 deletion extensions/roc-plugin-repo/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "roc-plugin-repo",
"version": "0.0.28",
"version": "0.1.0-beta.0",
"description": "Roc plugin making it easy to manage JavaScript repositories",
"main": "lib/index.js",
"files": [
Expand Down

0 comments on commit 68002bf

Please sign in to comment.