Skip to content

Commit b273149

Browse files
Added a simple "hello, world" example app
1 parent c7fa9de commit b273149

File tree

8 files changed

+4687
-0
lines changed

8 files changed

+4687
-0
lines changed

examples/hello-world/README.md

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Simple "hello, world" example
2+
------------------------------------
3+
4+
This example demonstrates the simplest usage of coverage-istanbul-loader. The [`webpack.config.js` file](webpack.config.js) simply uses the the loader with its default options to produce an [output bundle](dist/main.js) that contains code coverage instrumentation.
5+
6+
7+
8+
### Structure
9+
10+
|Folder/File |Description
11+
|:----------------------------------------|:----------------------------------------------------
12+
|[webpack.config.js](webpack.config.js) |The webpack config file. It simply uses the "coverage-istanbul-loader" with its default options
13+
|[src folder](src) |The original source code, which is a simple two-file "hello, world" library.
14+
|[dist/main.js](dist/main.js) |The bundled webpack output. It's intentionally _not_ minified to make it easier to see what's going on.
15+
|[dist/main.js.map](dist/main.js.map) |The output sourcemap. It maps the bundled code back to the original source code files.

examples/hello-world/dist/main.js

+287
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/hello-world/dist/main.js.map

+23
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)