This repository was archived by the owner on Feb 24, 2024. It is now read-only.
File tree 1 file changed +25
-17
lines changed
1 file changed +25
-17
lines changed Original file line number Diff line number Diff line change @@ -7,40 +7,48 @@ contests that require submitting a solution as a single source file.
7
7
8
8
#### Prerequisites
9
9
10
- * node
10
+ * Node.js
11
11
* npm
12
- * yarn (optional)
12
+ * Yarn (optional)
13
13
14
14
#### Installation from npm
15
15
16
- ```
16
+ ``` shell
17
17
npm install -g cpp-merge
18
18
```
19
19
20
20
#### Installation from source
21
21
22
22
##### Clone git repository
23
23
24
- ```
25
- git clone git@github.com:RandomVoid /cpp-merge.git
24
+ ``` shell
25
+ git clone git@github.com:FastAlien /cpp-merge.git
26
26
```
27
27
28
- ##### Build and link package
28
+ ##### Build
29
+
30
+ Go to the project directory and run the following commands.
29
31
30
32
Using npm:
31
33
32
- ```
33
- npm install
34
+ ``` shell
35
+ npm ci
34
36
npm run build
35
- npm link
36
37
```
37
38
38
- Or using yarn :
39
+ Using Yarn :
39
40
40
- ```
41
- yarn
41
+ ``` shell
42
+ yarn install
42
43
yarn build
43
- yarn link
44
+ ```
45
+
46
+ ##### Link package
47
+
48
+ Go to the project directory and run the following command:
49
+
50
+ ``` shell
51
+ npm -g link
44
52
```
45
53
46
54
## Usage
@@ -68,26 +76,26 @@ alphabetically. Any of the processed header and source files will not be changed
68
76
69
77
Display the build-in help:
70
78
71
- ```
79
+ ``` shell
72
80
cpp-merge --help
73
81
```
74
82
75
83
#### Usage examples
76
84
77
85
Process ` main.cpp ` and display produced content on the standard output:
78
86
79
- ```
87
+ ``` shell
80
88
cpp-merge main.cpp
81
89
```
82
90
83
91
Process ` main.cpp ` and save output to file ` output.cpp ` :
84
92
85
- ```
93
+ ``` shell
86
94
cpp-merge --output output.cpp main.cpp
87
95
```
88
96
89
97
Specify additional include and source directory:
90
98
91
- ```
99
+ ``` shell
92
100
cpp-merge --include ../include --source ../src main.cpp
93
101
```
You can’t perform that action at this time.
0 commit comments