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
@@ -49,26 +48,64 @@ We support and accept PRs from the community.
49
48
50
49
See [CONTRIBUTING](./CONTRIBUTING.md)
51
50
51
+
## Build from Source
52
+
53
+
The CloudWatch RUM web client is developed and built using Node.js version 16 or higher.
54
+
55
+
To build the CloudWatch RUM web client, run the release process:
56
+
57
+
```
58
+
npm install
59
+
npm run release
60
+
```
61
+
62
+
The release process creates (1) a web bundle and a debug map for distribution via CDN, and (2) JavaScript modules and TypeScript declaration files for distribution via NPM.
63
+
64
+
The CDN files are:
65
+
66
+
```
67
+
./build/assets/cwr.js
68
+
./build/assets/cwr.map.js
69
+
```
70
+
71
+
The NPM files are:
72
+
73
+
```
74
+
./dist/es/index.js
75
+
./dist/es/index.d.ts
76
+
./dist/cjs/index.js
77
+
./dist/cjs/index.d.ts
78
+
```
79
+
52
80
## Run Tests from Source
53
81
54
82
To perform exploratory testing, run the Webpack DevServer:
55
83
56
-
`npm run server`
84
+
```
85
+
npm install
86
+
npm run server
87
+
```
57
88
58
89
In a browser, navigate to http://localhost:9000.
59
90
60
91
To run (Jest) unit tests:
61
92
62
-
`npm run test`
93
+
```
94
+
npm run test
95
+
```
63
96
64
97
To run (TestCafe) browser integration tests:
65
98
66
-
`npm run integ:local:chrome:headless`
99
+
```
100
+
npm run integ:local:chrome:headless
101
+
```
67
102
68
103
Some features perform monkey patching which is incompatible with TestCafe. In
69
104
these cases, run Nightwatch as a separate browser integration test target:
0 commit comments