You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/CONTRIBUTING.md
+36-2Lines changed: 36 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,12 +8,31 @@ We are following [**the contributing guideline of Marp team projects**][team-con
8
8
9
9
## Table of contents
10
10
11
-
-[Marp team contributing guideline][team-contributing-guideline]
11
+
-[Marp team contributing guideline ↗️][team-contributing-guideline]
12
12
-[Development](#development)
13
+
-[Installation](#installation)
14
+
-[Build and watch](#build-and-watch)
15
+
-[Use built version](#use-built-version)
16
+
-[Testing](#testing)
13
17
-[Debug](#debug)
14
18
15
19
## Development
16
20
21
+
### Installation
22
+
23
+
```bash
24
+
npm install
25
+
npx patch-package
26
+
```
27
+
28
+
Running [`npx patch-package`](https://github.com/ds300/patch-package) after `npm install` is required to apply patches for development dependencies. See also [the documentation of patches](../patches/README.md) for details.
29
+
30
+
> [!NOTE]
31
+
>
32
+
> `patch-package` recommends to [add `postinstall` script to `package.json` to run it automatically after `npm install`](https://github.com/ds300/patch-package?tab=readme-ov-file#set-up). However, Marp CLI does not use it because it will run also when installing CLI by users.
33
+
34
+
### Build and watch
35
+
17
36
```bash
18
37
# Build (Bundle and minify)
19
38
npm run build
@@ -30,7 +49,7 @@ Use `./marp-cli.js` instead of `marp` command.
30
49
./marp-cli.js --help
31
50
```
32
51
33
-
### Standalone binary
52
+
####Standalone binary
34
53
35
54
Standalone binaries created by [pkg](https://github.com/zeit/pkg) will output to `./bin` directory.
36
55
@@ -43,6 +62,21 @@ npm run build:standalone
43
62
./bin/marp-cli-linux --help
44
63
```
45
64
65
+
### Testing
66
+
67
+
```bash
68
+
# Run all tests
69
+
npm run test
70
+
71
+
# Run tests with code coverage
72
+
npm run test:coverage
73
+
74
+
# Run test for specific file(s)
75
+
npm run test -- ./test/marp-cli.ts
76
+
```
77
+
78
+
You need to install [Google Chrome](https://www.google.com/chrome/), [Mozilla Firefox](https://www.mozilla.org/firefox/), and [LibreOffice](https://www.libreoffice.org/download/download-libreoffice/) for running all tests.
79
+
46
80
## Debug
47
81
48
82
If you have any trouble with Marp CLI, `--debug` (`-d`) option will help you to find the cause of the problem.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,7 @@
5
5
### Changed
6
6
7
7
- Server mode: Connect to proxied watch notifier WebSocket server instead of `localhost` ([#513](https://github.com/marp-team/marp-cli/issues/513), [#664](https://github.com/marp-team/marp-cli/pull/664))
8
+
- Upgrade Jest to v30 ([#669](https://github.com/marp-team/marp-cli/pull/669))
0 commit comments