Skip to content

Commit c497494

Browse files
committed
fix(CLI) yargs was wrongly listed in devDependencies
Signed-off-by: Jerome Simeon <[email protected]>
1 parent 13daf6f commit c497494

File tree

4 files changed

+101
-7
lines changed

4 files changed

+101
-7
lines changed

packages/markdown-cli/README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,26 @@ Command line tool to debug and use markdown transformations.
55
## Installation
66

77
```
8-
npm install @accordproject/markdown-cli --save
8+
npm install -g @accordproject/markdown-cli
99
```
1010

1111
## Usage
1212

1313
```
14-
markus parse --help
14+
markus parse
1515
16-
parse sample markdown to Concerto instance
16+
parse and transform sample markdown
1717
1818
Options:
19-
--help Show help [boolean]
2019
--version Show version number [boolean]
2120
--verbose, -v [default: false]
21+
--help Show help [boolean]
2222
--sample path to the clause text [string]
2323
--out path to the output file [string]
2424
--roundtrip roundtrip [boolean] [default: false]
2525
--cicero further transform to CiceroMark [boolean] [default: false]
2626
--slate further transform to Slate DOM [boolean] [default: false]
27+
--html further transform to HTML [boolean] [default: false]
2728
--noWrap do not wrap variables as XML tags [boolean] [default: false]
2829
--noIndex do not index ordered lists [boolean] [default: false]
2930
```

packages/markdown-cli/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,16 @@
4949
"license-check": "1.1.5",
5050
"mocha": "6.1.4",
5151
"nyc": "14.1.1",
52-
"tsd-jsdoc": "^2.3.0",
53-
"yargs": "13.2.4"
52+
"tsd-jsdoc": "^2.3.0"
5453
},
5554
"dependencies": {
5655
"@accordproject/markdown-common": "0.4.1",
5756
"@accordproject/markdown-cicero": "0.4.1",
5857
"@accordproject/markdown-slate": "0.4.1",
5958
"@accordproject/markdown-html": "0.4.1",
6059
"jsome": "2.5.0",
61-
"winston": "3.2.1"
60+
"winston": "3.2.1",
61+
"yargs": "13.2.4"
6262
},
6363
"license-check-config": {
6464
"src": [

packages/markdown-common/src/__snapshots__/CommonMarkTransformer.test.js.snap

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -732,6 +732,90 @@ Object {
732732
}
733733
`;
734734

735+
exports[`markdown converts fixed.md to concerto JSON 1`] = `
736+
Object {
737+
"$class": "org.accordproject.commonmark.Document",
738+
"nodes": Array [
739+
Object {
740+
"$class": "org.accordproject.commonmark.Heading",
741+
"level": "2",
742+
"nodes": Array [
743+
Object {
744+
"$class": "org.accordproject.commonmark.Text",
745+
"text": "Fixed",
746+
},
747+
Object {
748+
"$class": "org.accordproject.commonmark.Softbreak",
749+
},
750+
Object {
751+
"$class": "org.accordproject.commonmark.Text",
752+
"text": "rate",
753+
},
754+
Object {
755+
"$class": "org.accordproject.commonmark.Softbreak",
756+
},
757+
Object {
758+
"$class": "org.accordproject.commonmark.Text",
759+
"text": "loan",
760+
},
761+
],
762+
},
763+
Object {
764+
"$class": "org.accordproject.commonmark.Paragraph",
765+
"nodes": Array [
766+
Object {
767+
"$class": "org.accordproject.commonmark.Text",
768+
"text": "This is a ",
769+
},
770+
Object {
771+
"$class": "org.accordproject.commonmark.Emph",
772+
"nodes": Array [
773+
Object {
774+
"$class": "org.accordproject.commonmark.Text",
775+
"text": "fixed interest",
776+
},
777+
],
778+
},
779+
Object {
780+
"$class": "org.accordproject.commonmark.Text",
781+
"text": " loan to the amount of 100000",
782+
},
783+
Object {
784+
"$class": "org.accordproject.commonmark.Softbreak",
785+
},
786+
Object {
787+
"$class": "org.accordproject.commonmark.Text",
788+
"text": "at the yearly interest rate of 2.5%",
789+
},
790+
Object {
791+
"$class": "org.accordproject.commonmark.Softbreak",
792+
},
793+
Object {
794+
"$class": "org.accordproject.commonmark.Text",
795+
"text": "with a loan term of 15,",
796+
},
797+
Object {
798+
"$class": "org.accordproject.commonmark.Softbreak",
799+
},
800+
Object {
801+
"$class": "org.accordproject.commonmark.Text",
802+
"text": "and monthly payments of {{I",
803+
},
804+
Object {
805+
"$class": "org.accordproject.commonmark.Text",
806+
"text": "'",
807+
},
808+
Object {
809+
"$class": "org.accordproject.commonmark.Text",
810+
"text": "m not sure which amount right now}}",
811+
},
812+
],
813+
},
814+
],
815+
"xmlns": "http://commonmark.org/xml/1.0",
816+
}
817+
`;
818+
735819
exports[`markdown converts h1.md to concerto JSON 1`] = `
736820
Object {
737821
"$class": "org.accordproject.commonmark.Document",
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Fixed
2+
rate
3+
loan
4+
----
5+
6+
This is a _fixed interest_ loan to the amount of 100000
7+
at the yearly interest rate of 2.5%
8+
with a loan term of 15,
9+
and monthly payments of {{I'm not sure which amount right now}}

0 commit comments

Comments
 (0)