@commitlint/prompt-cli 13.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md ADDED
@@ -0,0 +1,658 @@
1
+ # Change Log
2
+
3
+ All notable changes to this project will be documented in this file.
4
+ See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
+
6
+ # [13.2.0](https://github.com/conventional-changelog/commitlint/compare/v13.1.0...v13.2.0) (2021-09-28)
7
+
8
+ **Note:** Version bump only for package @commitlint/prompt-cli
9
+
10
+
11
+
12
+
13
+
14
+ # [13.1.0](https://github.com/conventional-changelog/commitlint/compare/v13.0.0...v13.1.0) (2021-07-24)
15
+
16
+ **Note:** Version bump only for package @commitlint/prompt-cli
17
+
18
+
19
+
20
+
21
+
22
+ # [13.0.0](https://github.com/conventional-changelog/commitlint/compare/v12.1.4...v13.0.0) (2021-05-24)
23
+
24
+
25
+ * chore!: remove node 10 support (#2596) ([4db4ba1](https://github.com/conventional-changelog/commitlint/commit/4db4ba1b0b312410a0f62100a93a80c246a6c410)), closes [#2596](https://github.com/conventional-changelog/commitlint/issues/2596)
26
+
27
+
28
+ ### BREAKING CHANGES
29
+
30
+ * minimum node version is 12
31
+
32
+
33
+
34
+
35
+
36
+ ## [12.1.3](https://github.com/conventional-changelog/commitlint/compare/v12.1.2...v12.1.3) (2021-05-12)
37
+
38
+ **Note:** Version bump only for package @commitlint/prompt-cli
39
+
40
+
41
+
42
+
43
+
44
+ ## [12.1.2](https://github.com/conventional-changelog/commitlint/compare/v12.1.1...v12.1.2) (2021-04-29)
45
+
46
+ **Note:** Version bump only for package @commitlint/prompt-cli
47
+
48
+
49
+
50
+
51
+
52
+ ## [12.1.1](https://github.com/conventional-changelog/commitlint/compare/v12.1.0...v12.1.1) (2021-04-02)
53
+
54
+ **Note:** Version bump only for package @commitlint/prompt-cli
55
+
56
+
57
+
58
+
59
+
60
+ # [12.1.0](https://github.com/conventional-changelog/commitlint/compare/v12.0.1...v12.1.0) (2021-03-06)
61
+
62
+ **Note:** Version bump only for package @commitlint/prompt-cli
63
+
64
+
65
+
66
+
67
+
68
+ ## [12.0.1](https://github.com/conventional-changelog/commitlint/compare/v12.0.0...v12.0.1) (2021-02-23)
69
+
70
+ **Note:** Version bump only for package @commitlint/prompt-cli
71
+
72
+
73
+
74
+
75
+
76
+ # [12.0.0](https://github.com/conventional-changelog/commitlint/compare/v11.0.0...v12.0.0) (2021-01-18)
77
+
78
+
79
+ ### Bug Fixes
80
+
81
+ * update dependency execa to v5 ([#2341](https://github.com/conventional-changelog/commitlint/issues/2341)) ([f349df9](https://github.com/conventional-changelog/commitlint/commit/f349df90f08096a9bcad46b5e55b411aac327a24))
82
+
83
+
84
+
85
+
86
+
87
+ # [11.0.0](https://github.com/conventional-changelog/commitlint/compare/v10.0.0...v11.0.0) (2020-09-05)
88
+
89
+ **Note:** Version bump only for package @commitlint/prompt-cli
90
+
91
+
92
+
93
+
94
+
95
+ # [10.0.0](https://github.com/conventional-changelog/commitlint/compare/v9.1.2...v10.0.0) (2020-08-16)
96
+
97
+
98
+ ### Bug Fixes
99
+
100
+ * update dependency execa to v4 ([#1936](https://github.com/conventional-changelog/commitlint/issues/1936)) ([8efb441](https://github.com/conventional-changelog/commitlint/commit/8efb44193058d286f7325327a6d33936b273ec91))
101
+
102
+
103
+ * refactor!: drop support for node 8 (#1999) ([751f39f](https://github.com/conventional-changelog/commitlint/commit/751f39f284ef232574a176c3c11b1982ee544166)), closes [#1999](https://github.com/conventional-changelog/commitlint/issues/1999)
104
+
105
+
106
+ ### BREAKING CHANGES
107
+
108
+ * remove node 8 from circle-ci checks
109
+
110
+ also remove node 13 because we do not support experimental versions
111
+
112
+ * docs: update node v10 to latest LTS 10 version
113
+
114
+ Co-authored-by: Cedric van Putten <me@bycedric.com>
115
+
116
+ Co-authored-by: Cedric van Putten <me@bycedric.com>
117
+
118
+
119
+
120
+
121
+
122
+ ## [9.1.2](https://github.com/conventional-changelog/commitlint/compare/v9.1.1...v9.1.2) (2020-07-13)
123
+
124
+ **Note:** Version bump only for package @commitlint/prompt-cli
125
+
126
+
127
+
128
+
129
+
130
+ ## [9.1.1](https://github.com/conventional-changelog/commitlint/compare/v9.1.0...v9.1.1) (2020-06-30)
131
+
132
+ **Note:** Version bump only for package @commitlint/prompt-cli
133
+
134
+
135
+
136
+
137
+
138
+ # [9.1.0](https://github.com/conventional-changelog/commitlint/compare/v9.0.1...v9.1.0) (2020-06-21)
139
+
140
+ **Note:** Version bump only for package @commitlint/prompt-cli
141
+
142
+
143
+
144
+
145
+
146
+ ## [9.0.1](https://github.com/conventional-changelog/commitlint/compare/v9.0.0...v9.0.1) (2020-05-26)
147
+
148
+ **Note:** Version bump only for package @commitlint/prompt-cli
149
+
150
+
151
+
152
+
153
+
154
+ # [9.0.0](https://github.com/conventional-changelog/commitlint/compare/v8.3.5...v9.0.0) (2020-05-21)
155
+
156
+ **Note:** Version bump only for package @commitlint/prompt-cli
157
+
158
+
159
+
160
+
161
+
162
+ ## [8.3.5](https://github.com/conventional-changelog/commitlint/compare/v8.3.4...v8.3.5) (2020-01-15)
163
+
164
+ **Note:** Version bump only for package @commitlint/prompt-cli
165
+
166
+
167
+
168
+
169
+
170
+ ## [8.3.4](https://github.com/conventional-changelog/commitlint/compare/v8.3.3...v8.3.4) (2020-01-03)
171
+
172
+ **Note:** Version bump only for package @commitlint/prompt-cli
173
+
174
+
175
+
176
+
177
+
178
+ ## [8.3.1](https://github.com/conventional-changelog/commitlint/compare/v8.3.0...v8.3.1) (2019-10-16)
179
+
180
+ **Note:** Version bump only for package @commitlint/prompt-cli
181
+
182
+
183
+
184
+
185
+
186
+ # [8.3.0](https://github.com/conventional-changelog/commitlint/compare/v8.2.0...v8.3.0) (2019-10-16)
187
+
188
+ **Note:** Version bump only for package @commitlint/prompt-cli
189
+
190
+
191
+
192
+
193
+
194
+ # [8.2.0](https://github.com/conventional-changelog/commitlint/compare/v8.1.0...v8.2.0) (2019-09-16)
195
+
196
+ **Note:** Version bump only for package @commitlint/prompt-cli
197
+
198
+
199
+
200
+
201
+
202
+ # [8.1.0](https://github.com/conventional-changelog/commitlint/compare/v8.0.0...v8.1.0) (2019-07-15)
203
+
204
+ **Note:** Version bump only for package @commitlint/prompt-cli
205
+
206
+
207
+
208
+
209
+
210
+ ## [7.6.1](https://github.com/conventional-changelog/commitlint/compare/v7.6.0...v7.6.1) (2019-05-09)
211
+
212
+ **Note:** Version bump only for package @commitlint/prompt-cli
213
+
214
+
215
+
216
+
217
+
218
+ # [7.6.0](https://github.com/conventional-changelog/commitlint/compare/v7.5.2...v7.6.0) (2019-05-06)
219
+
220
+ **Note:** Version bump only for package @commitlint/prompt-cli
221
+
222
+
223
+
224
+
225
+
226
+ <a name="7.5.0"></a>
227
+ # [7.5.0](https://github.com/conventional-changelog/commitlint/compare/v7.4.0...v7.5.0) (2019-01-31)
228
+
229
+
230
+ ### Bug Fixes
231
+
232
+ * all broken website references ([#564](https://github.com/conventional-changelog/commitlint/issues/564)) ([82eeb5a](https://github.com/conventional-changelog/commitlint/commit/82eeb5a))
233
+ * replace all repository references with conventional changelog ([#561](https://github.com/conventional-changelog/commitlint/issues/561)) ([6c3afcd](https://github.com/conventional-changelog/commitlint/commit/6c3afcd))
234
+ * replace all website references with conventional changelog ([#563](https://github.com/conventional-changelog/commitlint/issues/563)) ([6b86fb1](https://github.com/conventional-changelog/commitlint/commit/6b86fb1))
235
+
236
+
237
+
238
+
239
+ <a name="7.3.1"></a>
240
+ ## [7.3.1](https://github.com/conventional-changelog/commitlint/compare/v7.3.0...v7.3.1) (2019-01-11)
241
+
242
+
243
+
244
+
245
+ **Note:** Version bump only for package @commitlint/prompt-cli
246
+
247
+ <a name="7.3.0"></a>
248
+ # [7.3.0](https://github.com/conventional-changelog/commitlint/compare/v7.2.1...v7.3.0) (2019-01-11)
249
+
250
+
251
+ ### Features
252
+
253
+ * check stage before entering prompt ([#495](https://github.com/conventional-changelog/commitlint/issues/495)) ([3b3667a](https://github.com/conventional-changelog/commitlint/commit/3b3667a)), closes [#51](https://github.com/conventional-changelog/commitlint/issues/51) [#51](https://github.com/conventional-changelog/commitlint/issues/51)
254
+
255
+
256
+
257
+
258
+ <a name="7.2.1"></a>
259
+ ## [7.2.1](https://github.com/conventional-changelog/commitlint/compare/v7.2.0...v7.2.1) (2018-10-11)
260
+
261
+
262
+
263
+
264
+ **Note:** Version bump only for package @commitlint/prompt-cli
265
+
266
+ <a name="7.2.0"></a>
267
+ # [7.2.0](https://github.com/conventional-changelog/commitlint/compare/v7.1.2...v7.2.0) (2018-10-05)
268
+
269
+
270
+
271
+
272
+ **Note:** Version bump only for package @commitlint/prompt-cli
273
+
274
+ <a name="7.1.2"></a>
275
+ ## [7.1.2](https://github.com/conventional-changelog/commitlint/compare/v7.1.1...v7.1.2) (2018-09-04)
276
+
277
+
278
+
279
+
280
+ **Note:** Version bump only for package @commitlint/prompt-cli
281
+
282
+ <a name="6.1.1"></a>
283
+ ## [6.1.1](https://github.com/conventional-changelog/commitlint/compare/v6.1.0...v6.1.1) (2018-02-22)
284
+
285
+
286
+
287
+
288
+ **Note:** Version bump only for package @commitlint/prompt-cli
289
+
290
+ <a name="6.1.0"></a>
291
+ # [6.1.0](https://github.com/conventional-changelog/commitlint/compare/v6.0.5...v6.1.0) (2018-02-03)
292
+
293
+
294
+
295
+
296
+ **Note:** Version bump only for package @commitlint/prompt-cli
297
+
298
+ <a name="6.0.5"></a>
299
+ ## [6.0.5](https://github.com/conventional-changelog/commitlint/compare/v6.0.4...v6.0.5) (2018-01-31)
300
+
301
+
302
+
303
+
304
+ **Note:** Version bump only for package @commitlint/prompt-cli
305
+
306
+ <a name="6.0.4"></a>
307
+ ## [6.0.4](https://github.com/conventional-changelog/commitlint/compare/v6.0.3...v6.0.4) (2018-01-31)
308
+
309
+
310
+
311
+
312
+ **Note:** Version bump only for package @commitlint/prompt-cli
313
+
314
+ <a name="6.0.3"></a>
315
+ ## [6.0.3](https://github.com/conventional-changelog/commitlint/compare/v6.0.2...v6.0.3) (2018-01-31)
316
+
317
+
318
+
319
+
320
+ **Note:** Version bump only for package @commitlint/prompt-cli
321
+
322
+ <a name="6.0.2"></a>
323
+ ## [6.0.2](https://github.com/conventional-changelog/commitlint/compare/v6.0.0...v6.0.2) (2018-01-12)
324
+
325
+
326
+
327
+
328
+ **Note:** Version bump only for package @commitlint/prompt-cli
329
+
330
+ <a name="6.0.1"></a>
331
+ ## [6.0.1](https://github.com/conventional-changelog/commitlint/compare/v6.0.0...v6.0.1) (2018-01-09)
332
+
333
+
334
+
335
+
336
+ **Note:** Version bump only for package @commitlint/prompt-cli
337
+
338
+ <a name="6.0.0"></a>
339
+ # [6.0.0](https://github.com/conventional-changelog/commitlint/compare/v5.2.6...v6.0.0) (2018-01-09)
340
+
341
+
342
+
343
+
344
+ **Note:** Version bump only for package @commitlint/prompt-cli
345
+
346
+ <a name="5.2.6"></a>
347
+ ## [5.2.6](https://github.com/conventional-changelog/commitlint/compare/v5.2.5...v5.2.6) (2017-12-21)
348
+
349
+
350
+
351
+
352
+ **Note:** Version bump only for package @commitlint/prompt-cli
353
+
354
+ <a name="5.2.5"></a>
355
+ ## [5.2.5](https://github.com/conventional-changelog/commitlint/compare/v5.2.4...v5.2.5) (2017-12-08)
356
+
357
+
358
+
359
+
360
+ **Note:** Version bump only for package @commitlint/prompt-cli
361
+
362
+ <a name="5.2.4"></a>
363
+ ## [5.2.4](https://github.com/conventional-changelog/commitlint/compare/v5.2.3...v5.2.4) (2017-12-08)
364
+
365
+
366
+
367
+
368
+ **Note:** Version bump only for package @commitlint/prompt-cli
369
+
370
+ <a name="5.2.0"></a>
371
+ # [5.2.0](https://github.com/conventional-changelog/commitlint/compare/v5.1.3...v5.2.0) (2017-11-30)
372
+
373
+
374
+
375
+
376
+ **Note:** Version bump only for package @commitlint/prompt-cli
377
+
378
+ <a name="5.1.2"></a>
379
+ ## [5.1.2](https://github.com/conventional-changelog/commitlint/compare/v5.1.1...v5.1.2) (2017-11-24)
380
+
381
+
382
+
383
+
384
+ **Note:** Version bump only for package @commitlint/prompt-cli
385
+
386
+ <a name="5.1.1"></a>
387
+ ## [5.1.1](https://github.com/conventional-changelog/commitlint/compare/v5.1.0...v5.1.1) (2017-11-24)
388
+
389
+
390
+
391
+
392
+ **Note:** Version bump only for package @commitlint/prompt-cli
393
+
394
+ <a name="5.1.0"></a>
395
+ # [5.1.0](https://github.com/conventional-changelog/commitlint/compare/v5.0.2...v5.1.0) (2017-11-24)
396
+
397
+
398
+ ### Features
399
+
400
+ * **travis-cli:** add reusable travis command line interface ([3e6e6a8](https://github.com/conventional-changelog/commitlint/commit/3e6e6a8))
401
+
402
+
403
+
404
+
405
+ <a name="5.0.1"></a>
406
+ ## [5.0.1](https://github.com/conventional-changelog/commitlint/compare/v5.0.0...v5.0.1) (2017-11-19)
407
+
408
+
409
+
410
+
411
+ **Note:** Version bump only for package @commitlint/prompt-cli
412
+
413
+ <a name="4.3.0"></a>
414
+ # [4.3.0](https://github.com/conventional-changelog/commitlint/compare/v4.2.2...v4.3.0) (2017-11-08)
415
+
416
+
417
+
418
+
419
+ **Note:** Version bump only for package @commitlint/prompt-cli
420
+
421
+ <a name="4.2.2"></a>
422
+ ## [4.2.2](https://github.com/conventional-changelog/commitlint/compare/v4.2.1...v4.2.2) (2017-10-26)
423
+
424
+
425
+
426
+
427
+ **Note:** Version bump only for package @commitlint/prompt-cli
428
+
429
+ <a name="4.2.1"></a>
430
+ ## [4.2.1](https://github.com/conventional-changelog/commitlint/compare/v4.2.0...v4.2.1) (2017-10-18)
431
+
432
+
433
+
434
+
435
+ **Note:** Version bump only for package @commitlint/prompt-cli
436
+
437
+ <a name="4.2.0"></a>
438
+ # [4.2.0](https://github.com/conventional-changelog/commitlint/compare/v4.1.1...v4.2.0) (2017-10-14)
439
+
440
+
441
+
442
+
443
+ **Note:** Version bump only for package @commitlint/prompt-cli
444
+
445
+ <a name="4.1.1"></a>
446
+ ## [4.1.1](https://github.com/conventional-changelog/commitlint/compare/v4.1.0...v4.1.1) (2017-10-09)
447
+
448
+
449
+
450
+
451
+ **Note:** Version bump only for package @commitlint/prompt-cli
452
+
453
+ <a name="4.1.0"></a>
454
+ # [4.1.0](https://github.com/conventional-changelog/commitlint/compare/v4.0.0...v4.1.0) (2017-10-05)
455
+
456
+
457
+
458
+
459
+ **Note:** Version bump only for package @commitlint/prompt-cli
460
+
461
+ <a name="4.0.0"></a>
462
+ # [4.0.0](https://github.com/conventional-changelog/commitlint/compare/v3.2.0...v4.0.0) (2017-10-04)
463
+
464
+
465
+
466
+
467
+ **Note:** Version bump only for package @commitlint/prompt-cli
468
+
469
+ <a name="3.2.0"></a>
470
+ # 3.2.0 (2017-09-05)
471
+
472
+
473
+
474
+ <a name="3.1.3"></a>
475
+ ## 3.1.3 (2017-08-21)
476
+
477
+
478
+
479
+ <a name="3.1.2"></a>
480
+ ## 3.1.2 (2017-08-07)
481
+
482
+
483
+
484
+ <a name="3.1.1"></a>
485
+ ## 3.1.1 (2017-08-07)
486
+
487
+
488
+
489
+ <a name="3.0.4"></a>
490
+ ## 3.0.4 (2017-08-04)
491
+
492
+
493
+
494
+ <a name="3.0.3"></a>
495
+ ## 3.0.3 (2017-07-16)
496
+
497
+
498
+
499
+ <a name="3.0.2"></a>
500
+ ## 3.0.2 (2017-07-11)
501
+
502
+
503
+ ### Features
504
+
505
+ * **prompt-cli:** add standalone prompt interface ([7911040](https://github.com/conventional-changelog/commitlint/commit/7911040))
506
+
507
+
508
+
509
+
510
+ <a name="3.1.3"></a>
511
+ ## 3.1.3 (2017-08-21)
512
+
513
+
514
+
515
+ <a name="3.1.2"></a>
516
+ ## 3.1.2 (2017-08-07)
517
+
518
+
519
+
520
+ <a name="3.1.1"></a>
521
+ ## 3.1.1 (2017-08-07)
522
+
523
+
524
+
525
+ <a name="3.0.4"></a>
526
+ ## 3.0.4 (2017-08-04)
527
+
528
+
529
+
530
+ <a name="3.0.3"></a>
531
+ ## 3.0.3 (2017-07-16)
532
+
533
+
534
+
535
+ <a name="3.0.2"></a>
536
+ ## 3.0.2 (2017-07-11)
537
+
538
+
539
+ ### Features
540
+
541
+ * **prompt-cli:** add standalone prompt interface ([7911040](https://github.com/conventional-changelog/commitlint/commit/7911040))
542
+
543
+
544
+
545
+
546
+ <a name="3.1.2"></a>
547
+ ## 3.1.2 (2017-08-07)
548
+
549
+
550
+
551
+ <a name="3.1.1"></a>
552
+ ## 3.1.1 (2017-08-07)
553
+
554
+
555
+
556
+ <a name="3.0.4"></a>
557
+ ## 3.0.4 (2017-08-04)
558
+
559
+
560
+
561
+ <a name="3.0.3"></a>
562
+ ## 3.0.3 (2017-07-16)
563
+
564
+
565
+
566
+ <a name="3.0.2"></a>
567
+ ## 3.0.2 (2017-07-11)
568
+
569
+
570
+ ### Features
571
+
572
+ * **prompt-cli:** add standalone prompt interface ([7911040](https://github.com/conventional-changelog/commitlint/commit/7911040))
573
+
574
+
575
+
576
+
577
+ <a name="3.0.4"></a>
578
+ ## 3.0.4 (2017-08-04)
579
+
580
+
581
+
582
+ <a name="3.0.3"></a>
583
+ ## 3.0.3 (2017-07-16)
584
+
585
+
586
+
587
+ <a name="3.0.2"></a>
588
+ ## 3.0.2 (2017-07-11)
589
+
590
+
591
+ ### Features
592
+
593
+ * **prompt-cli:** add standalone prompt interface ([7911040](https://github.com/conventional-changelog/commitlint/commit/7911040))
594
+
595
+
596
+
597
+
598
+ <a name="3.0.3"></a>
599
+ ## 3.0.3 (2017-07-16)
600
+
601
+
602
+
603
+ <a name="3.0.2"></a>
604
+ ## 3.0.2 (2017-07-11)
605
+
606
+
607
+ ### Features
608
+
609
+ * **prompt-cli:** add standalone prompt interface ([7911040](https://github.com/conventional-changelog/commitlint/commit/7911040))
610
+
611
+
612
+
613
+
614
+ <a name="3.0.2"></a>
615
+ ## 3.0.2 (2017-07-11)
616
+
617
+
618
+ ### Features
619
+
620
+ * **prompt-cli:** add standalone prompt interface ([7911040](https://github.com/conventional-changelog/commitlint/commit/7911040))
621
+
622
+
623
+
624
+
625
+ <a name="3.0.1"></a>
626
+ ## 3.0.1 (2017-07-11)
627
+
628
+
629
+ ### Features
630
+
631
+ * **prompt-cli:** add standalone prompt interface ([7911040](https://github.com/conventional-changelog/commitlint/commit/7911040))
632
+
633
+
634
+
635
+
636
+ <a name="3.0.1"></a>
637
+ ## 3.0.1 (2017-07-11)
638
+
639
+
640
+
641
+ <a name="3.0.0"></a>
642
+ # 3.0.0 (2017-07-10)
643
+
644
+
645
+ ### Features
646
+
647
+ * **prompt-cli:** add standalone prompt interface ([b0239d2](https://github.com/conventional-changelog/commitlint/commit/b0239d2))
648
+
649
+
650
+
651
+
652
+ <a name="3.0.0"></a>
653
+ # 3.0.0 (2017-07-10)
654
+
655
+
656
+ ### Features
657
+
658
+ * **prompt-cli:** add standalone prompt interface ([b0239d2](https://github.com/conventional-changelog/commitlint/commit/b0239d2))
package/README.md ADDED
@@ -0,0 +1,17 @@
1
+ > commit prompt using commitlint.config.js
2
+
3
+ # @commitlint/prompt-cli
4
+
5
+ ## Getting started
6
+
7
+ ```bash
8
+ npm install --g @commitlint/prompt-cli @commitlint/config-angular
9
+ echo "module.exports = {extends: ['@commitlint/config-angular']};" > commitlint.config.js
10
+ ```
11
+
12
+ ```bash
13
+ git add .
14
+ commit
15
+ ```
16
+
17
+ A full usage guide is available at [docs/prompt](https://conventional-changelog.github.io/commitlint/#/guides-use-prompt).
package/cli.js ADDED
@@ -0,0 +1,35 @@
1
+ #!/usr/bin/env node
2
+ const execa = require('execa');
3
+ const {prompter} = require('@commitlint/prompt');
4
+
5
+ const _ = undefined;
6
+ const prompt = () => prompter(_, commit);
7
+
8
+ main().catch((err) => {
9
+ setTimeout(() => {
10
+ throw err;
11
+ });
12
+ });
13
+
14
+ function main() {
15
+ return isStageEmpty()
16
+ .then((empty) => {
17
+ if (empty) {
18
+ console.log(
19
+ `Nothing to commit. Stage your changes via "git add" execute "commit" again`
20
+ );
21
+ process.exit(1);
22
+ }
23
+ })
24
+ .then(() => prompt());
25
+ }
26
+
27
+ function isStageEmpty() {
28
+ return execa('git', ['diff', '--cached']).then((r) => r.stdout === '');
29
+ }
30
+
31
+ function commit(message) {
32
+ const c = execa('git', ['commit', '-m', message]);
33
+ c.stdout.pipe(process.stdout);
34
+ c.stderr.pipe(process.stderr);
35
+ }
package/license.md ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016 - present Mario Nebl
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/package.json ADDED
@@ -0,0 +1,42 @@
1
+ {
2
+ "name": "@commitlint/prompt-cli",
3
+ "version": "13.2.0",
4
+ "description": "commit prompt using commitlint.config.js",
5
+ "files": [
6
+ "cli.js"
7
+ ],
8
+ "bin": {
9
+ "commit": "./cli.js"
10
+ },
11
+ "scripts": {
12
+ "commit": "$npm_package_bin_commit",
13
+ "deps": "dep-check",
14
+ "pkg": "pkg-check --skip-main"
15
+ },
16
+ "repository": {
17
+ "type": "git",
18
+ "url": "https://github.com/conventional-changelog/commitlint.git"
19
+ },
20
+ "keywords": [
21
+ "commitlint",
22
+ "prompt"
23
+ ],
24
+ "author": "Mario Nebl <hello@herebecode.com>",
25
+ "license": "MIT",
26
+ "bugs": {
27
+ "url": "https://github.com/conventional-changelog/commitlint/issues"
28
+ },
29
+ "homepage": "https://github.com/conventional-changelog/commitlint#readme",
30
+ "engines": {
31
+ "node": ">=v12"
32
+ },
33
+ "devDependencies": {
34
+ "@commitlint/test": "^13.2.0",
35
+ "@commitlint/utils": "^13.2.0"
36
+ },
37
+ "dependencies": {
38
+ "@commitlint/prompt": "^13.2.0",
39
+ "execa": "^5.0.0"
40
+ },
41
+ "gitHead": "65e45339c79e46d01e35ec067edf14d225a3528a"
42
+ }