Skip to content

Commit 08f1e20

Browse files
authored
Merge pull request #2 from WebFuzzing/integrating-maven
Integrating maven
2 parents d96bc53 + 546aa56 commit 08f1e20

27 files changed

Lines changed: 17754 additions & 1442 deletions

pom.xml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,27 @@
9696
<target>${java.version}</target>
9797
</configuration>
9898
</plugin>
99+
<plugin>
100+
<groupId>org.codehaus.mojo</groupId>
101+
<artifactId>exec-maven-plugin</artifactId>
102+
<version>3.1.0</version>
103+
<executions>
104+
<execution>
105+
<id>yarn install build</id>
106+
<phase>generate-sources</phase>
107+
<goals>
108+
<goal>exec</goal>
109+
</goals>
110+
<configuration>
111+
<executable>yarn</executable>
112+
<arguments>
113+
<argument>installAndBuild</argument>
114+
</arguments>
115+
<workingDirectory>${project.basedir}/web-report</workingDirectory>
116+
</configuration>
117+
</execution>
118+
</executions>
119+
</plugin>
99120
</plugins>
100121
</build>
101122

web-report/README.md

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# Web Report
2+
3+
Web Fuzzing Commons (WFC): A set of standards and library support for facilitating fuzzing Web APIs.
4+
5+
6+
## Prerequisites
7+
8+
- Node.js (version 18.x or higher)
9+
- npm (comes with Node.js) or Yarn (version 1.22.x or higher)
10+
11+
## Installation
12+
13+
Install dependencies using npm:
14+
```bash
15+
npm install
16+
```
17+
18+
Or using Yarn:
19+
```bash
20+
yarn install
21+
```
22+
23+
## Development
24+
25+
To start the development server:
26+
27+
```bash
28+
npm run dev
29+
# or
30+
yarn dev
31+
```
32+
33+
The development server will start at `http://localhost:5173` by default.
34+
35+
## Building for Production
36+
37+
To build the project for production:
38+
39+
```bash
40+
npm run build
41+
# or
42+
yarn build
43+
```
44+
45+
The build artifacts will be stored in the `../target/generated-sources/webreport` directory.
46+
47+
## Preview Production Build
48+
49+
To preview the production build locally (uses existing build without rebuilding):
50+
51+
```bash
52+
npm run preview
53+
# or
54+
yarn preview
55+
```
56+
57+
## Debug Mode
58+
59+
To run the application in debug mode using static test files:
60+
61+
```bash
62+
npm run debug
63+
# or
64+
yarn debug
65+
```
66+
67+
This will build the project and copy static test files from `tests/static` directory to `../target/generated-sources/webreport` before previewing.
68+
69+
## Available Scripts
70+
71+
- `dev` - Start development server
72+
- `build` - Build for production
73+
- `preview` - Preview production build
74+
- `lint` - Run ESLint
75+
- `installAndBuild` - Install dependencies, run tests and build (Yarn only)
76+
- `debug` - Build the project and run in debug mode using static test files from `tests/static` directory

0 commit comments

Comments
 (0)