Skip to content

Commit dfe6274

Browse files
committed
feat(cli): improve --help output and examples
1 parent 749078d commit dfe6274

9 files changed

Lines changed: 396 additions & 107 deletions

.prettierrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"arrowParens": "always",
33
"printWidth": 80,
4+
"proseWrap": "always",
45
"singleQuote": true
56
}

CHANGELOG.md

Lines changed: 58 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -4,34 +4,46 @@
44

55
### Features
66

7-
- **cli:** read sources from lerna.json if present ([77b90eb](https://github.com/JamieMason/syncpack/commit/77b90eb)), closes [#11](https://github.com/JamieMason/syncpack/issues/11)
7+
- **cli:** read sources from lerna.json if present
8+
([77b90eb](https://github.com/JamieMason/syncpack/commit/77b90eb)), closes
9+
[#11](https://github.com/JamieMason/syncpack/issues/11)
810

911
<a name="3.3.0"></a>
1012

1113
# [3.3.0](https://github.com/JamieMason/syncpack/compare/3.0.0...3.3.0) (2018-10-28)
1214

1315
### Features
1416

15-
- **cli:** specify dependency types as options ([ec5ef6b](https://github.com/JamieMason/syncpack/commit/ec5ef6b)), closes [#10](https://github.com/JamieMason/syncpack/issues/10)
16-
- **cli:** specify indentation as option ([8b408bd](https://github.com/JamieMason/syncpack/commit/8b408bd)), closes [#12](https://github.com/JamieMason/syncpack/issues/12)
17-
- **format:** sort contributors alphabetically ([935ffcf](https://github.com/JamieMason/syncpack/commit/935ffcf))
17+
- **cli:** specify dependency types as options
18+
([ec5ef6b](https://github.com/JamieMason/syncpack/commit/ec5ef6b)), closes
19+
[#10](https://github.com/JamieMason/syncpack/issues/10)
20+
- **cli:** specify indentation as option
21+
([8b408bd](https://github.com/JamieMason/syncpack/commit/8b408bd)), closes
22+
[#12](https://github.com/JamieMason/syncpack/issues/12)
23+
- **format:** sort contributors alphabetically
24+
([935ffcf](https://github.com/JamieMason/syncpack/commit/935ffcf))
1825

1926
### Performance Improvements
2027

21-
- **npm:** move [@types](https://github.com/types) to devDependencies ([ad5951c](https://github.com/JamieMason/syncpack/commit/ad5951c)), closes [#13](https://github.com/JamieMason/syncpack/issues/13)
28+
- **npm:** move [@types](https://github.com/types) to devDependencies
29+
([ad5951c](https://github.com/JamieMason/syncpack/commit/ad5951c)), closes
30+
[#13](https://github.com/JamieMason/syncpack/issues/13)
2231

2332
<a name="3.0.0"></a>
2433

2534
# [3.0.0](https://github.com/JamieMason/syncpack/compare/2.0.1...3.0.0) (2018-08-25)
2635

2736
### Features
2837

29-
- **bin:** override package locations using repeatable --source options ([5dbcfd4](https://github.com/JamieMason/syncpack/commit/5dbcfd4))
30-
- **list-mismatches:** return exit code on finding mismatches ([06958c6](https://github.com/JamieMason/syncpack/commit/06958c6))
38+
- **bin:** override package locations using repeatable --source options
39+
([5dbcfd4](https://github.com/JamieMason/syncpack/commit/5dbcfd4))
40+
- **list-mismatches:** return exit code on finding mismatches
41+
([06958c6](https://github.com/JamieMason/syncpack/commit/06958c6))
3142

3243
### BREAKING CHANGES
3344

34-
- **bin:** Previously the location of package.json files could be overridden like so:
45+
- **bin:** Previously the location of package.json files could be overridden
46+
like so:
3547

3648
```
3749
syncpack list './package.json' './packages/*/package.json'
@@ -52,15 +64,19 @@ overridable `--target` option.
5264

5365
### Bug Fixes
5466

55-
- **core:** ensure pattern overrides are read ([7513ba5](https://github.com/JamieMason/syncpack/commit/7513ba5))
67+
- **core:** ensure pattern overrides are read
68+
([7513ba5](https://github.com/JamieMason/syncpack/commit/7513ba5))
5669

5770
<a name="2.0.0"></a>
5871

5972
# [2.0.0](https://github.com/JamieMason/syncpack/compare/1.3.2...2.0.0) (2018-04-29)
6073

6174
### Features
6275

63-
- **core:** support multiple glob patterns ([a2b5af0](https://github.com/JamieMason/syncpack/commit/a2b5af0)), closes [#5](https://github.com/JamieMason/syncpack/issues/5) [#6](https://github.com/JamieMason/syncpack/issues/6)
76+
- **core:** support multiple glob patterns
77+
([a2b5af0](https://github.com/JamieMason/syncpack/commit/a2b5af0)), closes
78+
[#5](https://github.com/JamieMason/syncpack/issues/5)
79+
[#6](https://github.com/JamieMason/syncpack/issues/6)
6480

6581
### BREAKING CHANGES
6682

@@ -72,16 +88,19 @@ overridable `--target` option.
7288

7389
### Features
7490

75-
- **core:** add set-semver-ranges command ([4d206b9](https://github.com/JamieMason/syncpack/commit/4d206b9))
91+
- **core:** add set-semver-ranges command
92+
([4d206b9](https://github.com/JamieMason/syncpack/commit/4d206b9))
7693

7794
<a name="1.2.2"></a>
7895

7996
## [1.2.2](https://github.com/JamieMason/syncpack/compare/1.0.2...1.2.2) (2018-02-10)
8097

8198
### Features
8299

83-
- **core:** add format command ([bae1133](https://github.com/JamieMason/syncpack/commit/bae1133))
84-
- **core:** output current version ([e53cd99](https://github.com/JamieMason/syncpack/commit/e53cd99))
100+
- **core:** add format command
101+
([bae1133](https://github.com/JamieMason/syncpack/commit/bae1133))
102+
- **core:** output current version
103+
([e53cd99](https://github.com/JamieMason/syncpack/commit/e53cd99))
85104

86105
<a name="1.0.2"></a>
87106

@@ -93,24 +112,32 @@ overridable `--target` option.
93112

94113
### Bug Fixes
95114

96-
- **core:** correct paths to binaries ([5682cd6](https://github.com/JamieMason/syncpack/commit/5682cd6))
115+
- **core:** correct paths to binaries
116+
([5682cd6](https://github.com/JamieMason/syncpack/commit/5682cd6))
97117

98118
<a name="1.0.0"></a>
99119

100120
# [1.0.0](https://github.com/JamieMason/syncpack/compare/0.3.1...1.0.0) (2018-02-02)
101121

102122
### Bug Fixes
103123

104-
- **core:** correctly check a file is package.json ([d1da609](https://github.com/JamieMason/syncpack/commit/d1da609))
105-
- **core:** handle missing dependency maps ([372aa68](https://github.com/JamieMason/syncpack/commit/372aa68))
106-
- **core:** handle semver ranges containing 1.x.x ([a0f8f56](https://github.com/JamieMason/syncpack/commit/a0f8f56))
124+
- **core:** correctly check a file is package.json
125+
([d1da609](https://github.com/JamieMason/syncpack/commit/d1da609))
126+
- **core:** handle missing dependency maps
127+
([372aa68](https://github.com/JamieMason/syncpack/commit/372aa68))
128+
- **core:** handle semver ranges containing 1.x.x
129+
([a0f8f56](https://github.com/JamieMason/syncpack/commit/a0f8f56))
107130

108131
### Features
109132

110-
- **core:** add fix-mismatches command ([4793f1f](https://github.com/JamieMason/syncpack/commit/4793f1f))
111-
- **core:** add list command ([3b29176](https://github.com/JamieMason/syncpack/commit/3b29176))
112-
- **core:** add list-mismatches command ([735ad2b](https://github.com/JamieMason/syncpack/commit/735ad2b))
113-
- **core:** update command line API ([de8dcb2](https://github.com/JamieMason/syncpack/commit/de8dcb2))
133+
- **core:** add fix-mismatches command
134+
([4793f1f](https://github.com/JamieMason/syncpack/commit/4793f1f))
135+
- **core:** add list command
136+
([3b29176](https://github.com/JamieMason/syncpack/commit/3b29176))
137+
- **core:** add list-mismatches command
138+
([735ad2b](https://github.com/JamieMason/syncpack/commit/735ad2b))
139+
- **core:** update command line API
140+
([de8dcb2](https://github.com/JamieMason/syncpack/commit/de8dcb2))
114141

115142
### BREAKING CHANGES
116143

@@ -122,36 +149,41 @@ overridable `--target` option.
122149

123150
### Bug Fixes
124151

125-
- **copy-values:** write results to disk ([a641de4](https://github.com/JamieMason/syncpack/commit/a641de4))
152+
- **copy-values:** write results to disk
153+
([a641de4](https://github.com/JamieMason/syncpack/commit/a641de4))
126154

127155
<a name="0.3.0"></a>
128156

129157
# [0.3.0](https://github.com/JamieMason/syncpack/compare/0.2.1...0.3.0) (2017-08-22)
130158

131159
### Features
132160

133-
- **cli:** add copy-values command ([b51a2c9](https://github.com/JamieMason/syncpack/commit/b51a2c9))
161+
- **cli:** add copy-values command
162+
([b51a2c9](https://github.com/JamieMason/syncpack/commit/b51a2c9))
134163

135164
<a name="0.2.1"></a>
136165

137166
## [0.2.1](https://github.com/JamieMason/syncpack/compare/0.2.0...0.2.1) (2017-08-20)
138167

139168
### Bug Fixes
140169

141-
- **core:** update dependencies, fix lint warnings ([a65eef7](https://github.com/JamieMason/syncpack/commit/a65eef7))
170+
- **core:** update dependencies, fix lint warnings
171+
([a65eef7](https://github.com/JamieMason/syncpack/commit/a65eef7))
142172

143173
<a name="0.2.0"></a>
144174

145175
# [0.2.0](https://github.com/JamieMason/syncpack/compare/0.1.0...0.2.0) (2017-08-20)
146176

147177
### Features
148178

149-
- **sync:** synchronise versions across multiple package.json ([7d5848a](https://github.com/JamieMason/syncpack/commit/7d5848a))
179+
- **sync:** synchronise versions across multiple package.json
180+
([7d5848a](https://github.com/JamieMason/syncpack/commit/7d5848a))
150181

151182
<a name="0.1.0"></a>
152183

153184
# [0.1.0](https://github.com/JamieMason/syncpack/compare/f6dada7...0.1.0) (2017-08-18)
154185

155186
### Features
156187

157-
- **cli:** create scaffold cli ([f6dada7](https://github.com/JamieMason/syncpack/commit/f6dada7))
188+
- **cli:** create scaffold cli
189+
([f6dada7](https://github.com/JamieMason/syncpack/commit/f6dada7))

DEPENDENCIES.md

Lines changed: 30 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ Manage multiple package.json files, such as in Lerna Monorepos
77
This is a [Node.js](https://nodejs.org/) module available through the
88
[npm registry](https://www.npmjs.com/). It can be installed using the
99
[`npm`](https://docs.npmjs.com/getting-started/installing-npm-packages-locally)
10-
or
11-
[`yarn`](https://yarnpkg.com/en/)
12-
command line tools.
10+
or [`yarn`](https://yarnpkg.com/en/) command line tools.
1311

1412
```sh
1513
npm install syncpack --save
@@ -25,29 +23,44 @@ npm test
2523
## Dependencies
2624

2725
- [chalk](http://ghub.io/chalk): Terminal string styling done right
28-
- [commander](http://ghub.io/commander): the complete solution for node.js command-line programs
29-
- [fs-extra](http://ghub.io/fs-extra): fs-extra contains methods that aren&#39;t included in the vanilla Node.js fs package. Such as mkdir -p, cp -r, and rm -rf.
30-
- [globby](http://ghub.io/globby): Extends `glob` with support for multiple patterns and exposes a Promise API
26+
- [commander](http://ghub.io/commander): the complete solution for node.js
27+
command-line programs
28+
- [fs-extra](http://ghub.io/fs-extra): fs-extra contains methods that aren&#39;t
29+
included in the vanilla Node.js fs package. Such as mkdir -p, cp -r, and rm
30+
-rf.
31+
- [globby](http://ghub.io/globby): Extends `glob` with support for multiple
32+
patterns and exposes a Promise API
3133
- [lodash](http://ghub.io/lodash): Lodash modular utilities.
3234
- [semver](http://ghub.io/semver): The semantic version parser used by npm.
3335

3436
## Dev Dependencies
3537

36-
- [@types/fs-extra](http://ghub.io/@types/fs-extra): TypeScript definitions for fs-extra
37-
- [@types/globby](http://ghub.io/@types/globby): TypeScript definitions for globby
38+
- [@types/fs-extra](http://ghub.io/@types/fs-extra): TypeScript definitions for
39+
fs-extra
40+
- [@types/globby](http://ghub.io/@types/globby): TypeScript definitions for
41+
globby
3842
- [@types/jest](http://ghub.io/@types/jest): TypeScript definitions for Jest
39-
- [@types/lodash](http://ghub.io/@types/lodash): TypeScript definitions for Lo-Dash
40-
- [@types/mock-fs](http://ghub.io/@types/mock-fs): TypeScript definitions for mock-fs
43+
- [@types/lodash](http://ghub.io/@types/lodash): TypeScript definitions for
44+
Lo-Dash
45+
- [@types/mock-fs](http://ghub.io/@types/mock-fs): TypeScript definitions for
46+
mock-fs
4147
- [@types/node](http://ghub.io/@types/node): TypeScript definitions for Node.js
42-
- [@types/semver](http://ghub.io/@types/semver): TypeScript definitions for semver
43-
- [expect-more-jest](http://ghub.io/expect-more-jest): Write Beautiful Specs with Custom Matchers
48+
- [@types/semver](http://ghub.io/@types/semver): TypeScript definitions for
49+
semver
50+
- [expect-more-jest](http://ghub.io/expect-more-jest): Write Beautiful Specs
51+
with Custom Matchers
4452
- [jest](http://ghub.io/jest): Delightful JavaScript Testing.
45-
- [mock-fs](http://ghub.io/mock-fs): A configurable mock file system. You know, for testing.
53+
- [mock-fs](http://ghub.io/mock-fs): A configurable mock file system. You know,
54+
for testing.
4655
- [prettier](http://ghub.io/prettier): Prettier is an opinionated code formatter
47-
- [rimraf](http://ghub.io/rimraf): A deep deletion module for node (like `rm -rf`)
48-
- [ts-jest](http://ghub.io/ts-jest): A preprocessor with source maps support to help use TypeScript with Jest
49-
- [tslint](http://ghub.io/tslint): An extensible static analysis linter for the TypeScript language
50-
- [typescript](http://ghub.io/typescript): TypeScript is a language for application scale JavaScript development
56+
- [rimraf](http://ghub.io/rimraf): A deep deletion module for node (like
57+
`rm -rf`)
58+
- [ts-jest](http://ghub.io/ts-jest): A preprocessor with source maps support to
59+
help use TypeScript with Jest
60+
- [tslint](http://ghub.io/tslint): An extensible static analysis linter for the
61+
TypeScript language
62+
- [typescript](http://ghub.io/typescript): TypeScript is a language for
63+
application scale JavaScript development
5164

5265
## License
5366

0 commit comments

Comments
 (0)